MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / wmain

Function wmain

pcsx2-gsrunner/Main.cpp:1158–1174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158int wmain(int argc, wchar_t** argv)
1159{
1160 std::vector<std::string> u8_args;
1161 u8_args.reserve(static_cast<size_t>(argc));
1162 for (int i = 0; i < argc; i++)
1163 u8_args.push_back(StringUtil::WideStringToUTF8String(argv[i]));
1164
1165 std::vector<char*> u8_argptrs;
1166 u8_argptrs.reserve(u8_args.size());
1167 for (int i = 0; i < argc; i++)
1168 u8_argptrs.push_back(u8_args[i].data());
1169 u8_argptrs.push_back(nullptr);
1170
1171 MainThreadID = GetCurrentThreadId();
1172
1173 return real_main(argc, u8_argptrs.data());
1174}
1175
1176#elif defined(__APPLE__)
1177

Callers

nothing calls this directly

Calls 5

WideStringToUTF8StringFunction · 0.85
reserveMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected