| 23 | } |
| 24 | |
| 25 | void ReShadeGetBasePath(char *path, size_t *size) |
| 26 | { |
| 27 | if (size == nullptr) |
| 28 | return; |
| 29 | |
| 30 | const std::string path_string = g_reshade_base_path.u8string(); |
| 31 | |
| 32 | if (path == nullptr) |
| 33 | { |
| 34 | *size = path_string.size() + 1; |
| 35 | } |
| 36 | else if (*size != 0) |
| 37 | { |
| 38 | *size = path_string.copy(path, *size - 1); |
| 39 | path[*size] = '\0'; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | bool ReShadeGetConfigValue(void *, reshade::api::effect_runtime *runtime, const char *section, const char *key, char *value, size_t *size) |
| 44 | { |
no outgoing calls
no test coverage detected