| 1348 | } |
| 1349 | |
| 1350 | void 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 | } |
| 1367 | void reshade::runtime::set_current_preset_path(const char *path_in) |
| 1368 | { |
| 1369 | if (path_in == nullptr) |
no outgoing calls
no test coverage detected