From a08758ea547d38cde59f75e97ca1e122e4e394e2 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Tue, 22 Dec 2020 23:10:49 +0100 Subject: [PATCH] fixed directory bug on linux 2 --- core/src/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/core.cpp b/core/src/core.cpp index 2d6728b..fb753b5 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -166,7 +166,7 @@ int sdrpp_main(int argc, char *argv[]) { // Load app icon GLFWimage icons[10]; - icons[0].pixels = stbi_load(((std::string)(options::opts.root + "/res/icons/sdrpp.png")).c_str(), &icons[0].width, &icons[0].height, 0, 4); + icons[0].pixels = stbi_load(((std::string)(resDir + "/icons/sdrpp.png")).c_str(), &icons[0].width, &icons[0].height, 0, 4); icons[1].pixels = (unsigned char*)malloc(16 * 16 * 4); icons[1].width = icons[1].height = 16; icons[2].pixels = (unsigned char*)malloc(24 * 24 * 4); icons[2].width = icons[2].height = 24; icons[3].pixels = (unsigned char*)malloc(32 * 32 * 4); icons[3].width = icons[3].height = 32;