Commit d68d100c authored by SpinShare's avatar SpinShare

added linux support to direction detection

parent f516a721
......@@ -34,7 +34,7 @@ class UserSettings {
fs.writeFileSync(this.path, JSON.stringify(this.data));
}
// TODO: Mac/Linux Support
// TODO: Custom Dir Support
detectGameDirectory() {
switch(process.platform) {
default:
......@@ -46,6 +46,10 @@ class UserSettings {
case "darwin":
return path.join(app.getPath("appData"), "Super Spin Digital", "Spin Rhythm XD", "Custom");
break;
case "linux":
let linuxHomedir = require('os').homedir();
return path.join(linuxHomedir, ".local", "share", "Steam", "steamapps", "compatdata", "1058830", "pfx", "drive_c", "users", "steamuser", "AppData", "LocalLow", "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