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
0461c884
Commit
0461c884
authored
Feb 07, 2026
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'salix/patch-map' into develop
parents
b150b878
e9edea55
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
34 deletions
+30
-34
gframe/data_manager.cpp
gframe/data_manager.cpp
+14
-20
gframe/data_manager.h
gframe/data_manager.h
+15
-13
gframe/deck_con.cpp
gframe/deck_con.cpp
+1
-1
No files found.
gframe/data_manager.cpp
View file @
0461c884
...
@@ -221,32 +221,26 @@ const wchar_t* DataManager::GetDesc(uint32_t strCode) const {
...
@@ -221,32 +221,26 @@ const wchar_t* DataManager::GetDesc(uint32_t strCode) const {
return
csit
->
second
.
desc
[
offset
].
c_str
();
return
csit
->
second
.
desc
[
offset
].
c_str
();
return
unknown_string
;
return
unknown_string
;
}
}
const
wchar_t
*
DataManager
::
Get
SysString
(
in
t
code
)
const
{
const
wchar_t
*
DataManager
::
Get
MapString
(
const
wstring_map
&
table
,
uint32_
t
code
)
const
{
auto
csit
=
_sysStrings
.
find
(
code
);
auto
csit
=
table
.
find
(
code
);
if
(
csit
==
_sysStrings
.
end
())
if
(
csit
==
table
.
end
())
return
unknown_string
;
return
unknown_string
;
return
csit
->
second
.
c_str
();
return
csit
->
second
.
c_str
();
}
}
const
wchar_t
*
DataManager
::
GetVictoryString
(
int
code
)
const
{
const
wchar_t
*
DataManager
::
GetSysString
(
uint32_t
code
)
const
{
auto
csit
=
_victoryStrings
.
find
(
code
);
return
GetMapString
(
_sysStrings
,
code
);
if
(
csit
==
_victoryStrings
.
end
())
return
unknown_string
;
return
csit
->
second
.
c_str
();
}
}
const
wchar_t
*
DataManager
::
GetCounterName
(
int
code
)
const
{
const
wchar_t
*
DataManager
::
GetVictoryString
(
uint32_t
code
)
const
{
auto
csit
=
_counterStrings
.
find
(
code
);
return
GetMapString
(
_victoryStrings
,
code
);
if
(
csit
==
_counterStrings
.
end
())
return
unknown_string
;
return
csit
->
second
.
c_str
();
}
}
const
wchar_t
*
DataManager
::
Get
SetName
(
in
t
code
)
const
{
const
wchar_t
*
DataManager
::
Get
CounterName
(
uint32_
t
code
)
const
{
auto
csit
=
_setnameStrings
.
find
(
code
);
return
GetMapString
(
_counterStrings
,
code
);
if
(
csit
==
_setnameStrings
.
end
())
}
return
unknown_string
;
const
wchar_t
*
DataManager
::
GetSetName
(
uint32_t
code
)
const
{
return
csit
->
second
.
c_str
(
);
return
GetMapString
(
_setnameStrings
,
code
);
}
}
std
::
vector
<
u
nsigned
in
t
>
DataManager
::
GetSetCodes
(
std
::
wstring
setname
)
const
{
std
::
vector
<
u
int32_
t
>
DataManager
::
GetSetCodes
(
std
::
wstring
setname
)
const
{
std
::
vector
<
u
nsigned
in
t
>
matchingCodes
;
std
::
vector
<
u
int32_
t
>
matchingCodes
;
for
(
auto
csit
=
_setnameStrings
.
begin
();
csit
!=
_setnameStrings
.
end
();
++
csit
)
{
for
(
auto
csit
=
_setnameStrings
.
begin
();
csit
!=
_setnameStrings
.
end
();
++
csit
)
{
auto
xpos
=
csit
->
second
.
find_first_of
(
L'|'
);
//setname|another setname or extra info
auto
xpos
=
csit
->
second
.
find_first_of
(
L'|'
);
//setname|another setname or extra info
if
(
setname
.
size
()
<
2
)
{
if
(
setname
.
size
()
<
2
)
{
...
...
gframe/data_manager.h
View file @
0461c884
...
@@ -57,6 +57,7 @@ struct CardString {
...
@@ -57,6 +57,7 @@ struct CardString {
};
};
using
code_pointer
=
std
::
unordered_map
<
uint32_t
,
CardDataC
>::
const_iterator
;
using
code_pointer
=
std
::
unordered_map
<
uint32_t
,
CardDataC
>::
const_iterator
;
using
string_pointer
=
std
::
unordered_map
<
uint32_t
,
CardString
>::
const_iterator
;
using
string_pointer
=
std
::
unordered_map
<
uint32_t
,
CardString
>::
const_iterator
;
using
wstring_map
=
std
::
unordered_map
<
uint32_t
,
std
::
wstring
>
;
class
ClientCard
;
class
ClientCard
;
...
@@ -83,11 +84,11 @@ public:
...
@@ -83,11 +84,11 @@ public:
const
wchar_t
*
GetName
(
uint32_t
code
)
const
;
const
wchar_t
*
GetName
(
uint32_t
code
)
const
;
const
wchar_t
*
GetText
(
uint32_t
code
)
const
;
const
wchar_t
*
GetText
(
uint32_t
code
)
const
;
const
wchar_t
*
GetDesc
(
uint32_t
strCode
)
const
;
const
wchar_t
*
GetDesc
(
uint32_t
strCode
)
const
;
const
wchar_t
*
GetSysString
(
in
t
code
)
const
;
const
wchar_t
*
GetSysString
(
uint32_
t
code
)
const
;
const
wchar_t
*
GetVictoryString
(
in
t
code
)
const
;
const
wchar_t
*
GetVictoryString
(
uint32_
t
code
)
const
;
const
wchar_t
*
GetCounterName
(
in
t
code
)
const
;
const
wchar_t
*
GetCounterName
(
uint32_
t
code
)
const
;
const
wchar_t
*
GetSetName
(
in
t
code
)
const
;
const
wchar_t
*
GetSetName
(
uint32_
t
code
)
const
;
std
::
vector
<
u
nsigned
in
t
>
GetSetCodes
(
std
::
wstring
setname
)
const
;
std
::
vector
<
u
int32_
t
>
GetSetCodes
(
std
::
wstring
setname
)
const
;
std
::
wstring
GetNumString
(
int
num
,
bool
bracket
=
false
)
const
;
std
::
wstring
GetNumString
(
int
num
,
bool
bracket
=
false
)
const
;
const
wchar_t
*
FormatLocation
(
int
location
,
int
sequence
)
const
;
const
wchar_t
*
FormatLocation
(
int
location
,
int
sequence
)
const
;
const
wchar_t
*
FormatLocation
(
ClientCard
*
card
)
const
;
const
wchar_t
*
FormatLocation
(
ClientCard
*
card
)
const
;
...
@@ -97,18 +98,18 @@ public:
...
@@ -97,18 +98,18 @@ public:
std
::
wstring
FormatSetName
(
const
uint16_t
setcode
[])
const
;
std
::
wstring
FormatSetName
(
const
uint16_t
setcode
[])
const
;
std
::
wstring
FormatLinkMarker
(
unsigned
int
link_marker
)
const
;
std
::
wstring
FormatLinkMarker
(
unsigned
int
link_marker
)
const
;
std
::
unordered_map
<
unsigned
int
,
std
::
wstring
>
_counterStrings
;
wstring_map
_counterStrings
;
std
::
unordered_map
<
unsigned
int
,
std
::
wstring
>
_victoryStrings
;
wstring_map
_victoryStrings
;
std
::
unordered_map
<
unsigned
int
,
std
::
wstring
>
_setnameStrings
;
wstring_map
_setnameStrings
;
std
::
unordered_map
<
unsigned
int
,
std
::
wstring
>
_sysStrings
;
wstring_map
_sysStrings
;
char
errmsg
[
512
]{};
char
errmsg
[
512
]{};
const
wchar_t
*
unknown_string
{
L"???"
};
const
wchar_t
*
unknown_string
{
L"???"
};
irr
::
io
::
IFileSystem
*
FileSystem
{};
irr
::
io
::
IFileSystem
*
FileSystem
{};
static
constexpr
in
t
STRING_ID_LOCATION
=
1000
;
static
constexpr
uint32_
t
STRING_ID_LOCATION
=
1000
;
static
constexpr
in
t
STRING_ID_ATTRIBUTE
=
1010
;
static
constexpr
uint32_
t
STRING_ID_ATTRIBUTE
=
1010
;
static
constexpr
in
t
STRING_ID_RACE
=
1020
;
static
constexpr
uint32_
t
STRING_ID_RACE
=
1020
;
static
constexpr
in
t
STRING_ID_TYPE
=
1050
;
static
constexpr
uint32_
t
STRING_ID_TYPE
=
1050
;
static
constexpr
int
TYPES_COUNT
=
27
;
static
constexpr
int
TYPES_COUNT
=
27
;
static
unsigned
char
scriptBuffer
[
0x100000
];
static
unsigned
char
scriptBuffer
[
0x100000
];
...
@@ -126,6 +127,7 @@ public:
...
@@ -126,6 +127,7 @@ public:
static
bool
deck_sort_name
(
code_pointer
l1
,
code_pointer
l2
);
static
bool
deck_sort_name
(
code_pointer
l1
,
code_pointer
l2
);
private:
private:
const
wchar_t
*
GetMapString
(
const
wstring_map
&
table
,
uint32_t
code
)
const
;
std
::
unordered_map
<
uint32_t
,
CardDataC
>
_datas
;
std
::
unordered_map
<
uint32_t
,
CardDataC
>
_datas
;
std
::
unordered_map
<
uint32_t
,
CardString
>
_strings
;
std
::
unordered_map
<
uint32_t
,
CardString
>
_strings
;
std
::
unordered_map
<
uint32_t
,
std
::
vector
<
uint16_t
>>
extra_setcode
;
std
::
unordered_map
<
uint32_t
,
std
::
vector
<
uint16_t
>>
extra_setcode
;
...
...
gframe/deck_con.cpp
View file @
0461c884
...
@@ -1396,7 +1396,7 @@ void DeckBuilder::FilterCards() {
...
@@ -1396,7 +1396,7 @@ void DeckBuilder::FilterCards() {
results
.
clear
();
results
.
clear
();
struct
element_t
{
struct
element_t
{
std
::
wstring
keyword
;
std
::
wstring
keyword
;
std
::
vector
<
u
nsigned
in
t
>
setcodes
;
std
::
vector
<
u
int32_
t
>
setcodes
;
enum
class
type_t
{
enum
class
type_t
{
all
,
all
,
name
,
name
,
...
...
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