From b78c683dc8f93b37f8a783e05b7537013f0e6007 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 10 Apr 2011 14:19:06 +0000 Subject: [PATCH] 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 --- .../patches/02_update_default_path.patch | 67 +++++++++---------- .../patches/05_move_data_to_config.patch | 10 +-- 2 files changed, 35 insertions(+), 42 deletions(-) diff --git a/debian-upstream/patches/02_update_default_path.patch b/debian-upstream/patches/02_update_default_path.patch index e072c34a17..62425dc409 100644 --- a/debian-upstream/patches/02_update_default_path.patch +++ b/debian-upstream/patches/02_update_default_path.patch @@ -2,11 +2,11 @@ Debian policy. This patch updates default plugin path and config path. It also updates the pcsx2 game db path and shaders data path. 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-3369/pcsx2/gui/AppConfig.cpp -@@ -162,7 +162,8 @@ +--- pcsx2-0.9.8.orig/pcsx2/gui/AppConfig.cpp 2011-04-10 15:51:53.000000000 +0200 ++++ pcsx2-0.9.8/pcsx2/gui/AppConfig.cpp 2011-04-10 16:10:07.000000000 +0200 +@@ -169,7 +169,8 @@ wxDirName GetPlugins() { @@ -15,44 +15,37 @@ Index: pcsx2-3369/pcsx2/gui/AppConfig.cpp + return wxDirName( L"/usr/lib/games/pcsx2" ) + Base::Plugins(); } - wxDirName GetSettings() -Index: pcsx2-3369/plugins/zzogl-pg/opengl/ZZoglCreate.cpp + wxDirName GetThemes() +Index: pcsx2-0.9.8/plugins/zzogl-pg/opengl/ZZoglCreate.cpp =================================================================== ---- pcsx2-3369.orig/plugins/zzogl-pg/opengl/ZZoglCreate.cpp -+++ pcsx2-3369/plugins/zzogl-pg/opengl/ZZoglCreate.cpp -@@ -347,17 +347,12 @@ - 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"); +--- pcsx2-0.9.8.orig/plugins/zzogl-pg/opengl/ZZoglCreate.cpp 2011-04-10 15:51:53.000000000 +0200 ++++ pcsx2-0.9.8/plugins/zzogl-pg/opengl/ZZoglCreate.cpp 2011-04-10 16:11:08.000000000 +0200 +@@ -299,8 +299,11 @@ - if (fres == NULL) - { -- fres = fopen("plugins/ps2hw.dat", "rb"); -- -- if (fres == NULL) -- { + if (fres == NULL) + { - ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting."); - return false; -- } -+ ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting."); -+ return false; ++ fres = fopen("/usr/share/games/pcsx2/shaders/ps2hw.dat", "rb"); ++ if (fres == NULL) { ++ ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting."); ++ return false; ++ } + } } - fseek(fres, 0, SEEK_END); -Index: pcsx2-3369/pcsx2/gui/AppGameDatabase.h +Index: pcsx2-0.9.8/pcsx2/gui/AppGameDatabase.h =================================================================== ---- pcsx2-3369.orig/pcsx2/gui/AppGameDatabase.h -+++ pcsx2-3369/pcsx2/gui/AppGameDatabase.h +--- pcsx2-0.9.8.orig/pcsx2/gui/AppGameDatabase.h 2011-04-10 15:51:53.000000000 +0200 ++++ pcsx2-0.9.8/pcsx2/gui/AppGameDatabase.h 2011-04-10 16:11:42.000000000 +0200 @@ -51,8 +51,8 @@ - Console.WriteLn( "(GameDB) Unloading..." ); - } - -- AppGameDatabase& LoadFromFile(const wxString& file = L"GameIndex.dbf", const wxString& key = L"Serial" ); -- void SaveToFile(const wxString& file = L"GameIndex.dbf"); -+ AppGameDatabase& LoadFromFile(const wxString& file = L"/var/games/pcsx2/GameIndex.dbf", const wxString& key = L"Serial" ); -+ void SaveToFile(const wxString& file = L"/var/games/pcsx2/GameIndex.dbf"); - }; - - static wxString compatToStringWX(int compat) { + Console.WriteLn( "(GameDB) Unloading..." ); + } + +- AppGameDatabase& LoadFromFile(const wxString& file = L"GameIndex.dbf", const wxString& key = L"Serial" ); +- void SaveToFile(const wxString& file = L"GameIndex.dbf"); ++ AppGameDatabase& LoadFromFile(const wxString& file = L"/var/games/pcsx2/GameIndex.dbf", const wxString& key = L"Serial" ); ++ void SaveToFile(const wxString& file = L"/var/games/pcsx2/GameIndex.dbf"); + }; + + static wxString compatToStringWX(int compat) { diff --git a/debian-upstream/patches/05_move_data_to_config.patch b/debian-upstream/patches/05_move_data_to_config.patch index fd5cf4a5dd..bda6233ee7 100644 --- a/debian-upstream/patches/05_move_data_to_config.patch +++ b/debian-upstream/patches/05_move_data_to_config.patch @@ -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-3369/pcsx2/gui/AppConfig.cpp -@@ -125,7 +125,12 @@ +--- pcsx2-0.9.8.orig/pcsx2/gui/AppConfig.cpp 2011-04-10 16:10:07.000000000 +0200 ++++ pcsx2-0.9.8/pcsx2/gui/AppConfig.cpp 2011-04-10 16:12:23.000000000 +0200 +@@ -133,7 +133,12 @@ { switch( mode ) { @@ -12,6 +12,6 @@ Index: pcsx2-3369/pcsx2/gui/AppConfig.cpp +#else case DocsFolder_User: return (wxDirName)Path::Combine( wxStandardPaths::Get().GetDocumentsDir(), pxGetAppName() ); +#endif - //case DocsFolder_CWD: return (wxDirName)wxGetCwd(); case DocsFolder_Custom: return CustomDocumentsFolder; + jNO_DEFAULT