summarylogtreecommitdiffstats
path: root/folders.patch
blob: 6a91a98fecaff4fd4735ab5fe8cbc0e783fe15f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- openomf/src/resources/pathmanager.c	2025-02-04 22:23:36.226023816 -0800
+++ openomf/src/resources/pathmanager.c	2025-02-04 22:27:21.182950872 -0800
@@ -136,8 +136,8 @@
                 // on linux, the resources will be in ../share/games/openomf, relative to the binary
                 // so if openomf is installed to /usr/local/bin,
                 // the resources will be in /usr/local/share/games/openomf
-                local_path_build(RESOURCE_PATH, bin_base_dir, "../share/games/openomf/");
-                local_path_build(SHADER_PATH, bin_base_dir, "../share/games/openomf/shaders/");
+                local_path_build(RESOURCE_PATH, bin_base_dir, "../share/openomf/");
+                local_path_build(SHADER_PATH, bin_base_dir, "../share/openomf/shaders/");
                 m_ok = 1;
             } else if(strcmp(SDL_GetPlatform(), "Mac OS X") == 0) {
                 // on OSX, GetBasePath returns the 'Resources' directory
@@ -259,7 +259,7 @@
    if(xdg_env) {
         out = omf_strdup(xdg_env);
     } else {
-        char *sdl_path = SDL_GetPrefPath("openomfproject", "OpenOMF");
+        char *sdl_path = SDL_GetPrefPath("", "openomf");
         if(sdl_path == NULL) {
             snprintf(errormessage, 128, "Error getting config path: %s", SDL_GetError());
             return NULL;