pcsx2/debian-unstable-upstream/patches/05_move_data_to_config.patch
gregory.hainaut@gmail.com a8afd254b6 debian:
* fix a missing \
* refresh the patch


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4294 96395faa-99c1-11dd-bbfe-3dabce05a288
2011-02-12 16:06:28 +00:00

19 lines
743 B
Diff

By default, move all users datas into XDG_CONFIG_DIR
Index: pcsx2.snapshot-3369/pcsx2/gui/AppConfig.cpp
===================================================================
--- pcsx2.snapshot-3369.orig/pcsx2/gui/AppConfig.cpp
+++ pcsx2.snapshot-3369/pcsx2/gui/AppConfig.cpp
@@ -125,7 +125,12 @@
{
switch( mode )
{
+#ifdef __LINUX__
+ // By default on linux move all user data file into central configuration directory
+ case DocsFolder_User: return GetUserLocalDataDir();
+#else
case DocsFolder_User: return (wxDirName)Path::Combine( wxStandardPaths::Get().GetDocumentsDir(), pxGetAppName() );
+#endif
//case DocsFolder_CWD: return (wxDirName)wxGetCwd();
case DocsFolder_Custom: return CustomDocumentsFolder;