Add games-emulation/pcsx2-0.9.4.
[overlay.git] / games-emulation / pcsx2 / files / pcsx2-plugin-inis.patch
diff --git a/games-emulation/pcsx2/files/pcsx2-plugin-inis.patch b/games-emulation/pcsx2/files/pcsx2-plugin-inis.patch
new file mode 100644 (file)
index 0000000..93d3155
--- /dev/null
@@ -0,0 +1,15 @@
+--- Linux.old/GtkGui.c 2007-11-19 07:21:55.000000000 +0000
++++ Linux/GtkGui.c     2008-02-25 11:57:37.167773962 +0000
+@@ -723,12 +723,9 @@
+     strcpy(file, Config.PluginsDir); \\r
+       strcat(file, plugin); \\r
+       drv = SysLoadLibrary(file); \\r
+-    getcwd(file, ARRAYSIZE(file)); /* store current dir */  \\r
+-    chdir(Config.PluginsDir); /* change dirs so that plugins can find their config file*/  \\r
+       if (drv == NULL) return; \\r
+       conf = (src) SysLoadSym(drv, name); \\r
+       if (SysLibError() == NULL) conf(); \\r
+-    chdir(file); /* change back*/       \\r
+     SysCloseLibrary(drv);\r
\r
+ #define TestPlugin(src, confs, plugin, name) \\r