Commit 1242a555 authored by Andreas Heimann's avatar Andreas Heimann

extracted general modules and variables to seperate files

parent 2050703e
const { ipcRenderer } = require('electron');
const { dialog, shell, app } = require('electron').remote;
const path = require('path');
const SHAPI = require( path.resolve(__dirname, './assets/js/api.js') );
const fs = require('fs');
const rimraf = require('rimraf');
const ncp = require('ncp');
const http = require('http');
const unzipper = require('unzipper');
\ No newline at end of file
console.log("Initializing System.");
let systemOS = process.platform;
let tempDirLocation = app.getPath('temp');
let gameDirLocation;
// TODO: Mac/Linux Support
// TODO: Custom Dir
if(process.platform == "win32") {
gameDirLocation = path.join(app.getPath("userData"), "../..", "LocalLow", "Super Spin Digital", "Spin Rhythm XD", "Custom");
} else {
console.error("Unsupported system");
}
\ No newline at end of file
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