LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mirrormagic-2.0.2-src_files.c.patch of Package mirrormagic (Project games)

--- src/files.c.orig	2002-03-18 04:09:16.000000000 +0100
+++ src/files.c	2014-10-22 19:20:55.404228913 +0200
@@ -183,7 +183,11 @@
 static char *getScoreDir(char *level_subdir)
 {
   static char *score_dir = NULL;
+#ifdef USE_USERDATADIR_FOR_COMMONDATA
+  char *data_dir = getUserDataDir();
+#else
   char *data_dir = options.rw_base_directory;
+#endif
   char *score_subdir = SCORES_DIRECTORY;
 
   if (score_dir)