hiro: store windows settings in app directory, making ares truely portable

このコミットが含まれているのは:
Luke Usher 2022-12-12 22:18:05 +00:00
コミット d4b67a92d2
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -1,7 +1,7 @@
namespace hiro {
Settings::Settings() {
string path = {Path::userData(), "hiro/"};
string path = {Path::program(), "hiro/"};
auto document = BML::unserialize(file::read({path, "windows.bml"}));
document["extendedFrameBounds/popup/x"].value(efbPopup.x);
@ -21,7 +21,7 @@ Settings::Settings() {
}
Settings::~Settings() {
string path = {Path::userData(), "hiro/"};
string path = {Path::program(), "hiro/"};
directory::create(path, 0755);
Markup::Node document;