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
071377b3
Commit
071377b3
authored
Jun 11, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expansions
parent
f98d197e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
gframe/game.cpp
gframe/game.cpp
+11
-15
No files found.
gframe/game.cpp
View file @
071377b3
...
...
@@ -23,11 +23,6 @@ namespace ygo {
Game* mainGame;
bool Game::Initialize() {
#ifdef _WIN32
_finddata_t
fdata
;
long
fhandle
;
char
fpath
[
1000
]
=
"./expansions/"
;
#endif
srand(time(0));
LoadConfig();
irr::SIrrlichtCreationParameters params = irr::SIrrlichtCreationParameters();
...
...
@@ -64,16 +59,17 @@ bool Game::Initialize() {
if(!dataManager.LoadStrings("strings.conf"))
return false;
#ifdef _WIN32
fhandle
=
_findfirst
(
"./expansions/*.cdb"
,
&
fdata
);
if
(
fhandle
!=
-
1
)
{
strcat
(
fpath
,
fdata
.
name
);
dataManager
.
LoadDB
(
fpath
);
while
(
_findnext
(
fhandle
,
&
fdata
)
!=
-
1
)
{
strcpy
(
fpath
,
"./expansions/"
);
strcat
(
fpath
,
fdata
.
name
);
dataManager
.
LoadDB
(
fpath
);
}
_findclose
(
fhandle
);
char fpath[1000];
WIN32_FIND_DATAW fdataw;
HANDLE fh = FindFirstFileW(L"./expansions/*.cdb", &fdataw);
if(fh != INVALID_HANDLE_VALUE) {
do {
if(!(fdataw.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
sprintf(fpath, "./expansions/%ls", fdataw.cFileName);
dataManager.LoadDB(fpath);
}
} while(FindNextFileW(fh, &fdataw));
FindClose(fh);
}
#else
DIR * dir;
...
...
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