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
b9b16259
Commit
b9b16259
authored
Jun 04, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expansions
parent
d6cdf6e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gframe/game.cpp
gframe/game.cpp
+15
-0
No files found.
gframe/game.cpp
View file @
b9b16259
...
...
@@ -8,6 +8,7 @@
#include "duelclient.h"
#include "netserver.h"
#include "single_mode.h"
#include <io.h>
#ifndef WIN32
#include <sys/types.h>
...
...
@@ -21,6 +22,9 @@ namespace ygo {
Game
*
mainGame
;
bool
Game
::
Initialize
()
{
_finddata_t
fdata
;
long
fhandle
;
char
fpath
[
1000
]
=
"expansions
\\
"
;
srand
(
time
(
0
));
LoadConfig
();
irr
::
SIrrlichtCreationParameters
params
=
irr
::
SIrrlichtCreationParameters
();
...
...
@@ -56,6 +60,17 @@ bool Game::Initialize() {
return
false
;
if
(
!
dataManager
.
LoadStrings
(
"strings.conf"
))
return
false
;
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
);
}
env
=
device
->
getGUIEnvironment
();
numFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
16
);
adFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
12
);
...
...
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