diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-09 17:41:26 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-09 17:41:26 +0100 |
commit | a97e2a90a4508dc7936f132aebcccc08fd3305b0 (patch) | |
tree | 866ab5e78a8a7f4d09ba329f49b917caf83e970c /loader/impl.hpp | |
parent | 4643a85a171652a25eecfca5a7af4cf4ccb2d580 (diff) |
loader, anim-crop-tool: workaround relative path usage
Diffstat (limited to 'loader/impl.hpp')
-rw-r--r-- | loader/impl.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/loader/impl.hpp b/loader/impl.hpp index e1d6d649..8fa650ea 100644 --- a/loader/impl.hpp +++ b/loader/impl.hpp @@ -28,6 +28,8 @@ struct loader_impl final : loader_ std::vector<serialized_scenery> sceneries_array; std::unordered_map<StringView, const serialized_scenery*> sceneries_map; + String original_working_directory; + StringView shader(StringView filename) noexcept override; Trade::ImageData2D texture(StringView prefix, StringView filename) noexcept(false); std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename, Vector2ub size, Optional<pass_mode> pass) noexcept(false) override; @@ -39,9 +41,10 @@ struct loader_impl final : loader_ void get_anim_atlas_list(); void get_scenery_list(); - - static void set_application_working_directory(); static anim_def deserialize_anim(StringView filename); + + void set_application_working_directory(); + StringView startup_directory() noexcept override; static void system_init(); static bool chdir(StringView pathname); [[nodiscard]] static bool check_atlas_name(StringView name); |