MCPcopy Create free account
hub / github.com/crosire/reshade / ReShadeGetBasePath

Function ReShadeGetBasePath

source/addon.cpp:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void 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
43bool ReShadeGetConfigValue(void *, reshade::api::effect_runtime *runtime, const char *section, const char *key, char *value, size_t *size)
44{

Callers 1

get_reshade_base_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected