NTR_Launcher/arm9/source/bios_decompress_callback.c
ApacheThunder d8c5206177 Add some changes Chishm made early on that I missed.
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.
2017-02-14 17:50:07 -06:00

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
} ;