/
gameLauncher.h
57 lines (49 loc) · 1.46 KB
/
gameLauncher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <pspsdk.h>
#include <systemctrl.h>
#include <psploadexec.h>
#include <psploadexec_kernel.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <pspdisplay.h>
#include <psppower.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <oslib/oslib.h>
#define MAX_GAME_DISPLAY 3 // max amount of files displayed on-screen.
#define GAME_DISPLAY_X 20 // X value of where the filebrowser is displayed.
#define GAME_DISPLAY_Y 87 // Y value of the filebrowser is displayed.
#define GAME_CURR_DISPLAY_Y 66
#define game_xSelection 0 //The distance between the X axis of the two selections
#define game_ySelection 63 //The distance between the Y axis of the two selections
OSL_IMAGE *gamebg, *gameSelection, *icon0, *gameAnim[20];
OSL_FONT *Roboto;
typedef struct
{
char signature[4];
int version;
int offset[8];
} HEADER;
void gameUp();
void gameDown();
void gameUpx5();
void gameDownx5();
int launchEbootMs0(char path[]);
int launchEbootEf0(char path[]);
int launchPOPsMs0(char path[]);
int launchPOPsEf0(char path[]);
int launchISOMs0(char path[]);
int launchISOEf0(char path[]);
int launchUMD(char path[]);
void gameDisplay();
void gameControls(int n);
char * gameBrowse(const char * path);
char * popsBrowse(const char * path);
void gameUnload();
void getIcon0(char* filename);
OSL_IMAGE * processPBP(const char * path);
int gameView(char * browseDirectory, int type);
void checkGBootActivation();
int gameBoot();
int gameApp();