make --veh-full actually do something

This commit is contained in:
Soreepeong 2022-09-05 10:24:31 +09:00
parent b666be53f9
commit e82d95da92

View file

@ -444,6 +444,9 @@ int main() {
const auto arg = std::wstring_view(args[i]);
if (launcherArgs) {
launcherArgs->emplace_back(arg);
if (arg == L"--veh-full") {
fullDump = true;
}
} else if (constexpr wchar_t pwszArgPrefix[] = L"--process-handle="; arg.starts_with(pwszArgPrefix)) {
g_hProcess = reinterpret_cast<HANDLE>(std::wcstoull(&arg[ARRAYSIZE(pwszArgPrefix) - 1], nullptr, 0));
} else if (constexpr wchar_t pwszArgPrefix[] = L"--exception-info-pipe-read-handle="; arg.starts_with(pwszArgPrefix)) {
@ -452,8 +455,6 @@ int main() {
assetDir = arg.substr(ARRAYSIZE(pwszArgPrefix) - 1);
} else if (constexpr wchar_t pwszArgPrefix[] = L"--log-directory="; arg.starts_with(pwszArgPrefix)) {
logDir = arg.substr(ARRAYSIZE(pwszArgPrefix) - 1);
} else if (arg == L"--veh-full") {
fullDump = true;
} else if (arg == L"--") {
launcherArgs.emplace();
} else {