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
576c0f9c
Commit
576c0f9c
authored
Sep 29, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
parents
3f122605
8ddb05c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
gframe/gframe.cpp
gframe/gframe.cpp
+5
-7
No files found.
gframe/gframe.cpp
View file @
576c0f9c
...
...
@@ -2,6 +2,7 @@
#include "game.h"
#include "data_manager.h"
#include <event2/thread.h>
#include <memory>
#ifdef __APPLE__
#import <CoreFoundation/CoreFoundation.h>
#endif
...
...
@@ -62,10 +63,12 @@ int main(int argc, char* argv[]) {
#ifdef _WIN32
int
wargc
;
wchar_t
**
wargv
=
CommandLineToArgvW
(
GetCommandLineW
(),
&
wargc
);
std
::
unique_ptr
<
wchar_t
*
[],
void
(
*
)(
wchar_t
**
)
>
wargv
(
CommandLineToArgvW
(
GetCommandLineW
(),
&
wargc
),
[](
wchar_t
**
wargv
)
{
LocalFree
(
wargv
);
});
#else
int
wargc
=
argc
;
wchar_t
(
*
wargv
)[
256
]
=
new
wchar_t
[
wargc
][
256
]
;
auto
wargv
=
std
::
make_unique
<
wchar_t
[][
256
]
>
(
wargc
)
;
for
(
int
i
=
0
;
i
<
argc
;
++
i
)
{
BufferIO
::
DecodeUTF8
(
argv
[
i
],
wargv
[
i
]);
}
...
...
@@ -175,11 +178,6 @@ int main(int argc, char* argv[]) {
}
}
}
#ifdef _WIN32
LocalFree
(
wargv
);
#else
delete
[]
wargv
;
#endif
ygo
::
mainGame
->
MainLoop
();
#ifdef _WIN32
WSACleanup
();
...
...
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