Archived
1
Fork 0

Fix window sizing not working under SDL

This commit is contained in:
redstrate 2021-10-14 17:30:04 -04:00
parent d8cf9bd734
commit ef15b62af1

View file

@ -2,6 +2,8 @@
#include "string_utils.hpp"
#include <SDL.h>
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/");
@ -11,5 +13,5 @@ void prism::set_domain_path(const prism::domain domain, const prism::path& path)
}
prism::path prism::get_writeable_directory() {
return "";
return SDL_GetPrefPath("Prism", "Prism");
}