From 2adce1795211fd0a42c3b4e03ab35a90bb01bccf Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 26 Nov 2023 14:05:29 -0500 Subject: Stop relying on correctly set working directory --- src/tracker_panel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tracker_panel.cpp') diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 5e035af..81cb595 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp @@ -3,6 +3,7 @@ #include "ap_state.h" #include "area_popup.h" #include "game_data.h" +#include "global.h" #include "tracker_config.h" #include "tracker_state.h" @@ -11,7 +12,8 @@ constexpr int AREA_BORDER_SIZE = 5; constexpr int AREA_EFFECTIVE_SIZE = AREA_ACTUAL_SIZE + AREA_BORDER_SIZE * 2; TrackerPanel::TrackerPanel(wxWindow *parent) : wxPanel(parent, wxID_ANY) { - map_image_ = wxImage("assets/lingo_map.png", wxBITMAP_TYPE_PNG); + map_image_ = wxImage(GetAbsolutePath("assets/lingo_map.png").c_str(), + wxBITMAP_TYPE_PNG); if (!map_image_.IsOk()) { return; } -- cgit 1.4.1