summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2009-07-27 16:10:51 +0000
committerMichał Górny <mgorny@gentoo.org>2009-07-27 16:10:51 +0000
commit44f32cc2c3a75431536ac1009cbd2ca8201c22a8 (patch)
tree9ee005230fe024571ddbd5eb105c0725de964984 /games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch
parentNew license used by dev-db/mongodb (diff)
downloadsunrise-44f32cc2c3a75431536ac1009cbd2ca8201c22a8.tar.gz
sunrise-44f32cc2c3a75431536ac1009cbd2ca8201c22a8.tar.bz2
sunrise-44f32cc2c3a75431536ac1009cbd2ca8201c22a8.zip
games-emulation/mupen64plus: Ebuild for games-emulation/mupen64plus (bug #215426). Thanks to all Bugzilla thread contributors.
svn path=/sunrise/; revision=8889
Diffstat (limited to 'games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch')
-rw-r--r--games-emulation/mupen64plus/files/mupen64plus-1.5-plugindir.patch13
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