| @@ -17,7 +17,7 @@ · 16 unmodified lines |
| 17 | #include "pt2_config.h" | 17 | #include "pt2_config.h" |
| 18 | #include "pt2_tables.h" | 18 | #include "pt2_tables.h" |
| 19 | #include "pt2_sampler.h" | 19 | #include "pt2_sampler.h" |
| 20 | #include "pt2_diskop.h" // changePathToDesktop() | 20 | #include "pt2_diskop.h" // changePathToDesktop(), changePathToHome() |
| 21 | | 21 | |
| 22 | #ifndef _WIN32 | 22 | #ifndef _WIN32 |
| 23 | static char oldCwd[PATH_MAX]; | 23 | static char oldCwd[PATH_MAX]; |
| @@ -87,7 +87,7 @@ void loadConfig(void) · 63 unmodified lines |
| 87 | proTrackerDotIniFound = true; | 87 | proTrackerDotIniFound = true; |
| 88 | | 88 | |
| 89 | // check in ~/.protracker/ | 89 | // check in ~/.protracker/ |
| 90 | if (!proTrackerDotIniFound && changePathToDesktop() && chdir(".protracker") == 0) | 90 | if (!proTrackerDotIniFound && changePathToHome() && chdir(".protracker") == 0) |
| 91 | { | 91 | { |
| 92 | f = fopen("protracker.ini", "r"); | 92 | f = fopen("protracker.ini", "r"); |
| 93 | if (f != NULL) | 93 | if (f != NULL) |
| @@ -116,7 +116,7 @@ void loadConfig(void) · 22 unmodified lines |
| 116 | ptDotConfigFound = true; | 116 | ptDotConfigFound = true; |
| 117 | | 117 | |
| 118 | // check in ~/.protracker/ | 118 | // check in ~/.protracker/ |
| 119 | if (!ptDotConfigFound && changePathToDesktop() && chdir(".protracker") == 0) | 119 | if (!ptDotConfigFound && changePathToHome() && chdir(".protracker") == 0) |
| 120 | { | 120 | { |
| 121 | f = openPTDotConfig(); | 121 | f = openPTDotConfig(); |
| 122 | if (f != NULL) | 122 | if (f != NULL) |
| @@ -140,7 +140,7 @@ void loadConfig(void) · 17 unmodified lines |
| 140 | colorsDotIniFound = loadColorsDotIni(); | 140 | colorsDotIniFound = loadColorsDotIni(); |
| 141 | | 141 | |
| 142 | // check in ~/.protracker/ | 142 | // check in ~/.protracker/ |
| 143 | if (!colorsDotIniFound && changePathToDesktop() && chdir(".protracker") == 0) | 143 | if (!colorsDotIniFound && changePathToHome() && chdir(".protracker") == 0) |
| 144 | loadColorsDotIni(); | 144 | loadColorsDotIni(); |
| 145 | #endif | 145 | #endif |
| 146 | | 146 | |