yuzu: Check Vulkan on startup with a child
This commit is contained in:
parent
568a0ac397
commit
4f15d9ed6f
3 changed files with 78 additions and 1 deletions
|
@ -3853,6 +3853,21 @@ void GMainWindow::SetDiscordEnabled([[maybe_unused]] bool state) {
|
|||
#endif
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
#ifdef _WIN32
|
||||
char variable_contents[32];
|
||||
const DWORD startup_check_var =
|
||||
GetEnvironmentVariable(STARTUP_CHECK_ENV_VAR, variable_contents, 32);
|
||||
if (startup_check_var != 0) {
|
||||
std::fprintf(stderr, "perform statup checks\n");
|
||||
CheckVulkan();
|
||||
return 0;
|
||||
} else {
|
||||
std::fprintf(stderr, "%d\n", StartupChecks());
|
||||
}
|
||||
#elif YUZU_UNIX
|
||||
#error "Unimplemented"
|
||||
#endif
|
||||
|
||||
Common::DetachedTasks detached_tasks;
|
||||
MicroProfileOnThreadCreate("Frontend");
|
||||
SCOPE_EXIT({ MicroProfileShutdown(); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue