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
1
Merge Requests
1
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
4cfbc51c
Commit
4cfbc51c
authored
Dec 07, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'server' into server-develop
parents
abba56fd
1cb6dff0
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
19 deletions
+29
-19
.github/workflows/build.yml
.github/workflows/build.yml
+7
-3
.github/workflows/server.yml
.github/workflows/server.yml
+1
-1
cards.cdb
cards.cdb
+0
-0
gframe/data_manager.cpp
gframe/data_manager.cpp
+12
-11
gframe/data_manager.h
gframe/data_manager.h
+3
-2
gframe/single_duel.cpp
gframe/single_duel.cpp
+2
-0
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+2
-0
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
.github/workflows/build.yml
View file @
4cfbc51c
name
:
Automated Test Build
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
on
:
push
:
branches
:
[
"
master"
]
...
...
@@ -120,7 +124,7 @@ jobs:
-
name
:
Download miniaudio
if
:
matrix.audiolib == 'miniaudio'
run
:
|
git clone --depth=1
https://github.com/mercury233
/miniaudio
git clone --depth=1
-b 0.11.23 https://github.com/mackron
/miniaudio
cd miniaudio
xcopy /Y extras\miniaudio_split\miniaudio.* .
cd ..
...
...
@@ -367,7 +371,7 @@ jobs:
-
name
:
Download miniaudio
run
:
|
git clone --depth=1
https://github.com/mercury233
/miniaudio
git clone --depth=1
-b 0.11.23 https://github.com/mackron
/miniaudio
cd miniaudio
cp extras/miniaudio_split/miniaudio.* .
cd ..
...
...
@@ -590,7 +594,7 @@ jobs:
-
name
:
Download miniaudio
run
:
|
git clone --depth=1
https://github.com/mercury233
/miniaudio
git clone --depth=1
-b 0.11.23 https://github.com/mackron
/miniaudio
cd miniaudio
cp extras/miniaudio_split/miniaudio.* .
cd ..
...
...
.github/workflows/server.yml
View file @
4cfbc51c
...
...
@@ -278,7 +278,7 @@ jobs:
merge-multiple
:
true
-
name
:
GitHub Release
uses
:
salix5/action-automatic-releases@
node20
uses
:
salix5/action-automatic-releases@
e0545bc14e9677f38aa573f1a52563022f987356
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
automatic_release_tag
:
"
server-latest"
...
...
cards.cdb
View file @
4cfbc51c
No preview for this file type
gframe/data_manager.cpp
View file @
4cfbc51c
...
...
@@ -8,6 +8,13 @@ namespace ygo {
unsigned
char
DataManager
::
scriptBuffer
[
0x100000
]
=
{};
DataManager
dataManager
;
#ifdef YGOPRO_SERVER_MODE
static
const
char
SELECT_STMT
[]
=
"SELECT datas.id, datas.ot, datas.alias, datas.setcode, datas.type, datas.atk, datas.def, datas.level, datas.race, datas.attribute, datas.category FROM datas"
;
#else
static
const
char
SELECT_STMT
[]
=
"SELECT datas.id, datas.ot, datas.alias, datas.setcode, datas.type, datas.atk, datas.def, datas.level, datas.race, datas.attribute, datas.category,"
" texts.name, texts.desc, texts.str1, texts.str2, texts.str3, texts.str4, texts.str5, texts.str6, texts.str7, texts.str8,"
" texts.str9, texts.str10, texts.str11, texts.str12, texts.str13, texts.str14, texts.str15, texts.str16 FROM datas INNER JOIN texts ON datas.id = texts.id"
;
#endif
DataManager
::
DataManager
()
:
_datas
(
32768
),
_strings
(
32768
)
{
extra_setcode
=
{
...
...
@@ -17,12 +24,7 @@ DataManager::DataManager() : _datas(32768), _strings(32768) {
}
bool
DataManager
::
ReadDB
(
sqlite3
*
pDB
)
{
sqlite3_stmt
*
pStmt
=
nullptr
;
#ifdef YGOPRO_SERVER_MODE
const
char
*
sql
=
"select * from datas"
;
#else
const
char
*
sql
=
"select * from datas,texts where datas.id=texts.id"
;
#endif
if
(
sqlite3_prepare_v2
(
pDB
,
sql
,
-
1
,
&
pStmt
,
nullptr
)
!=
SQLITE_OK
)
if
(
sqlite3_prepare_v2
(
pDB
,
SELECT_STMT
,
-
1
,
&
pStmt
,
nullptr
)
!=
SQLITE_OK
)
return
Error
(
pDB
,
pStmt
);
#ifndef YGOPRO_SERVER_MODE
wchar_t
strBuffer
[
4096
];
...
...
@@ -55,17 +57,16 @@ bool DataManager::ReadDB(sqlite3* pDB) {
cd
.
category
=
static_cast
<
decltype
(
cd
.
category
)
>
(
sqlite3_column_int64
(
pStmt
,
10
));
#ifndef YGOPRO_SERVER_MODE
auto
&
cs
=
_strings
[
code
];
if
(
const
char
*
text
=
(
const
char
*
)
sqlite3_column_text
(
pStmt
,
1
2
))
{
if
(
const
char
*
text
=
(
const
char
*
)
sqlite3_column_text
(
pStmt
,
1
1
))
{
BufferIO
::
DecodeUTF8
(
text
,
strBuffer
);
cs
.
name
=
strBuffer
;
}
if
(
const
char
*
text
=
(
const
char
*
)
sqlite3_column_text
(
pStmt
,
1
3
))
{
if
(
const
char
*
text
=
(
const
char
*
)
sqlite3_column_text
(
pStmt
,
1
2
))
{
BufferIO
::
DecodeUTF8
(
text
,
strBuffer
);
cs
.
text
=
strBuffer
;
}
constexpr
int
desc_count
=
sizeof
cs
.
desc
/
sizeof
cs
.
desc
[
0
];
for
(
int
i
=
0
;
i
<
desc_count
;
++
i
)
{
if
(
const
char
*
text
=
(
const
char
*
)
sqlite3_column_text
(
pStmt
,
i
+
14
))
{
for
(
int
i
=
0
;
i
<
DESC_COUNT
;
++
i
)
{
if
(
const
char
*
text
=
(
const
char
*
)
sqlite3_column_text
(
pStmt
,
13
+
i
))
{
BufferIO
::
DecodeUTF8
(
text
,
strBuffer
);
cs
.
desc
[
i
]
=
strBuffer
;
}
...
...
gframe/data_manager.h
View file @
4cfbc51c
...
...
@@ -49,10 +49,11 @@ struct CardDataC {
return
false
;
}
};
constexpr
int
DESC_COUNT
=
16
;
struct
CardString
{
std
::
wstring
name
;
std
::
wstring
text
;
std
::
wstring
desc
[
16
];
std
::
wstring
desc
[
DESC_COUNT
];
};
using
code_pointer
=
std
::
unordered_map
<
uint32_t
,
CardDataC
>::
const_iterator
;
using
string_pointer
=
std
::
unordered_map
<
uint32_t
,
CardString
>::
const_iterator
;
...
...
gframe/single_duel.cpp
View file @
4cfbc51c
...
...
@@ -1926,6 +1926,8 @@ void SingleDuel::EndDuel() {
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
NetServer
::
ReSendToPlayers
(
cache_recorder
,
replay_recorder
);
}
else
{
NetServer
::
ReSendToPlayer
(
replay_recorder
);
}
#else
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
...
...
gframe/tag_duel.cpp
View file @
4cfbc51c
...
...
@@ -2017,6 +2017,8 @@ void TagDuel::EndDuel() {
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
NetServer
::
ReSendToPlayers
(
cache_recorder
,
replay_recorder
);
}
else
{
NetServer
::
ReSendToPlayer
(
replay_recorder
);
}
#else
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
...
...
ocgcore
@
6ee4147f
Subproject commit
fa884004d6c1a5dd5f240f34e955d65c16a87af0
Subproject commit
6ee4147f21b30aa386368c920cdc4468d2e58569
script
@
45ae0d06
Subproject commit
31056b09f24b5a00f3b8bf8b804c9849367cfea9
Subproject commit
45ae0d0653f860f8a0866173c58829429a332310
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