refactor all common parts and games

This commit is contained in:
2025-04-17 19:31:37 +02:00
parent a6126bf290
commit ae3dd666f4
496 changed files with 236 additions and 344 deletions

10
common/util/env.c Normal file
View File

@ -0,0 +1,10 @@
#include "env.h"
const wchar_t* get_config_path() {
static wchar_t path[MAX_PATH];
if (!GetEnvironmentVariableW(L"SEGATOOLS_CONFIG_PATH", path, MAX_PATH)) {
return L".\\segatools.ini";
}
return path;
}