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
74433379
Commit
74433379
authored
Feb 04, 2026
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change key type to uint32_t in DataManager
parent
bc8e65be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
gframe/data_manager.cpp
gframe/data_manager.cpp
+6
-6
gframe/data_manager.h
gframe/data_manager.h
+12
-12
gframe/deck_con.cpp
gframe/deck_con.cpp
+1
-1
No files found.
gframe/data_manager.cpp
View file @
74433379
...
@@ -221,32 +221,32 @@ const wchar_t* DataManager::GetDesc(uint32_t strCode) const {
...
@@ -221,32 +221,32 @@ 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
::
GetSysString
(
in
t
code
)
const
{
const
wchar_t
*
DataManager
::
GetSysString
(
uint32_
t
code
)
const
{
auto
csit
=
_sysStrings
.
find
(
code
);
auto
csit
=
_sysStrings
.
find
(
code
);
if
(
csit
==
_sysStrings
.
end
())
if
(
csit
==
_sysStrings
.
end
())
return
unknown_string
;
return
unknown_string
;
return
csit
->
second
.
c_str
();
return
csit
->
second
.
c_str
();
}
}
const
wchar_t
*
DataManager
::
GetVictoryString
(
in
t
code
)
const
{
const
wchar_t
*
DataManager
::
GetVictoryString
(
uint32_
t
code
)
const
{
auto
csit
=
_victoryStrings
.
find
(
code
);
auto
csit
=
_victoryStrings
.
find
(
code
);
if
(
csit
==
_victoryStrings
.
end
())
if
(
csit
==
_victoryStrings
.
end
())
return
unknown_string
;
return
unknown_string
;
return
csit
->
second
.
c_str
();
return
csit
->
second
.
c_str
();
}
}
const
wchar_t
*
DataManager
::
GetCounterName
(
in
t
code
)
const
{
const
wchar_t
*
DataManager
::
GetCounterName
(
uint32_
t
code
)
const
{
auto
csit
=
_counterStrings
.
find
(
code
);
auto
csit
=
_counterStrings
.
find
(
code
);
if
(
csit
==
_counterStrings
.
end
())
if
(
csit
==
_counterStrings
.
end
())
return
unknown_string
;
return
unknown_string
;
return
csit
->
second
.
c_str
();
return
csit
->
second
.
c_str
();
}
}
const
wchar_t
*
DataManager
::
GetSetName
(
in
t
code
)
const
{
const
wchar_t
*
DataManager
::
GetSetName
(
uint32_
t
code
)
const
{
auto
csit
=
_setnameStrings
.
find
(
code
);
auto
csit
=
_setnameStrings
.
find
(
code
);
if
(
csit
==
_setnameStrings
.
end
())
if
(
csit
==
_setnameStrings
.
end
())
return
unknown_string
;
return
unknown_string
;
return
csit
->
second
.
c_str
();
return
csit
->
second
.
c_str
();
}
}
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 @
74433379
...
@@ -83,10 +83,10 @@ public:
...
@@ -83,10 +83,10 @@ 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
<
unsigned
int
>
GetSetCodes
(
std
::
wstring
setname
)
const
;
std
::
vector
<
unsigned
int
>
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
;
...
@@ -97,18 +97,18 @@ public:
...
@@ -97,18 +97,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
<
u
nsigned
in
t
,
std
::
wstring
>
_counterStrings
;
std
::
unordered_map
<
u
int32_
t
,
std
::
wstring
>
_counterStrings
;
std
::
unordered_map
<
u
nsigned
in
t
,
std
::
wstring
>
_victoryStrings
;
std
::
unordered_map
<
u
int32_
t
,
std
::
wstring
>
_victoryStrings
;
std
::
unordered_map
<
u
nsigned
in
t
,
std
::
wstring
>
_setnameStrings
;
std
::
unordered_map
<
u
int32_
t
,
std
::
wstring
>
_setnameStrings
;
std
::
unordered_map
<
u
nsigned
in
t
,
std
::
wstring
>
_sysStrings
;
std
::
unordered_map
<
u
int32_
t
,
std
::
wstring
>
_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
];
...
...
gframe/deck_con.cpp
View file @
74433379
...
@@ -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