GBA-Exploader/arm9/source/bootloader/nds_loader_arm9.h
ApacheThunder 4ec14bae55 Fix Rumble Menu soft reset ...
* Soft Reset for Rumble Menu fixed. New scheme is now used for loading
SoftReset.xxxx. Now instead it will look for R4TF.nds (R4TF = 4
character ioType code for DLDI user is currently using with R4TF as an
example). If not found it will look for a few specific NDS files to try.
If those aren't found it will try boot.nds. If boot.nds isn't found then
rumble menu will not be available.
2024-05-19 18:24:16 -05:00

50 lines
1.4 KiB
C

/*-----------------------------------------------------------------
Copyright (C) 2005 - 2010
Michael "Chishm" Chisholm
Dave "WinterMute" Murphy
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 2
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, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
------------------------------------------------------------------*/
#ifndef NDS_LOADER_ARM9_H
#define NDS_LOADER_ARM9_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
RUN_NDS_OK = 0,
RUN_NDS_STAT_FAILED,
RUN_NDS_GETCWD_FAILED,
RUN_NDS_PATCH_DLDI_FAILED,
} eRunNdsRetCode;
#define LOAD_DEFAULT_NDS 0
eRunNdsRetCode runNds (const void* loader, u32 loaderSize, u32 cluster, bool initDisc, bool dldiPatchNds, int argc, const char** argv);
eRunNdsRetCode runNdsFile (const char* filename, int argc, const char** argv);
#ifdef __cplusplus
}
#endif
#endif // NDS_LOADER_ARM7_H