forked from TeamTofuShop/segatools
add changeable config path
This commit is contained in:
11
util/env.c
Normal file
11
util/env.c
Normal file
@ -0,0 +1,11 @@
|
||||
#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