mirror of https://github.com/bsnes-emu/bsnes.git
26 lines
603 B
C++
26 lines
603 B
C++
#pragma once
|
|
|
|
#include <nall/platform.hpp>
|
|
#include <nall/arguments.hpp>
|
|
#include <nall/string.hpp>
|
|
|
|
namespace nall {
|
|
auto main(Arguments arguments) -> void;
|
|
|
|
auto main(int argc, char** argv) -> int {
|
|
#if defined(PLATFORM_WINDOWS)
|
|
CoInitialize(0);
|
|
WSAData wsaData{0};
|
|
WSAStartup(MAKEWORD(2, 2), &wsaData);
|
|
_setmode(_fileno(stdin), O_BINARY);
|
|
_setmode(_fileno(stdout), O_BINARY);
|
|
_setmode(_fileno(stderr), O_BINARY);
|
|
#endif
|
|
return main(move(Arguments{argc, argv})), EXIT_SUCCESS;
|
|
}
|
|
}
|
|
|
|
auto main(int argc, char** argv) -> int {
|
|
return nall::main(argc, argv);
|
|
}
|