diff --git a/Keybinds.cpp b/Keybinds.cpp index 0ec4aed7..6b1862b7 100644 --- a/Keybinds.cpp +++ b/Keybinds.cpp @@ -258,8 +258,9 @@ void parseKeymapLine( std::string line ) bool loadKeymapFile(){ std::string line; - std::filesystem::path path = std::filesystem::path{} / "stonesense" / "keybinds.txt"; + std::filesystem::path path = std::filesystem::path{} / "dfhack-config" / "stonesense" / "keybinds.txt"; std::ifstream myfile (path); + if (myfile.is_open() == false) { LogError( "cannot find keybinds file\n" ); return false; diff --git a/resources/keybinds.txt b/configs/keybinds.txt similarity index 100% rename from resources/keybinds.txt rename to configs/keybinds.txt diff --git a/docs/changelog.txt b/docs/changelog.txt index 1c95878c..a5e89660 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -42,6 +42,7 @@ Template for new versions: ## Fixes ## Misc Improvements +- `stonesense`: ``keybinds.txt`` config file is now read from ``dfhack-config/stonesense/keybinds.txt`` - `stonesense`: added some missing artwork for bookcases, displays, and offering places - `stonesense`: reorganized the position of some existing art to be more intuitive - `stonesense`: added index numbers empty sprite slots to aid in making the xml files for the sprites @@ -64,7 +65,7 @@ Template for new versions: ## Misc Improvements - `stonesense`: changed announcements to be right-aligned and limited to only show the most recent 10 announcements -- `stonesense`: ``init.txt`` config file is now read from ``dfhack-configs/stonesense/init.txt`` +- `stonesense`: ``init.txt`` config file is now read from ``dfhack-config/stonesense/init.txt`` - `stonesense`: creature names are now hidden by default (they can still be shown by pressing ``n`` (default keybinding) while stonesense window is active) - `stonesense`: use smaller increments for zooming in and out - `stonesense`: OSD is now hidden by default; hit F2 (default keybinding) to show it again