Make CROSSLANG_CONFIG a environment variable

This commit is contained in:
2025-04-16 12:39:49 -05:00
parent 6bc6b48427
commit cdc72478d3
2 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,13 @@ namespace Tesses::CrossLang
}
Tesses::Framework::Filesystem::VFSPath GetCrossLangConfigDir()
{
#if defined(CROSSLANG_ENABLE_CONFIG_ENVVAR)
char* conf = std::getenv("CROSSLANG_CONFIG");
if(conf != NULL)
{
return std::string(conf);
}
#endif
Tesses::Framework::Filesystem::VFSPath p;
#if defined(CROSSLANG_ENABLE_PLATFORM_FOLDERS)
p=sago::getConfigHome();