diff options
Diffstat (limited to 'games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch')
-rw-r--r-- | games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch b/games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch new file mode 100644 index 000000000..96363547a --- /dev/null +++ b/games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch @@ -0,0 +1,13 @@ +diff -dupr Mupen64Plus-1-5-src.orig/main/main.c Mupen64Plus-1-5-src/main/main.c +--- Mupen64Plus-1-5-src.orig/main/main.c 2009-05-01 09:18:21.387785870 +0200 ++++ Mupen64Plus-1-5-src/main/main.c 2009-05-01 09:20:10.998784906 +0200 +@@ -1476,8 +1476,7 @@ int main(int argc, char *argv[]) + // if it's not set in the config file, use the /plugins/ sub-folder of the installation directory + if (strlen(dirpath) < 2) + { +- strncpy(dirpath, l_InstallDir, PATH_MAX); +- strncat(dirpath, "plugins/", PATH_MAX - strlen(dirpath)); ++ strncpy(dirpath, "%PUT_PLUGIN_PATH_HERE%", PATH_MAX); + dirpath[PATH_MAX-1] = '\0'; + } + // scan the plugin directory and set the config dir for the plugins |