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
d9e1812d
Commit
d9e1812d
authored
Jun 11, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expansions
parent
1d2a19f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gframe/game.cpp
gframe/game.cpp
+3
-3
No files found.
gframe/game.cpp
View file @
d9e1812d
...
@@ -24,7 +24,7 @@ Game* mainGame;
...
@@ -24,7 +24,7 @@ Game* mainGame;
bool
Game
::
Initialize
()
{
bool
Game
::
Initialize
()
{
_finddata_t
fdata
;
_finddata_t
fdata
;
long
fhandle
;
long
fhandle
;
char
fpath
[
1000
]
=
"
expansions
\\
"
;
char
fpath
[
1000
]
=
"
./expansions/
"
;
srand
(
time
(
0
));
srand
(
time
(
0
));
LoadConfig
();
LoadConfig
();
irr
::
SIrrlichtCreationParameters
params
=
irr
::
SIrrlichtCreationParameters
();
irr
::
SIrrlichtCreationParameters
params
=
irr
::
SIrrlichtCreationParameters
();
...
@@ -60,12 +60,12 @@ bool Game::Initialize() {
...
@@ -60,12 +60,12 @@ bool Game::Initialize() {
return
false
;
return
false
;
if
(
!
dataManager
.
LoadStrings
(
"strings.conf"
))
if
(
!
dataManager
.
LoadStrings
(
"strings.conf"
))
return
false
;
return
false
;
fhandle
=
_findfirst
(
"
expansions
\\
*.cdb"
,
&
fdata
);
fhandle
=
_findfirst
(
"
./expansions/
*.cdb"
,
&
fdata
);
if
(
fhandle
!=
-
1
)
{
if
(
fhandle
!=
-
1
)
{
strcat
(
fpath
,
fdata
.
name
);
strcat
(
fpath
,
fdata
.
name
);
dataManager
.
LoadDB
(
fpath
);
dataManager
.
LoadDB
(
fpath
);
while
(
_findnext
(
fhandle
,
&
fdata
)
!=
-
1
)
{
while
(
_findnext
(
fhandle
,
&
fdata
)
!=
-
1
)
{
strcpy
(
fpath
,
"
expansions
\\
"
);
strcpy
(
fpath
,
"
./expansions/
"
);
strcat
(
fpath
,
fdata
.
name
);
strcat
(
fpath
,
fdata
.
name
);
dataManager
.
LoadDB
(
fpath
);
dataManager
.
LoadDB
(
fpath
);
}
}
...
...
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