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
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
nanahira
ygopro
Commits
398bb2bd
Commit
398bb2bd
authored
Jun 27, 2025
by
nanahira
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate SERVER_TAG_SURRENDER_CONFIRM to premake boolOptions
parent
5e5a27c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
gframe/premake5.lua
gframe/premake5.lua
+0
-3
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1
-1
premake5.lua
premake5.lua
+3
-6
No files found.
gframe/premake5.lua
View file @
398bb2bd
...
@@ -30,9 +30,6 @@ if SERVER_MODE then
...
@@ -30,9 +30,6 @@ if SERVER_MODE then
if
SERVER_PRO2_SUPPORT
then
if
SERVER_PRO2_SUPPORT
then
defines
{
"SERVER_PRO2_SUPPORT"
}
defines
{
"SERVER_PRO2_SUPPORT"
}
end
end
if
SERVER_TAG_SURRENDER_CONFIRM
then
defines
{
"SERVER_TAG_SURRENDER_CONFIRM"
}
end
else
else
kind
"WindowedApp"
kind
"WindowedApp"
cppdialect
"C++14"
cppdialect
"C++14"
...
...
gframe/tag_duel.cpp
View file @
398bb2bd
...
@@ -668,7 +668,7 @@ void TagDuel::Surrender(DuelPlayer* dp) {
...
@@ -668,7 +668,7 @@ void TagDuel::Surrender(DuelPlayer* dp) {
if
(
dp
->
type
>
3
||
!
pduel
)
if
(
dp
->
type
>
3
||
!
pduel
)
return
;
return
;
uint32_t
player
=
dp
->
type
;
uint32_t
player
=
dp
->
type
;
#if !defined(YGOPRO_SERVER_MODE) || defined(SERVER_TAG_SURRENDER_CONFIRM)
#if !defined(YGOPRO_SERVER_MODE) || defined(
YGOPRO_
SERVER_TAG_SURRENDER_CONFIRM)
if
(
surrender
[
player
])
if
(
surrender
[
player
])
return
;
return
;
static
const
uint32_t
teammatemap
[]
=
{
1
,
0
,
3
,
2
};
static
const
uint32_t
teammatemap
[]
=
{
1
,
0
,
3
,
2
};
...
...
premake5.lua
View file @
398bb2bd
...
@@ -30,7 +30,6 @@ IRRKLANG_PRO_BUILD_IKPMP3 = false
...
@@ -30,7 +30,6 @@ IRRKLANG_PRO_BUILD_IKPMP3 = false
SERVER_MODE
=
true
SERVER_MODE
=
true
SERVER_ZIP_SUPPORT
=
false
SERVER_ZIP_SUPPORT
=
false
SERVER_PRO2_SUPPORT
=
false
SERVER_PRO2_SUPPORT
=
false
SERVER_TAG_SURRENDER_CONFIRM
=
false
-- Read settings from command line or environment variables
-- Read settings from command line or environment variables
...
@@ -96,11 +95,12 @@ newoption { trigger = "mac-intel", category = "YGOPro", description = "Compile f
...
@@ -96,11 +95,12 @@ newoption { trigger = "mac-intel", category = "YGOPro", description = "Compile f
newoption
{
trigger
=
"server-mode"
,
category
=
"YGOPro - server"
,
description
=
""
}
newoption
{
trigger
=
"server-mode"
,
category
=
"YGOPro - server"
,
description
=
""
}
newoption
{
trigger
=
"server-zip-support"
,
category
=
"YGOPro - server"
,
description
=
""
}
newoption
{
trigger
=
"server-zip-support"
,
category
=
"YGOPro - server"
,
description
=
""
}
newoption
{
trigger
=
"server-pro2-support"
,
category
=
"YGOPro - server"
,
description
=
""
}
newoption
{
trigger
=
"server-pro2-support"
,
category
=
"YGOPro - server"
,
description
=
""
}
newoption
{
trigger
=
"server-tag-surrender-confirm"
,
category
=
"YGOPro - server"
,
description
=
""
}
boolOptions
=
{
boolOptions
=
{
"no-lua-safe"
,
"no-lua-safe"
,
"no-side-check"
"no-side-check"
,
"server-tag-surrender-confirm"
,
"server-receive-ready"
,
}
}
for
_
,
boolOption
in
ipairs
(
boolOptions
)
do
for
_
,
boolOption
in
ipairs
(
boolOptions
)
do
...
@@ -155,9 +155,6 @@ if GetParam("server-pro2-support") then
...
@@ -155,9 +155,6 @@ if GetParam("server-pro2-support") then
SERVER_PRO2_SUPPORT
=
true
SERVER_PRO2_SUPPORT
=
true
SERVER_ZIP_SUPPORT
=
true
SERVER_ZIP_SUPPORT
=
true
end
end
if
GetParam
(
"server-tag-surrender-confirm"
)
then
SERVER_TAG_SURRENDER_CONFIRM
=
true
end
if
GetParam
(
"build-lua"
)
then
if
GetParam
(
"build-lua"
)
then
BUILD_LUA
=
true
BUILD_LUA
=
true
...
...
nanahira
@nanahira
mentioned in commit
4ad08898
·
Jun 27, 2025
mentioned in commit
4ad08898
mentioned in commit 4ad0889832122b9467f583e8494fdb00172de659
Toggle commit list
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