MACOSX: Use bundle name for config and log file names
The idea here is that we can package a game in a custom bundle using the scummvm executable, and use the game name as bundle name. It will then use its own config and log files rather than share the ones from the standalone ScummVM app.
This commit is contained in:
parent
883a68710b
commit
41bb796ef6
3 changed files with 13 additions and 2 deletions
|
@ -231,7 +231,7 @@ Common::String OSystem_MacOSX::getSystemLanguage() const {
|
|||
}
|
||||
|
||||
Common::String OSystem_MacOSX::getDefaultConfigFileName() {
|
||||
const Common::String baseConfigName = "Library/Preferences/ScummVM Preferences";
|
||||
const Common::String baseConfigName = "Library/Preferences/" + getMacBundleName() + " Preferences";
|
||||
|
||||
Common::String configFile;
|
||||
|
||||
|
@ -258,7 +258,9 @@ Common::String OSystem_MacOSX::getDefaultLogFileName() {
|
|||
return Common::String();
|
||||
}
|
||||
|
||||
return Common::String(prefix) + "/Library/Logs/scummvm.log";
|
||||
Common::String appName = getMacBundleName();
|
||||
appName.toLowercase();
|
||||
return Common::String(prefix) + "/Library/Logs/" + appName + ".log";
|
||||
}
|
||||
|
||||
Common::String OSystem_MacOSX::getDefaultIconsPath() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue