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
YGOPRO-520DIY
ygopro
Commits
a30b6624
Commit
a30b6624
authored
Jun 29, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
into server
parents
42290b43
f0e9bc88
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
235 additions
and
31 deletions
+235
-31
.github/workflows/build.yml
.github/workflows/build.yml
+3
-3
gframe/client_field.cpp
gframe/client_field.cpp
+30
-10
gframe/premake5.lua
gframe/premake5.lua
+2
-1
lflist.conf
lflist.conf
+196
-13
premake/event/premake5.lua
premake/event/premake5.lua
+4
-4
No files found.
.github/workflows/build.yml
View file @
a30b6624
...
...
@@ -120,7 +120,7 @@ jobs:
-
name
:
Download miniaudio
if
:
matrix.audiolib == 'miniaudio'
run
:
|
git clone --depth=1
--branch 0.11.22 https://github.com/mackron
/miniaudio
git clone --depth=1
https://github.com/mercury233
/miniaudio
cd miniaudio
xcopy /Y extras\miniaudio_split\miniaudio.* .
cd ..
...
...
@@ -367,7 +367,7 @@ jobs:
-
name
:
Download miniaudio
run
:
|
git clone --depth=1
--branch 0.11.22 https://github.com/mackron
/miniaudio
git clone --depth=1
https://github.com/mercury233
/miniaudio
cd miniaudio
cp extras/miniaudio_split/miniaudio.* .
cd ..
...
...
@@ -601,7 +601,7 @@ jobs:
-
name
:
Download miniaudio
run
:
|
git clone --depth=1
--branch 0.11.22 https://github.com/mackron
/miniaudio
git clone --depth=1
https://github.com/mercury233
/miniaudio
cd miniaudio
cp extras/miniaudio_split/miniaudio.* .
cd ..
...
...
gframe/client_field.cpp
View file @
a30b6624
...
...
@@ -222,12 +222,12 @@ void ClientField::AddCard(ClientCard* pcard, int controler, int location, int se
}
case
LOCATION_GRAVE
:
{
grave
[
controler
].
push_back
(
pcard
);
ResetSequence
(
grave
[
controler
],
false
);
pcard
->
sequence
=
(
unsigned
char
)(
grave
[
controler
].
size
()
-
1
);
break
;
}
case
LOCATION_REMOVED
:
{
remove
[
controler
].
push_back
(
pcard
);
ResetSequence
(
remove
[
controler
],
false
);
pcard
->
sequence
=
(
unsigned
char
)(
remove
[
controler
].
size
()
-
1
);
break
;
}
case
LOCATION_EXTRA
:
{
...
...
@@ -249,8 +249,13 @@ ClientCard* ClientField::RemoveCard(int controler, int location, int sequence) {
switch
(
location
)
{
case
LOCATION_DECK
:
{
pcard
=
deck
[
controler
][
sequence
];
deck
[
controler
].
erase
(
deck
[
controler
].
begin
()
+
sequence
);
ResetSequence
(
deck
[
controler
],
true
);
for
(
size_t
i
=
sequence
;
i
<
deck
[
controler
].
size
()
-
1
;
++
i
)
{
deck
[
controler
][
i
]
=
deck
[
controler
][
i
+
1
];
deck
[
controler
][
i
]
->
sequence
--
;
deck
[
controler
][
i
]
->
curPos
-=
irr
::
core
::
vector3df
(
0
,
0
,
0.01
f
);
deck
[
controler
][
i
]
->
mTransform
.
setTranslation
(
deck
[
controler
][
i
]
->
curPos
);
}
deck
[
controler
].
erase
(
deck
[
controler
].
end
()
-
1
);
break
;
}
case
LOCATION_HAND
:
{
...
...
@@ -271,20 +276,35 @@ ClientCard* ClientField::RemoveCard(int controler, int location, int sequence) {
}
case
LOCATION_GRAVE
:
{
pcard
=
grave
[
controler
][
sequence
];
grave
[
controler
].
erase
(
grave
[
controler
].
begin
()
+
sequence
);
ResetSequence
(
grave
[
controler
],
true
);
for
(
size_t
i
=
sequence
;
i
<
grave
[
controler
].
size
()
-
1
;
++
i
)
{
grave
[
controler
][
i
]
=
grave
[
controler
][
i
+
1
];
grave
[
controler
][
i
]
->
sequence
--
;
grave
[
controler
][
i
]
->
curPos
-=
irr
::
core
::
vector3df
(
0
,
0
,
0.01
f
);
grave
[
controler
][
i
]
->
mTransform
.
setTranslation
(
grave
[
controler
][
i
]
->
curPos
);
}
grave
[
controler
].
erase
(
grave
[
controler
].
end
()
-
1
);
break
;
}
case
LOCATION_REMOVED
:
{
pcard
=
remove
[
controler
][
sequence
];
remove
[
controler
].
erase
(
remove
[
controler
].
begin
()
+
sequence
);
ResetSequence
(
remove
[
controler
],
true
);
for
(
size_t
i
=
sequence
;
i
<
remove
[
controler
].
size
()
-
1
;
++
i
)
{
remove
[
controler
][
i
]
=
remove
[
controler
][
i
+
1
];
remove
[
controler
][
i
]
->
sequence
--
;
remove
[
controler
][
i
]
->
curPos
-=
irr
::
core
::
vector3df
(
0
,
0
,
0.01
f
);
remove
[
controler
][
i
]
->
mTransform
.
setTranslation
(
remove
[
controler
][
i
]
->
curPos
);
}
remove
[
controler
].
erase
(
remove
[
controler
].
end
()
-
1
);
break
;
}
case
LOCATION_EXTRA
:
{
pcard
=
extra
[
controler
][
sequence
];
extra
[
controler
].
erase
(
extra
[
controler
].
begin
()
+
sequence
);
ResetSequence
(
extra
[
controler
],
true
);
for
(
size_t
i
=
sequence
;
i
<
extra
[
controler
].
size
()
-
1
;
++
i
)
{
extra
[
controler
][
i
]
=
extra
[
controler
][
i
+
1
];
extra
[
controler
][
i
]
->
sequence
--
;
extra
[
controler
][
i
]
->
curPos
-=
irr
::
core
::
vector3df
(
0
,
0
,
0.01
f
);
extra
[
controler
][
i
]
->
mTransform
.
setTranslation
(
extra
[
controler
][
i
]
->
curPos
);
}
extra
[
controler
].
erase
(
extra
[
controler
].
end
()
-
1
);
if
(
pcard
->
position
&
POS_FACEUP
)
extra_p_count
[
controler
]
--
;
break
;
...
...
gframe/premake5.lua
View file @
a30b6624
...
...
@@ -35,7 +35,6 @@ if SERVER_MODE then
end
else
kind
"WindowedApp"
cppdialect
"C++14"
rtti
"Off"
openmp
"On"
...
...
@@ -123,6 +122,8 @@ end
filter
{}
end
end
filter
"not action:vs*"
cppdialect
"C++14"
filter
"system:macosx"
if
not
SERVER_MODE
then
...
...
lflist.conf
View file @
a30b6624
This diff is collapsed.
Click to expand it.
premake/event/premake5.lua
View file @
a30b6624
project
"event"
kind
"StaticLib"
local
EVENT_VERSION
=
(
io
.
readfile
(
"configure"
)
or
""
):
match
(
"NUMERIC_VERSION%s+
0x(
%x+)"
)
local
EVENT_VERSION
=
(
io
.
readfile
(
"configure"
)
or
""
):
match
(
"NUMERIC_VERSION%s+
(0x
%x+)"
)
if
not
EVENT_VERSION
then
print
(
"Warning: Could not determine libevent version from the configure file, assuming 2.1.12."
)
EVENT_VERSION
=
"02010c00"
-- 2.1.12
EVENT_VERSION
=
"0
x0
2010c00"
-- 2.1.12
end
EVENT_VERSION
=
tonumber
(
EVENT_VERSION
,
16
)
EVENT_VERSION
=
tonumber
(
EVENT_VERSION
)
if
EVENT_VERSION
>=
0x02020000
then
print
(
"Warning: Using libevent version 2.2.x is not supported, please use 2.1.x, otherwise you may encounter issues."
)
end
if
EVENT_VERSION
>=
0x02010000
and
WINXP_SUPPORT
then
print
(
"Warning: libevent 2.1 uses some new APIs which require Windows Vista or later, so WinXP support will be
not
valid."
)
print
(
"Warning: libevent 2.1 uses some new APIs which require Windows Vista or later, so WinXP support will be
in
valid."
)
end
includedirs
{
"include"
,
"compat"
}
...
...
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