[App] Add portable as a launch option in addition to checking for portable.txt existence

This commit is contained in:
Jonathan Goyvaerts
2020-08-07 23:04:53 +02:00
committed by Triang3l
parent 6dc94d9154
commit 92e445f01a
2 changed files with 9 additions and 1 deletions

View File

@@ -298,6 +298,9 @@ T* define_cmdvar(const char* name, T* default_value, const char* description) {
DEFINE_CVar(name, default_value, description, category, false, \
std::filesystem::path)
#define DEFINE_transient_bool(name, default_value, description, category) \
DEFINE_CVar(name, default_value, description, category, true, bool)
#define DEFINE_transient_string(name, default_value, description, category) \
DEFINE_CVar(name, default_value, description, category, true, std::string)