mirror of https://github.com/PCSX2/pcsx2.git
0.9.8: debian: refresh the remaining patches...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/0.9.8@4567 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
f9dffd2186
commit
b78c683dc8
|
@ -2,11 +2,11 @@ Debian policy.
|
||||||
This patch updates default plugin path and config path.
|
This patch updates default plugin path and config path.
|
||||||
It also updates the pcsx2 game db path and shaders data path.
|
It also updates the pcsx2 game db path and shaders data path.
|
||||||
AppInit.cpp:93 could be probably updated
|
AppInit.cpp:93 could be probably updated
|
||||||
Index: pcsx2-3369/pcsx2/gui/AppConfig.cpp
|
Index: pcsx2-0.9.8/pcsx2/gui/AppConfig.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- pcsx2-3369.orig/pcsx2/gui/AppConfig.cpp
|
--- pcsx2-0.9.8.orig/pcsx2/gui/AppConfig.cpp 2011-04-10 15:51:53.000000000 +0200
|
||||||
+++ pcsx2-3369/pcsx2/gui/AppConfig.cpp
|
+++ pcsx2-0.9.8/pcsx2/gui/AppConfig.cpp 2011-04-10 16:10:07.000000000 +0200
|
||||||
@@ -162,7 +162,8 @@
|
@@ -169,7 +169,8 @@
|
||||||
|
|
||||||
wxDirName GetPlugins()
|
wxDirName GetPlugins()
|
||||||
{
|
{
|
||||||
|
@ -15,36 +15,29 @@ Index: pcsx2-3369/pcsx2/gui/AppConfig.cpp
|
||||||
+ return wxDirName( L"/usr/lib/games/pcsx2" ) + Base::Plugins();
|
+ return wxDirName( L"/usr/lib/games/pcsx2" ) + Base::Plugins();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDirName GetSettings()
|
wxDirName GetThemes()
|
||||||
Index: pcsx2-3369/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
|
Index: pcsx2-0.9.8/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- pcsx2-3369.orig/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
|
--- pcsx2-0.9.8.orig/plugins/zzogl-pg/opengl/ZZoglCreate.cpp 2011-04-10 15:51:53.000000000 +0200
|
||||||
+++ pcsx2-3369/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
|
+++ pcsx2-0.9.8/plugins/zzogl-pg/opengl/ZZoglCreate.cpp 2011-04-10 16:11:08.000000000 +0200
|
||||||
@@ -347,17 +347,12 @@
|
@@ -299,8 +299,11 @@
|
||||||
assert(hShaderGlob != NULL);
|
|
||||||
s_lpShaderResources = (u8*)LockResource(hShaderGlob);
|
|
||||||
# else // not _WIN32
|
|
||||||
- FILE* fres = fopen("ps2hw.dat", "rb");
|
|
||||||
+ FILE* fres = fopen("/usr/share/games/pcsx2/shaders/ps2hw.dat", "rb");
|
|
||||||
|
|
||||||
if (fres == NULL)
|
if (fres == NULL)
|
||||||
{
|
{
|
||||||
- fres = fopen("plugins/ps2hw.dat", "rb");
|
|
||||||
-
|
|
||||||
- if (fres == NULL)
|
|
||||||
- {
|
|
||||||
- ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting.");
|
- ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting.");
|
||||||
- return false;
|
- return false;
|
||||||
- }
|
+ fres = fopen("/usr/share/games/pcsx2/shaders/ps2hw.dat", "rb");
|
||||||
+ ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting.");
|
+ if (fres == NULL) {
|
||||||
+ return false;
|
+ ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting.");
|
||||||
|
+ return false;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fseek(fres, 0, SEEK_END);
|
Index: pcsx2-0.9.8/pcsx2/gui/AppGameDatabase.h
|
||||||
Index: pcsx2-3369/pcsx2/gui/AppGameDatabase.h
|
|
||||||
===================================================================
|
===================================================================
|
||||||
--- pcsx2-3369.orig/pcsx2/gui/AppGameDatabase.h
|
--- pcsx2-0.9.8.orig/pcsx2/gui/AppGameDatabase.h 2011-04-10 15:51:53.000000000 +0200
|
||||||
+++ pcsx2-3369/pcsx2/gui/AppGameDatabase.h
|
+++ pcsx2-0.9.8/pcsx2/gui/AppGameDatabase.h 2011-04-10 16:11:42.000000000 +0200
|
||||||
@@ -51,8 +51,8 @@
|
@@ -51,8 +51,8 @@
|
||||||
Console.WriteLn( "(GameDB) Unloading..." );
|
Console.WriteLn( "(GameDB) Unloading..." );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Index: pcsx2-3369/pcsx2/gui/AppConfig.cpp
|
Index: pcsx2-0.9.8/pcsx2/gui/AppConfig.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- pcsx2-3369.orig/pcsx2/gui/AppConfig.cpp
|
--- pcsx2-0.9.8.orig/pcsx2/gui/AppConfig.cpp 2011-04-10 16:10:07.000000000 +0200
|
||||||
+++ pcsx2-3369/pcsx2/gui/AppConfig.cpp
|
+++ pcsx2-0.9.8/pcsx2/gui/AppConfig.cpp 2011-04-10 16:12:23.000000000 +0200
|
||||||
@@ -125,7 +125,12 @@
|
@@ -133,7 +133,12 @@
|
||||||
{
|
{
|
||||||
switch( mode )
|
switch( mode )
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,6 @@ Index: pcsx2-3369/pcsx2/gui/AppConfig.cpp
|
||||||
+#else
|
+#else
|
||||||
case DocsFolder_User: return (wxDirName)Path::Combine( wxStandardPaths::Get().GetDocumentsDir(), pxGetAppName() );
|
case DocsFolder_User: return (wxDirName)Path::Combine( wxStandardPaths::Get().GetDocumentsDir(), pxGetAppName() );
|
||||||
+#endif
|
+#endif
|
||||||
//case DocsFolder_CWD: return (wxDirName)wxGetCwd();
|
|
||||||
case DocsFolder_Custom: return CustomDocumentsFolder;
|
case DocsFolder_Custom: return CustomDocumentsFolder;
|
||||||
|
|
||||||
|
jNO_DEFAULT
|
||||||
|
|
Loading…
Reference in New Issue