#include "file.hpp" #include "string_utils.hpp" #include 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 SDL_GetPrefPath("Prism", "Prism"); }