mirror of
https://github.com/ApacheThunder/NTR_Launcher.git
synced 2025-06-18 19:15:40 -04:00

This works for the most part now. Is able to launch games and flashcarts now. Had to force slot reset though. The ability to card init without that by not having slot-1 in ntr mode (via the bit for it in access control) seems broken with this version of libnds. But I can live without that. Touchscreen however is borked for NTR games.
41 lines
1.1 KiB
C
Executable File
41 lines
1.1 KiB
C
Executable File
/*
|
|
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/>.
|
|
*/
|
|
|
|
#include "bios_decompress_callback.h"
|
|
|
|
static int getSizeBiosCallback (uint8 * source, uint16 * dest, uint32 r2)
|
|
{
|
|
(void)dest;
|
|
(void)r2;
|
|
return *((int*)source);
|
|
}
|
|
|
|
static uint8 readByteBiosCallback (uint8 * source)
|
|
{
|
|
return *source;
|
|
}
|
|
|
|
TDecompressionStream decompressBiosCallback =
|
|
{
|
|
getSizeBiosCallback,
|
|
(void*)0,
|
|
readByteBiosCallback
|
|
} ;
|
|
|
|
|