Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
d6328fc5
Commit
d6328fc5
authored
Jul 10, 2021
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arrange gframe.cpp
parent
5735c1fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
Classes/gframe/gframe.cpp
Classes/gframe/gframe.cpp
+1
-23
No files found.
Classes/gframe/gframe.cpp
View file @
d6328fc5
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#include "game.h"
#include "game.h"
#include "data_manager.h"
#include "data_manager.h"
#include <event2/thread.h>
#include <event2/thread.h>
#include <memory>
int
enable_log
=
0
;
int
enable_log
=
0
;
bool
exit_on_return
=
false
;
bool
exit_on_return
=
false
;
...
@@ -14,24 +15,12 @@ void android_main(ANDROID_APP app) {
...
@@ -14,24 +15,12 @@ void android_main(ANDROID_APP app) {
#else
#else
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
#endif
#endif
#ifdef _WIN32
WORD
wVersionRequested
;
WSADATA
wsaData
;
wVersionRequested
=
MAKEWORD
(
2
,
2
);
WSAStartup
(
wVersionRequested
,
&
wsaData
);
evthread_use_windows_threads
();
#else
evthread_use_pthreads
();
evthread_use_pthreads
();
#endif //_WIN32
ygo
::
Game
_game
;
ygo
::
Game
_game
;
ygo
::
mainGame
=
&
_game
;
ygo
::
mainGame
=
&
_game
;
#ifdef _IRR_ANDROID_PLATFORM_
#ifdef _IRR_ANDROID_PLATFORM_
if
(
!
ygo
::
mainGame
->
Initialize
(
app
))
if
(
!
ygo
::
mainGame
->
Initialize
(
app
))
return
;
return
;
#else
if
(
!
ygo
::
mainGame
->
Initialize
())
return
0
;
#endif
#endif
#ifndef _IRR_ANDROID_PLATFORM_
#ifndef _IRR_ANDROID_PLATFORM_
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
...
@@ -83,19 +72,8 @@ int main(int argc, char* argv[]) {
...
@@ -83,19 +72,8 @@ int main(int argc, char* argv[]) {
}
}
}
}
#endif
#endif
#ifdef _IRR_ANDROID_PLATFORM_
ygo
::
mainGame
->
externalSignal
.
Set
();
ygo
::
mainGame
->
externalSignal
.
Set
();
ygo
::
mainGame
->
externalSignal
.
SetNoWait
(
true
);
ygo
::
mainGame
->
externalSignal
.
SetNoWait
(
true
);
#endif
ygo
::
mainGame
->
MainLoop
();
ygo
::
mainGame
->
MainLoop
();
#ifdef _WIN32
WSACleanup
();
#else
#endif //_WIN32
#ifdef _IRR_ANDROID_PLATFORM_
return
;
return
;
#else
return
EXIT_SUCCESS
;
#endif
}
}
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