Sorry for not knowing much about C++. There is a problem I can't solve. I want the CONFIG_PATH variable to be dynamic, not fixed. I want it to be replaceable from the outside, but I've never been able to.
string custom_path;
custom_path= argv[i];
I want to replace CONFIG_PATH with custom_path. Or I want to set it as CONFIG_PATH + custom_path
#define CONFIG_PATH "D:/config"
int GetConfigPath(char *path, size_t size, const char *name)
{
if (!OBS_UNIX_STRUCTURE && portable_mode) {
if (name && *name) {
return snprintf(path, size, CONFIG_PATH "/%s", name);
} else {
return snprintf(path, size, CONFIG_PATH);
}
} else {
return snprintf(path, size, CONFIG_PATH "/%s", name);
}
}