#include "plugin_lib.h"
#include "../libpcsxcore/misc.h"
#include "../libpcsxcore/new_dynarec/new_dynarec.h"
+#include "maemo_common.h"
// sound plugin
extern int iUseReverb;
extern int iUseTimer;
int g_opts = OPT_SHOWFPS;
+int g_maemo_opts;
+char file_name[MAXPATHLEN];
enum sched_action emu_action;
void do_emu_action(void);
-char* file_name;
static void ChangeWorkingDirectory(char *exe)
{
if (tv_reg > 0)
pl_rearmed_cbs.frameskip = -1;
}
- else if (!strcmp(argv[i],"-fullscreen")) g_opts |= 2;
- else if (!strcmp(argv[i],"-accel")) g_opts |= 4;
+ else if (!strcmp(argv[i],"-fullscreen")) g_maemo_opts |= 2;
+ else if (!strcmp(argv[i],"-accel")) g_maemo_opts |= 4;
else if (!strcmp(argv[i],"-sputhreaded")) iUseTimer=1;
else if (!strcmp(argv[i],"-nosound")) strcpy(Config.Spu, "spunull.so");
/* unworking with r10
hildon_init(&argc, &argv);
- char f_name[MAXPATHLEN];
- strcpy(f_name, strrchr(cdfile,'/'));
- file_name=f_name;
-
- if (cdfile)
+ if (cdfile) {
set_cd_image(cdfile);
+ strcpy(file_name, strrchr(cdfile,'/'));
+ }
if (SysInit() == -1)
return 1;
}
if (ready_to_go)
- maemo_init();
+ maemo_init(&argc, &argv);
else
{
printf ("somethings goes wrong, maybe you forgot -cdfile ? \n");