X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=maemo%2Fmain.c;h=2da693d0199d3390e37b03f8c42f29c20ce58a5c;hp=74127919bc056164cfd9ebd293c3643a9eae68e3;hb=38c2028e228dcf17f3b4b0ac7e6984d1e1c6df79;hpb=96751f36c7867567d4d8c612c78f235392d1f243 diff --git a/maemo/main.c b/maemo/main.c index 74127919..2da693d0 100644 --- a/maemo/main.c +++ b/maemo/main.c @@ -38,20 +38,26 @@ static void ChangeWorkingDirectory(char *exe) } } -int maemo_main(int argc, char **argv) +int main(int argc, char **argv) { - ChangeWorkingDirectory("c"); char file[MAXPATHLEN] = ""; char path[MAXPATHLEN]; const char *cdfile = NULL; int loadst = 0; int i; + emu_core_preinit(); + ChangeWorkingDirectory("c"); + strcpy(Config.BiosDir, "/home/user/MyDocs"); strcpy(Config.PluginsDir, "/opt/maemo/usr/games/plugins"); snprintf(Config.PatchesDir, sizeof(Config.PatchesDir), "/opt/maemo/usr/games" PATCHES_DIR); Config.PsxAuto = 1; + pl_init(); + + emu_core_init(); + // read command line options for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-psxout")) Config.PsxOut = 1; @@ -97,11 +103,6 @@ int maemo_main(int argc, char **argv) strcpy(file_name, strrchr(cdfile,'/')); } - if (SysInit() == -1) - return 1; - - pl_init(); - if (LoadPlugins() == -1) { SysMessage("Failed loading plugins!"); return 1;