[nostalgia/studio] Fix main argc and argv for Windows

This commit is contained in:
Gary Talent 2023-11-24 11:10:28 -06:00
parent ed5271166e
commit 79b6046813

View File

@ -8,7 +8,9 @@
#include <studioapp/studioapp.hpp>
#ifdef _WIN32
int WinMain(int argc, const char **argv) {
int WinMain() {
auto const argc = __argc;
auto const argv = const_cast<const char**>(__argv);
#else
int main(int argc, const char **argv) {
#endif