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

Method get_current_preset_path

source/runtime_api.cpp:1350–1366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1348}
1349
1350void reshade::runtime::get_current_preset_path(char *path, size_t *size) const
1351{
1352 if (size == nullptr)
1353 return;
1354
1355 const std::string path_string = _current_preset_path.u8string();
1356
1357 if (path == nullptr)
1358 {
1359 *size = path_string.size() + 1;
1360 }
1361 else if (*size != 0)
1362 {
1363 *size = path_string.copy(path, *size - 1);
1364 path[*size] = '\0';
1365 }
1366}
1367void reshade::runtime::set_current_preset_path(const char *path_in)
1368{
1369 if (path_in == nullptr)

Callers 1

apply_preset_to_allFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected