2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:44:56 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2018-05-28 10:27:41 -10:00
parent 2c151a0f3b
commit 65fd883a99
3 changed files with 6 additions and 4 deletions

View File

@@ -236,7 +236,9 @@ int WINAPIV main(Platform::Array<Platform::String^>^ params)
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE, LPWSTR lpCmdLine, int)
{
int argc = 0;
const boo::SystemChar** argv = (const wchar_t**)(CommandLineToArgvW(lpCmdLine, &argc));
const boo::SystemChar** argv;
if (lpCmdLine[0])
argv = (const wchar_t**)(CommandLineToArgvW(lpCmdLine, &argc));
static boo::SystemChar selfPath[1024];
GetModuleFileNameW(nullptr, selfPath, 1024);
static const boo::SystemChar* booArgv[32] = {};
@@ -246,7 +248,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE, LPWSTR lpCmdLine, int)
if (IsClientLoggingEnabled(argc+1, booArgv))
logvisor::CreateWin32Console();
return wmain(argc+1, booArgv);
return wmain(argc + 1, booArgv);
}
#endif

2
amuse

Submodule amuse updated: 77c7daa67c...d7011f0e77

2
hecl

Submodule hecl updated: 48996c1548...3cca5be30b