|
|
@@ -38,6 +38,13 @@ static void initSystemDir() { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// Environment variable overrides |
|
|
|
const char* env = getenv("RACK_SYSTEM_DIR"); |
|
|
|
if (env) { |
|
|
|
systemDir = env; |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
#if defined ARCH_MAC |
|
|
|
CFBundleRef bundle = CFBundleGetMainBundle(); |
|
|
|
assert(bundle); |
|
|
@@ -85,6 +92,13 @@ static void initUserDir() { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// Environment variable overrides |
|
|
|
const char* env = getenv("RACK_USER_DIR"); |
|
|
|
if (env) { |
|
|
|
userDir = env; |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
#if defined ARCH_WIN |
|
|
|
// Get "My Documents" path |
|
|
|
wchar_t documentsBufW[MAX_PATH] = L"."; |
|
|
|