Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/platforms/sdl/file.cpp
2021-09-13 17:19:59 -04:00

15 lines
423 B
C++

#include "file.hpp"
#include "string_utils.hpp"
void prism::set_domain_path(const prism::domain domain, const prism::path path) {
#ifdef PLATFORM_MACOS
domain_data[(int)domain] = replace_substring(path.string(), "{resource_dir}/", "../Resources/");
#else
domain_data[(int)domain] = replace_substring(path.string(), "{resource_dir}/", "");
#endif
}
prism::path prism::get_writeable_directory() {
return "";
}