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
d94a51a5
Commit
d94a51a5
authored
May 03, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zero initialize
parent
4ccb0adb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gframe/data_manager.cpp
gframe/data_manager.cpp
+3
-3
No files found.
gframe/data_manager.cpp
View file @
d94a51a5
...
...
@@ -394,8 +394,8 @@ uint32 DataManager::CardReader(uint32 code, card_data* pData) {
}
byte
*
DataManager
::
ScriptReaderEx
(
const
char
*
script_name
,
int
*
slen
)
{
// default script name: ./script/c%d.lua
char
first
[
256
];
char
second
[
256
];
char
first
[
256
]
{}
;
char
second
[
256
]
{}
;
if
(
mainGame
->
gameConf
.
prefer_expansion_script
)
{
snprintf
(
first
,
sizeof
first
,
"expansions/%s"
,
script_name
+
2
);
snprintf
(
second
,
sizeof
second
,
"%s"
,
script_name
+
2
);
...
...
@@ -410,7 +410,7 @@ byte* DataManager::ScriptReaderEx(const char* script_name, int* slen) {
}
byte
*
DataManager
::
ScriptReader
(
const
char
*
script_name
,
int
*
slen
)
{
#ifdef _WIN32
wchar_t
fname
[
256
];
wchar_t
fname
[
256
]
{}
;
BufferIO
::
DecodeUTF8
(
script_name
,
fname
);
IReadFile
*
reader
=
FileSystem
->
createAndOpenFile
(
fname
);
#else
...
...
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