Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Desktop Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Desktop Client
Commits
1242a555
Commit
1242a555
authored
Mar 31, 2020
by
Andreas Heimann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extracted general modules and variables to seperate files
parent
2050703e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
src/assets/js/init.js
src/assets/js/init.js
+9
-0
src/assets/js/system.js
src/assets/js/system.js
+13
-0
No files found.
src/assets/js/init.js
0 → 100644
View file @
1242a555
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
src/assets/js/system.js
0 → 100644
View file @
1242a555
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment