Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
4174b330
Commit
4174b330
authored
Dec 08, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
options in system.conf
These names are taken from the names of the checkboxes.
parent
00d8aa84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
gframe/game.cpp
gframe/game.cpp
+14
-14
No files found.
gframe/game.cpp
View file @
4174b330
...
...
@@ -846,19 +846,19 @@ void Game::LoadConfig() {
}
else
if
(
!
strcmp
(
strbuf
,
"roompass"
))
{
BufferIO
::
DecodeUTF8
(
valbuf
,
wstr
);
BufferIO
::
CopyWStr
(
wstr
,
gameConf
.
roompass
,
20
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkAutoP
os"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
autop
os"
))
{
gameConf
.
chkAutoPos
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkRandomP
os"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
randomp
os"
))
{
gameConf
.
chkRandomPos
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkAutoC
hain"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
autoc
hain"
))
{
gameConf
.
chkAutoChain
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkWaitC
hain"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
waitc
hain"
))
{
gameConf
.
chkWaitChain
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkI
gnore1"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
i
gnore1"
))
{
gameConf
.
chkIgnore1
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkI
gnore2"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
i
gnore2"
))
{
gameConf
.
chkIgnore2
=
atoi
(
valbuf
);
}
else
if
(
!
strcmp
(
strbuf
,
"
chkHideS
etname"
))
{
}
else
if
(
!
strcmp
(
strbuf
,
"
hide_s
etname"
))
{
gameConf
.
chkHideSetname
=
atoi
(
valbuf
);
}
else
{
// options allowing multiple words
...
...
@@ -903,13 +903,13 @@ void Game::SaveConfig() {
BufferIO
::
EncodeUTF8
(
gameConf
.
lastport
,
linebuf
);
fprintf
(
fp
,
"lastport = %s
\n
"
,
linebuf
);
//settings
fprintf
(
fp
,
"
chkAutoP
os = %d
\n
"
,
((
mainGame
->
chkAutoPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
chkRandomP
os = %d
\n
"
,
((
mainGame
->
chkRandomPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
chkAutoC
hain = %d
\n
"
,
((
mainGame
->
chkAutoChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
chkWaitC
hain = %d
\n
"
,
((
mainGame
->
chkWaitChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
chkI
gnore1 = %d
\n
"
,
((
mainGame
->
chkIgnore1
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
chkI
gnore2 = %d
\n
"
,
((
mainGame
->
chkIgnore2
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
chkHideS
etname = %d
\n
"
,
((
mainGame
->
chkHideSetname
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
autop
os = %d
\n
"
,
((
mainGame
->
chkAutoPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
randomp
os = %d
\n
"
,
((
mainGame
->
chkRandomPos
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
autoc
hain = %d
\n
"
,
((
mainGame
->
chkAutoChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
waitc
hain = %d
\n
"
,
((
mainGame
->
chkWaitChain
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
i
gnore1 = %d
\n
"
,
((
mainGame
->
chkIgnore1
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
i
gnore2 = %d
\n
"
,
((
mainGame
->
chkIgnore2
->
isChecked
())
?
1
:
0
));
fprintf
(
fp
,
"
hide_s
etname = %d
\n
"
,
((
mainGame
->
chkHideSetname
->
isChecked
())
?
1
:
0
));
fclose
(
fp
);
}
void
Game
::
ShowCardInfo
(
int
code
)
{
...
...
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