/[pcsx2_0.9.7]/trunk/debian-unstable-upstream/patches/02_update_default_path.patch
ViewVC logotype

Contents of /trunk/debian-unstable-upstream/patches/02_update_default_path.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (show annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (10 years, 2 months ago) by william
File size: 2380 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1 Debian policy.
2 This patch updates default plugin path, game db path.
3 It also updates shaders data path.
4 Index: pcsx2.snapshot-4292/pcsx2/gui/AppConfig.cpp
5 ===================================================================
6 --- pcsx2.snapshot-4292.orig/pcsx2/gui/AppConfig.cpp
7 +++ pcsx2.snapshot-4292/pcsx2/gui/AppConfig.cpp
8 @@ -164,7 +164,8 @@
9
10 wxDirName GetPlugins()
11 {
12 - return AppRoot() + Base::Plugins();
13 + // return AppRoot() + Base::Plugins();
14 + return wxDirName( L"/usr/lib/games/pcsx2" ) + Base::Plugins();
15 }
16
17 wxDirName GetThemes()
18 Index: pcsx2.snapshot-4292/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
19 ===================================================================
20 --- pcsx2.snapshot-4292.orig/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
21 +++ pcsx2.snapshot-4292/plugins/zzogl-pg/opengl/ZZoglCreate.cpp
22 @@ -291,18 +291,23 @@
23
24 __forceinline bool LoadShadersFromDat()
25 {
26 - FILE* fres = fopen("ps2hw.dat", "rb");
27
28 + // First try an absolute location for linux distribution
29 + FILE* fres = fopen("/usr/share/games/pcsx2/shaders/ps2hw.dat", "rb");
30 if (fres == NULL)
31 - {
32 - fres = fopen("plugins/ps2hw.dat", "rb");
33 + {
34 + fres = fopen("ps2hw.dat", "rb");
35 + if (fres == NULL)
36 + {
37 + fres = fopen("plugins/ps2hw.dat", "rb");
38
39 - if (fres == NULL)
40 - {
41 - ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting.");
42 - return false;
43 - }
44 - }
45 + if (fres == NULL)
46 + {
47 + ZZLog::Error_Log("Cannot find ps2hw.dat in working directory. Exiting.");
48 + return false;
49 + }
50 + }
51 + }
52
53 fseek(fres, 0, SEEK_END);
54
55 Index: pcsx2.snapshot-4292/pcsx2/gui/AppGameDatabase.h
56 ===================================================================
57 --- pcsx2.snapshot-4292.orig/pcsx2/gui/AppGameDatabase.h
58 +++ pcsx2.snapshot-4292/pcsx2/gui/AppGameDatabase.h
59 @@ -51,8 +51,8 @@
60 Console.WriteLn( "(GameDB) Unloading..." );
61 }
62
63 - AppGameDatabase& LoadFromFile(const wxString& file = L"GameIndex.dbf", const wxString& key = L"Serial" );
64 - void SaveToFile(const wxString& file = L"GameIndex.dbf");
65 + AppGameDatabase& LoadFromFile(const wxString& file = L"/var/games/pcsx2/GameIndex.dbf", const wxString& key = L"Serial" );
66 + void SaveToFile(const wxString& file = L"/var/games/pcsx2/GameIndex.dbf");
67 };
68
69 static wxString compatToStringWX(int compat) {

  ViewVC Help
Powered by ViewVC 1.1.22