Commit d405432a authored by SpinShare's avatar SpinShare

added mac support for path detection

parent 4fc410d5
......@@ -36,10 +36,16 @@ class UserSettings {
// TODO: Mac/Linux Support
detectGameDirectory() {
if(process.platform == "win32") {
switch(process.platform) {
default:
alert("Unsupported platform!");
break;
case "win32":
return path.join(app.getPath("userData"), "../..", "LocalLow", "Super Spin Digital", "Spin Rhythm XD", "Custom");
} else {
console.error("Unsupported system");
break;
case "darwin":
return path.join(app.getPath("appData"), "Super Spin Digital", "Spin Rhythm XD", "Custom");
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment