Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
mercury233
ygopro2
Commits
fe724234
Commit
fe724234
authored
Aug 07, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add expansions back
parent
81dbad28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+7
-8
Assets/YGOSharp/BanlistManager.cs
Assets/YGOSharp/BanlistManager.cs
+8
-4
No files found.
Assets/SibylSystem/Program.cs
View file @
fe724234
...
@@ -379,6 +379,10 @@ public class Program : MonoBehaviour
...
@@ -379,6 +379,10 @@ public class Program : MonoBehaviour
{
{
string_ok
=
GameStringManager
.
initialize
(
"strings.conf"
);
string_ok
=
GameStringManager
.
initialize
(
"strings.conf"
);
}
}
if
(
File
.
Exists
(
"expansions/lflist.conf"
))
// expansions lflist first
{
YGOSharp
.
BanlistManager
.
initialize
(
"expansions/lflist.conf"
);
}
if
(!
lflist_ok
&&
File
.
Exists
(
"cdb/lflist.conf"
))
if
(!
lflist_ok
&&
File
.
Exists
(
"cdb/lflist.conf"
))
{
{
lflist_ok
=
YGOSharp
.
BanlistManager
.
initialize
(
"cdb/lflist.conf"
);
lflist_ok
=
YGOSharp
.
BanlistManager
.
initialize
(
"cdb/lflist.conf"
);
...
@@ -388,12 +392,8 @@ public class Program : MonoBehaviour
...
@@ -388,12 +392,8 @@ public class Program : MonoBehaviour
lflist_ok
=
YGOSharp
.
BanlistManager
.
initialize
(
"lflist.conf"
);
lflist_ok
=
YGOSharp
.
BanlistManager
.
initialize
(
"lflist.conf"
);
}
}
/* Expansions folder is not currently used, so not loading.
YGOSharp
.
BanlistManager
.
initializeComplete
();
if (File.Exists("expansions/lflist.conf"))
{
YGOSharp.BanlistManager.initialize("expansions/lflist.conf");
}
if
(
File
.
Exists
(
"expansions/strings.conf"
))
if
(
File
.
Exists
(
"expansions/strings.conf"
))
{
{
GameStringManager
.
initialize
(
"expansions/strings.conf"
);
GameStringManager
.
initialize
(
"expansions/strings.conf"
);
...
@@ -413,7 +413,6 @@ public class Program : MonoBehaviour
...
@@ -413,7 +413,6 @@ public class Program : MonoBehaviour
}
}
}
}
}
}
*/
if
(
Directory
.
Exists
(
"pack"
))
if
(
Directory
.
Exists
(
"pack"
))
{
{
...
@@ -953,8 +952,8 @@ public class Program : MonoBehaviour
...
@@ -953,8 +952,8 @@ public class Program : MonoBehaviour
public
DeckManager
deckManager
;
public
DeckManager
deckManager
;
public
Ocgcore
ocgcore
;
public
Ocgcore
ocgcore
;
public
SelectServer
selectServer
;
public
SelectServer
selectServer
;
public
MyCard
mycard
;
public
MyCard
mycard
;
public
RoomList
roomList
;
public
RoomList
roomList
;
public
Book
book
;
public
Book
book
;
public
puzzleMode
puzzleMode
;
public
puzzleMode
puzzleMode
;
public
AIRoom
aiRoom
;
public
AIRoom
aiRoom
;
...
...
Assets/YGOSharp/BanlistManager.cs
View file @
fe724234
...
@@ -45,15 +45,19 @@ namespace YGOSharp
...
@@ -45,15 +45,19 @@ namespace YGOSharp
UnityEngine
.
Debug
.
Log
(
e
);
UnityEngine
.
Debug
.
Log
(
e
);
}
}
}
}
current
=
new
Banlist
();
current
.
Name
=
"N/A"
;
new_list
.
Add
(
current
);
if
(!
test
)
{
if
(!
test
)
{
Banlists
=
new_list
;
foreach
(
var
item
in
new_list
)
{
Banlists
.
Add
(
item
);
}
}
}
return
(
success
&&
new_list
.
Count
>
1
);
return
(
success
&&
new_list
.
Count
>
1
);
}
}
public
static
void
initializeComplete
()
{
Banlist
blank
=
new
Banlist
();
blank
.
Name
=
"N/A"
;
Banlists
.
Add
(
item
);
}
public
static
int
GetIndex
(
uint
hash
)
public
static
int
GetIndex
(
uint
hash
)
{
{
for
(
int
i
=
0
;
i
<
Banlists
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
Banlists
.
Count
;
i
++)
...
...
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