diff options
-rw-r--r-- | README.funkey-s.md | 2 | ||||
-rw-r--r-- | main.c | 4 | ||||
-rw-r--r-- | main.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/README.funkey-s.md b/README.funkey-s.md index 2aa9626..b5a7154 100644 --- a/README.funkey-s.md +++ b/README.funkey-s.md @@ -53,7 +53,7 @@ The libretro documentation specifies which bios is required for each core. For e Cheats use RetroArch .cht file format. Many cheat files are here <https://github.com/libretro/libretro-database/tree/master/cht> -Cheat file name needs to match ROM name, and go underneath save directory. For example, `/Apps/.picoarch-gambatte/cheats/Super Mario Land (World).cht`. When a cheat file is detected, a "cheats" menu item will appear in advanced menu. Not all cheats work with all cores, may want to clean up files to just the cheats you want. +Cheat file name needs to match ROM name, and go underneath save directory. For example, `/mnt/FunKey/.picoarch-gambatte/cheats/Super Mario Land (World).cht`. When a cheat file is detected, a "cheats" menu item will appear in advanced menu. Not all cheats work with all cores, may want to clean up files to just the cheats you want. ### IPS / BPS soft-patching @@ -592,7 +592,9 @@ int main(int argc, char **argv) { } if (argc > 1 && argv[1]) { - strncpy(core_path, argv[1], sizeof(core_path) - 1); + if (!realpath(argv[1], &core_path)) { + strncpy(core_path, argv[1], sizeof(core_path) - 1); + } } else { if (menu_select_core()) quit(-1); @@ -5,7 +5,7 @@ #include "options.h" #include "libretro.h" -#define MAX_PATH 512 +#define MAX_PATH PATH_MAX typedef enum { EACTION_NONE = 0, |