mirror of
https://github.com/encounter/SDL.git
synced 2025-12-11 22:44:17 +00:00
Initial SDL_ps2_main implementation
This commit is contained in:
committed by
Sam Lantinga
parent
1f3ae75228
commit
84d69da4e1
36
src/main/ps2/SDL_ps2_main.c
Normal file
36
src/main/ps2/SDL_ps2_main.c
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
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>
|
||||
|
||||
#ifdef main
|
||||
#undef main
|
||||
#endif
|
||||
|
||||
static void prepare_IOP()
|
||||
{
|
||||
SifInitRpc(0);
|
||||
sbv_patch_enable_lmb();
|
||||
sbv_patch_disable_prefix_check();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
prepare_IOP();
|
||||
|
||||
return SDL_main(argc, argv);
|
||||
}
|
||||
|
||||
#endif /* _EE */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
Reference in New Issue
Block a user