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
363deae0
Commit
363deae0
authored
Apr 08, 2020
by
jy1263
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update module.srxd.js
parent
f465b3c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/assets/js/module.srxd.js
src/assets/js/module.srxd.js
+4
-4
No files found.
src/assets/js/module.srxd.js
View file @
363deae0
...
...
@@ -107,10 +107,10 @@ class SRXD {
let
dir
=
fs
.
readdirSync
(
path
);
return
dir
.
filter
(
elm
=>
elm
.
match
(
new
RegExp
(
`.*\.srtb$`
,
'
ig
'
)));
}
getFileExtension
(
fileName
,
path
)
{
let
dir
=
fs
.
readdirSync
(
path
);
return
dir
.
filter
(
elm
=>
elm
.
match
(
new
RegExp
(
`(
${
fileName
}
).*\.$`
,
'
ig
'
)))
;
getFileExtension
(
fileName
,
filePath
){
let
filePathJoined
=
path
.
join
(
filePath
,
fileName
);
let
files
=
glob
.
sync
(
filePathJoined
+
"
*
"
);
return
[
path
.
parse
(
files
[
0
]).
base
]
;
}
getSongCover
(
fileName
)
{
let
fileExtension
=
this
.
getFileExtension
(
fileName
,
path
.
join
(
userSettings
.
get
(
'
gameDirectory
'
),
"
AlbumArt
"
)
);
...
...
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