Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
0fe74ba1
Commit
0fe74ba1
authored
Nov 27, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a6695c44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
gframe/game.cpp
gframe/game.cpp
+5
-4
gframe/game.h
gframe/game.h
+3
-2
No files found.
gframe/game.cpp
View file @
0fe74ba1
...
...
@@ -933,9 +933,10 @@ void Game::RefreshBot() {
sscanf
(
linebuf
,
"%240[^
\n
]"
,
strbuf
);
BufferIO
::
DecodeUTF8
(
strbuf
,
newinfo
.
desc
);
fgets
(
linebuf
,
256
,
fp
);
sscanf
(
linebuf
,
"%d"
,
&
newinfo
.
flag
);
if
((
chkBotOldRule
->
isChecked
()
&&
(
newinfo
.
flag
&
0x1
))
||
(
!
chkBotOldRule
->
isChecked
()
&&
(
newinfo
.
flag
&
0x2
)))
newinfo
.
support_master_rule_3
=
!!
strstr
(
linebuf
,
"SUPPORT_MASTER_RULE_3"
);
newinfo
.
support_new_master_rule
=
!!
strstr
(
linebuf
,
"SUPPORT_NEW_MASTER_RULE"
);
if
((
chkBotOldRule
->
isChecked
()
&&
newinfo
.
support_master_rule_3
)
||
(
!
chkBotOldRule
->
isChecked
()
&&
newinfo
.
support_new_master_rule
))
botInfo
.
push_back
(
newinfo
);
continue
;
}
...
...
@@ -948,7 +949,7 @@ void Game::RefreshBot() {
lstBotList
->
addItem
(
botInfo
[
i
].
name
);
}
if
(
botInfo
.
size
()
==
0
)
stBotInfo
->
setText
(
dataManager
.
GetSysString
(
1385
));
SetStaticText
(
stBotInfo
,
200
,
guiFont
,
dataManager
.
GetSysString
(
1385
));
}
void
Game
::
LoadConfig
()
{
FILE
*
fp
=
fopen
(
"system.conf"
,
"r"
);
...
...
gframe/game.h
View file @
0fe74ba1
...
...
@@ -69,10 +69,11 @@ struct DuelInfo {
};
struct
BotInfo
{
wchar_t
name
[
32
];
wchar_t
name
[
256
];
wchar_t
command
[
256
];
wchar_t
desc
[
256
];
int
flag
;
bool
support_master_rule_3
;
bool
support_new_master_rule
;
};
struct
FadingUnit
{
...
...
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