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
35359f0b
Commit
35359f0b
authored
Jun 25, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add wchar_t LoadStrings
parent
8d51b160
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
gframe/data_manager.cpp
gframe/data_manager.cpp
+11
-0
gframe/data_manager.h
gframe/data_manager.h
+1
-0
gframe/game.cpp
gframe/game.cpp
+1
-3
No files found.
gframe/data_manager.cpp
View file @
35359f0b
...
...
@@ -121,6 +121,17 @@ bool DataManager::LoadStrings(const char* file) {
std
::
fclose
(
fp
);
return
true
;
}
bool
DataManager
::
LoadStrings
(
const
wchar_t
*
file
)
{
FILE
*
fp
=
mywfopen
(
file
,
"r"
);
if
(
!
fp
)
return
false
;
char
linebuf
[
TEXT_LINE_SIZE
]{};
while
(
std
::
fgets
(
linebuf
,
sizeof
linebuf
,
fp
))
{
ReadStringConfLine
(
linebuf
);
}
std
::
fclose
(
fp
);
return
true
;
}
bool
DataManager
::
LoadStrings
(
irr
::
io
::
IReadFile
*
reader
)
{
char
ch
{};
std
::
string
linebuf
;
...
...
gframe/data_manager.h
View file @
35359f0b
...
...
@@ -47,6 +47,7 @@ public:
bool
LoadDB
(
const
wchar_t
*
wfile
);
bool
LoadDB
(
irr
::
io
::
IReadFile
*
reader
);
bool
LoadStrings
(
const
char
*
file
);
bool
LoadStrings
(
const
wchar_t
*
file
);
bool
LoadStrings
(
irr
::
io
::
IReadFile
*
reader
);
void
ReadStringConfLine
(
const
char
*
linebuf
);
bool
Error
(
sqlite3
*
pDB
,
sqlite3_stmt
*
pStmt
=
nullptr
);
...
...
gframe/game.cpp
View file @
35359f0b
...
...
@@ -1246,9 +1246,7 @@ void Game::LoadExpansions(const wchar_t* expansions_path) {
deckManager
.
LoadLFListSingle
(
fpath
,
true
);
lflist_changed
=
true
;
}
else
{
char
upath
[
1024
];
BufferIO
::
EncodeUTF8
(
fpath
,
upath
);
dataManager
.
LoadStrings
(
upath
);
dataManager
.
LoadStrings
(
fpath
);
}
return
;
}
...
...
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