| 1 |
/* NDS Firmware tools |
| 2 |
|
| 3 |
Copyright 2009 DeSmuME team |
| 4 |
|
| 5 |
This file is part of DeSmuME |
| 6 |
|
| 7 |
DeSmuME is free software; you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation; either version 2 of the License, or |
| 10 |
(at your option) any later version. |
| 11 |
|
| 12 |
DeSmuME is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with DeSmuME; if not, write to the Free Software |
| 19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef __MAIN_H_ |
| 23 |
#define __MAIN_H_ |
| 24 |
#include <windows.h> |
| 25 |
#include <stdio.h> |
| 26 |
#include "common.h" |
| 27 |
#include "console.h" |
| 28 |
|
| 29 |
#define _TITLE "NDS Firmware tool v0.0.3 by DeSmuME Team" |
| 30 |
#define MAINCLASS "NDS_FIRMWARE_TOOLS" |
| 31 |
|
| 32 |
typedef struct |
| 33 |
{ |
| 34 |
u16 part3_rom_gui9_addr; // 000h |
| 35 |
u16 part4_rom_wifi7_addr; // 002h |
| 36 |
u16 part34_gui_wifi_crc16; // 004h |
| 37 |
u16 part12_boot_crc16; // 006h |
| 38 |
u8 fw_identifier[4]; // 008h |
| 39 |
u16 part1_rom_boot9_addr; // 00Ch |
| 40 |
u16 part1_ram_boot9_addr; // 00Eh |
| 41 |
u16 part2_rom_boot7_addr; // 010h |
| 42 |
u16 part2_ram_boot7_addr; // 012h |
| 43 |
u16 shift_amounts; // 014h |
| 44 |
u16 part5_data_gfx_addr; // 016h |
| 45 |
|
| 46 |
u8 fw_timestamp[5]; // 018h |
| 47 |
u8 console_type; // 01Dh |
| 48 |
u16 unused1; // 01Eh |
| 49 |
u16 user_settings_offset; // 020h |
| 50 |
u16 unknown1; // 022h |
| 51 |
u16 unknown2; // 024h |
| 52 |
u16 part5_crc16; // 026h |
| 53 |
u16 unused2; // 028h - FFh filled |
| 54 |
} HEADER; |
| 55 |
#endif |