Hash :
a054a5f7
Author :
Date :
2022-06-29T01:09:17
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
/*
SDL_ps2_main.c, fjtrujy@gmail.com
*/
#include "SDL_config.h"
#ifdef __PS2__
#include "SDL_main.h"
#include "SDL_error.h"
#include <sifrpc.h>
#include <iopcontrol.h>
#include <sbv_patches.h>
#include <ps2_fileXio_driver.h>
#include <ps2_memcard_driver.h>
#ifdef main
#undef main
#endif
static void prepare_IOP()
{
SifInitRpc(0);
sbv_patch_enable_lmb();
sbv_patch_disable_prefix_check();
}
static void init_drivers() {
init_fileXio_driver();
init_memcard_driver(true);
}
static void deinit_drivers() {
deinit_memcard_driver(true);
deinit_fileXio_driver();
}
int main(int argc, char *argv[])
{
int res;
prepare_IOP();
init_drivers();
res = SDL_main(argc, argv);
deinit_drivers();
return res;
}
#endif /* _EE */
/* vi: set ts=4 sw=4 expandtab: */