Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
aa180ceb
Commit
aa180ceb
authored
Dec 09, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path in archive
parent
498e3ede
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gframe/data_manager.cpp
gframe/data_manager.cpp
+2
-2
gframe/game.cpp
gframe/game.cpp
+1
-1
No files found.
gframe/data_manager.cpp
View file @
aa180ceb
...
...
@@ -344,12 +344,12 @@ int DataManager::CardReader(int code, void* pData) {
return
0
;
}
byte
*
DataManager
::
ScriptReaderEx
(
const
char
*
script_name
,
int
*
slen
)
{
char
exname
[
256
]
=
"
./
expansions"
;
char
exname
[
256
]
=
"expansions"
;
strcat
(
exname
,
script_name
+
1
);
//default script name: ./script/c%d.lua
if
(
ScriptReader
(
exname
,
slen
))
return
scriptBuffer
;
else
return
ScriptReader
(
script_name
,
slen
);
return
ScriptReader
(
script_name
+
2
,
slen
);
}
byte
*
DataManager
::
ScriptReader
(
const
char
*
script_name
,
int
*
slen
)
{
wchar_t
fname
[
256
];
...
...
gframe/game.cpp
View file @
aa180ceb
...
...
@@ -876,7 +876,7 @@ void Game::LoadExpansions() {
if
(
!
isdir
&&
wcsrchr
(
name
,
'.'
)
&&
!
mywcsncasecmp
(
wcsrchr
(
name
,
'.'
),
L".zip"
,
4
))
{
wchar_t
fpath
[
1024
];
myswprintf
(
fpath
,
L"./expansions/%s"
,
name
);
dataManager
.
FileSystem
->
addFileArchive
(
fpath
);
dataManager
.
FileSystem
->
addFileArchive
(
fpath
,
true
,
false
);
}
});
for
(
u32
i
=
0
;
i
<
DataManager
::
FileSystem
->
getFileArchiveCount
();
++
i
)
{
...
...
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