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
146ba2d1
Commit
146ba2d1
authored
Sep 20, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
parents
7ff72281
f42ed605
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
22 deletions
+31
-22
gframe/gframe.cpp
gframe/gframe.cpp
+31
-22
No files found.
gframe/gframe.cpp
View file @
146ba2d1
...
...
@@ -82,7 +82,7 @@ int main(int argc, char* argv[]) {
argv
[
argc
]
=
ptr
+
1
;
j
=
0
;
}
in_SPACE
=
FALSE
;
in_SPACE
=
false
;
break
;
}
case
' '
:
...
...
@@ -93,18 +93,18 @@ int main(int argc, char* argv[]) {
argv
[
argc
][
j
]
=
'\0'
;
++
argc
;
}
in_TEXT
=
FALSE
;
in_SPACE
=
TRUE
;
in_TEXT
=
false
;
in_SPACE
=
true
;
break
;
}
default:
{
in_TEXT
=
TRUE
;
in_TEXT
=
true
;
if
(
in_SPACE
)
{
argv
[
argc
]
=
ptr
;
j
=
1
;
}
else
++
j
;
in_SPACE
=
FALSE
;
in_SPACE
=
false
;
break
;
}
}
...
...
@@ -120,37 +120,46 @@ int main(int argc, char* argv[]) {
bool
keep_on_return
=
false
;
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
if
(
argv
[
i
][
0
]
==
'-'
&&
argv
[
i
][
1
]
==
'e'
)
{
if
(
argv
[
i
][
0
]
==
'-'
&&
argv
[
i
][
1
]
==
'e'
&&
argv
[
i
][
2
]
)
{
ygo
::
dataManager
.
LoadDB
(
&
argv
[
i
][
2
]);
continue
;
}
if
(
!
strcmp
(
argv
[
i
],
"-e"
))
{
// extra database
++
i
;
if
(
i
<
argc
)
ygo
::
dataManager
.
LoadDB
(
&
argv
[
i
][
0
]);
continue
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-n"
))
{
// nickName
++
i
;
if
(
i
<
argc
)
{
wchar_t
param
[
128
];
GetParameterW
(
param
,
&
argv
[
i
][
0
]);
ygo
::
mainGame
->
ebNickName
->
setText
(
param
);
}
continue
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-h"
))
{
// Host address
++
i
;
if
(
i
<
argc
)
{
wchar_t
param
[
128
];
GetParameterW
(
param
,
&
argv
[
i
][
0
]);
ygo
::
mainGame
->
ebJoinHost
->
setText
(
param
);
}
continue
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-p"
))
{
// host Port
++
i
;
if
(
i
<
argc
)
{
wchar_t
param
[
128
];
GetParameterW
(
param
,
&
argv
[
i
][
0
]);
ygo
::
mainGame
->
ebJoinPort
->
setText
(
param
);
}
continue
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-w"
))
{
// host passWord
++
i
;
if
(
i
<
argc
)
{
wchar_t
param
[
128
];
GetParameterW
(
param
,
&
argv
[
i
][
0
]);
ygo
::
mainGame
->
ebJoinPass
->
setText
(
param
);
}
continue
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-k"
))
{
// Keep on return
exit_on_return
=
false
;
...
...
@@ -162,7 +171,7 @@ int main(int argc, char* argv[]) {
continue
;
}
else
{
// open deck
exit_on_return
=
!
keep_on_return
;
if
(
i
<
argc
)
{
if
(
i
+
1
<
argc
)
{
open_file
=
true
;
GetParameterW
(
open_file_name
,
&
argv
[
i
+
1
][
0
]);
}
...
...
@@ -181,7 +190,7 @@ int main(int argc, char* argv[]) {
break
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-r"
))
{
// Replay
exit_on_return
=
!
keep_on_return
;
if
(
i
<
argc
)
{
if
(
i
+
1
<
argc
)
{
open_file
=
true
;
GetParameterW
(
open_file_name
,
&
argv
[
i
+
1
][
0
]);
}
...
...
@@ -191,7 +200,7 @@ int main(int argc, char* argv[]) {
break
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-s"
))
{
// Single
exit_on_return
=
!
keep_on_return
;
if
(
i
<
argc
)
{
if
(
i
+
1
<
argc
)
{
open_file
=
true
;
GetParameterW
(
open_file_name
,
&
argv
[
i
+
1
][
0
]);
}
...
...
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