Fixup: __wargv is not a thing unless you use wmain, in which case __argv is not a thing.

This commit is contained in:
Quantum 2018-08-27 05:31:05 -04:00
parent a27dab91df
commit 5b06786960
2 changed files with 4 additions and 3 deletions

View file

@ -11,10 +11,11 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
int main() int main()
#endif #endif
{ {
int argc = __argc;
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
LPWSTR *argv = __wargv; int argc;
LPWSTR *argv = CommandLineToArgvW(GetCommandLineW(), &argc);
#else #else
int argc = __argc;
char **argv = __argv; char **argv = __argv;
#endif #endif

View file

@ -4,7 +4,7 @@ import pyglet
INITIAL_WIN_HEIGHT = 540 INITIAL_WIN_HEIGHT = 540
INITIAL_WIN_WIDTH = 700 INITIAL_WIN_WIDTH = 700
DEBUG = True DEBUG = False
def main(): def main():