mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
20db83cd93
move package folders to wii and ngc respectively
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/****************************************************************************
|
|
* SideStep DOL Loading
|
|
*
|
|
* This module runs a DOL file from Auxilliary RAM. This removes any memory
|
|
* issues which might occur - and also means you can easily overwrite yourself!
|
|
*
|
|
* softdev March 2007
|
|
***************************************************************************/
|
|
#ifndef HW_RVL
|
|
#ifndef __SIDESTEP__
|
|
#define __SIDESTEP__
|
|
|
|
/*** A standard DOL header ***/
|
|
#define DOLHDRLENGTH 256 /*** All DOLS must have a 256 byte header ***/
|
|
#define MAXTEXTSECTION 7
|
|
#define MAXDATASECTION 11
|
|
|
|
/*** A handy DOL structure ***/
|
|
typedef struct {
|
|
unsigned int textOffset[MAXTEXTSECTION];
|
|
unsigned int dataOffset[MAXDATASECTION];
|
|
|
|
unsigned int textAddress[MAXTEXTSECTION];
|
|
unsigned int dataAddress[MAXDATASECTION];
|
|
|
|
unsigned int textLength[MAXTEXTSECTION];
|
|
unsigned int dataLength[MAXDATASECTION];
|
|
|
|
unsigned int bssAddress;
|
|
unsigned int bssLength;
|
|
|
|
unsigned int entryPoint;
|
|
unsigned int unused[MAXTEXTSECTION];
|
|
} DOLHEADER;
|
|
|
|
int DOLtoARAM(const char *dol_name);
|
|
|
|
#endif
|
|
#endif
|