forked from TeamTofuShop/segatools
refactor all common parts and games
This commit is contained in:
10
common/util/env.c
Normal file
10
common/util/env.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user