mirror of
https://github.com/ApacheThunder/NTR_Launcher.git
synced 2025-06-19 03:25:38 -04:00

Overhaul of old cart loading code courtasy of Robz8. There is however a small regression. This build currently can't boot DS-Xtreme. If you have issues with flashcarts not booting games/homebrew correctly, disable the extended ram option in the ini file. Currently off by default. But it must be on for TWL carts to boot correctly.
49 lines
1.5 KiB
C
49 lines
1.5 KiB
C
/*
|
|
NitroHax -- Cheat tool for the Nintendo DS
|
|
Copyright (C) 2008 Michael "Chishm" Chisholm
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef PATCH_H
|
|
#define PATCH_H
|
|
|
|
//#include <stddef.h>
|
|
#include <nds/ndstypes.h>
|
|
#include <nds/memory.h> // tNDSHeader
|
|
|
|
#define PAGE_4K (0b01011 << 1)
|
|
#define PAGE_8K (0b01100 << 1)
|
|
#define PAGE_16K (0b01101 << 1)
|
|
#define PAGE_32K (0b01110 << 1)
|
|
#define PAGE_64K (0b01111 << 1)
|
|
#define PAGE_128K (0b10000 << 1)
|
|
#define PAGE_256K (0b10001 << 1)
|
|
#define PAGE_512K (0b10010 << 1)
|
|
#define PAGE_1M (0b10011 << 1)
|
|
#define PAGE_2M (0b10100 << 1)
|
|
#define PAGE_4M (0b10101 << 1)
|
|
#define PAGE_8M (0b10110 << 1)
|
|
#define PAGE_16M (0b10111 << 1)
|
|
#define PAGE_32M (0b11000 << 1)
|
|
#define PAGE_64M (0b11001 << 1)
|
|
#define PAGE_128M (0b11010 << 1)
|
|
#define PAGE_256M (0b11011 << 1)
|
|
#define PAGE_512M (0b11100 << 1)
|
|
#define PAGE_1G (0b11101 << 1)
|
|
#define PAGE_2G (0b11110 << 1)
|
|
#define PAGE_4G (0b11111 << 1)
|
|
|
|
#endif // PATCH_H
|