Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
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
fallenstardust
YGOProUnity_V2
Commits
60d35c1e
Commit
60d35c1e
authored
Sep 29, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert directory
parent
592eaf86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
7 deletions
+41
-7
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+41
-7
No files found.
Assets/SibylSystem/Program.cs
View file @
60d35c1e
...
...
@@ -313,12 +313,47 @@ public class Program : MonoBehaviour
}
}
fileInfos
=
(
new
DirectoryInfo
(
"data"
)).
GetFiles
();
foreach
(
FileInfo
file
in
fileInfos
)
if
(
Directory
.
Exists
(
"cdb"
))
{
fileInfos
=
(
new
DirectoryInfo
(
"cdb"
)).
GetFiles
();
foreach
(
FileInfo
file
in
fileInfos
)
{
if
(
file
.
Name
.
ToLower
().
EndsWith
(
".conf"
))
{
GameStringManager
.
initialize
(
"cdb/"
+
file
.
Name
);
}
if
(
file
.
Name
.
ToLower
().
EndsWith
(
".cdb"
))
{
YGOSharp
.
CardsManager
.
initialize
(
"cdb/"
+
file
.
Name
);
}
}
}
if
(
Directory
.
Exists
(
"diy"
))
{
fileInfos
=
(
new
DirectoryInfo
(
"diy"
)).
GetFiles
();
foreach
(
FileInfo
file
in
fileInfos
)
{
if
(
file
.
Name
.
ToLower
().
EndsWith
(
".conf"
))
{
GameStringManager
.
initialize
(
"diy/"
+
file
.
Name
);
}
if
(
file
.
Name
.
ToLower
().
EndsWith
(
".cdb"
))
{
YGOSharp
.
CardsManager
.
initialize
(
"diy/"
+
file
.
Name
);
}
}
}
if
(
Directory
.
Exists
(
"data"
))
{
if
(
file
.
Name
.
ToLower
().
EndsWith
(
".zip"
))
fileInfos
=
(
new
DirectoryInfo
(
"data"
)).
GetFiles
();
foreach
(
FileInfo
file
in
fileInfos
)
{
GameZipManager
.
Zips
.
Add
(
new
Ionic
.
Zip
.
ZipFile
(
"data/"
+
file
.
Name
));
if
(
file
.
Name
.
ToLower
().
EndsWith
(
".zip"
))
{
GameZipManager
.
Zips
.
Add
(
new
Ionic
.
Zip
.
ZipFile
(
"data/"
+
file
.
Name
));
}
}
}
...
...
@@ -346,9 +381,8 @@ public class Program : MonoBehaviour
}
}
GameStringManager
.
initialize
(
"data/strings.conf"
);
YGOSharp
.
CardsManager
.
initialize
(
"data/cards.cdb"
);
YGOSharp
.
BanlistManager
.
initialize
(
"data/lflist.conf"
);
GameStringManager
.
initialize
(
"config/strings.conf"
);
YGOSharp
.
BanlistManager
.
initialize
(
"config/lflist.conf"
);
if
(
Directory
.
Exists
(
"pack"
))
{
...
...
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