Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
taiko-db-writer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
taiko-db-writer
Commits
4a3dc077
Commit
4a3dc077
authored
Feb 10, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle
parent
49122e77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
index.js
index.js
+4
-0
No files found.
index.js
View file @
4a3dc077
...
...
@@ -25,11 +25,15 @@ const category_array = fs.readdirSync(fpath);
for
(
var
category_raw
of
category_array
)
{
const
category
=
parseInt
(
category_raw
);
if
(
isNaN
(
category
))
continue
;
const
category_path
=
fpath
+
"
/
"
+
category
;
//console.log("Reading: " + category_path);
const
songs
=
fs
.
readdirSync
(
category_path
);
for
(
var
song_raw
of
songs
)
{
const
song_id
=
parseInt
(
song_raw
);
if
(
isNaN
(
song_id
))
continue
;
const
tja_path
=
category_path
+
"
/
"
+
song_id
+
"
/main.tja
"
//console.log("Reading: " + tja_path);
const
tja_text
=
fs
.
readFileSync
(
tja_path
,
{
encoding
:
"
utf8
"
})
...
...
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