mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-03-22 19:49:47 +01:00
byuu says: This synchronizes bsnes/higan with many recent internal nall changes. This will be the last WIP until I am situated in Japan. Apologies for the bugfixes that didn't get applied yet, I ran out of time.
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);
|
|
}
|