3 #include <sys/syslimits.h> // PATH_MAX
5 #include "../../Pico/PicoInt.h"
7 char romFileName[PATH_MAX];
8 unsigned char *PicoDraw2FB; // temporary buffer for alt renderer ( (8+320)*(8+240+8) )
12 void emu_noticeMsgUpdated(void)
16 void emu_getMainDir(char *dst, int len)
20 void emu_stateCb(const char *str)
24 void emu_setDefaultConfig(void)
28 void emu_forcedFrame(void)
34 // make dirs for saves, cfgs, etc.
41 // PicoMessage = emu_msg_cb;
42 // PicoMCDopenTray = emu_msg_tray_open;
43 // PicoMCDcloseTray = menu_loop_tray;
49 /* if ((currentConfig.EmuOpt & 1) && SRam.changed) {
50 emu_SaveLoadGame(0, 1);
54 if (!(currentConfig.EmuOpt & 0x20)) {
55 FILE *f = fopen(PicoConfigFile, "r+b");
56 if (!f) emu_WriteConfig(0);
58 // if we already have config, reload it, except last ROM
59 fseek(f, sizeof(currentConfig.lastRomFile), SEEK_SET);
60 fread(¤tConfig.EmuOpt, 1, sizeof(currentConfig) - sizeof(currentConfig.lastRomFile), f);
61 fseek(f, 0, SEEK_SET);
62 fwrite(¤tConfig, 1, sizeof(currentConfig), f);
71 void emu_ResetGame(void)