From fd85491ed786f7e2fc1a36fc907389e54381fa0b Mon Sep 17 00:00:00 2001 From: OTHGMars Date: Mon, 11 Jan 2021 05:00:37 -0500 Subject: [PATCH] Changes GuiIconButtonCtrl to relative paths that can be opened by the mount system. --- Engine/source/gui/buttons/guiIconButtonCtrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/gui/buttons/guiIconButtonCtrl.cpp b/Engine/source/gui/buttons/guiIconButtonCtrl.cpp index aaa374fa5..6084f64f1 100644 --- a/Engine/source/gui/buttons/guiIconButtonCtrl.cpp +++ b/Engine/source/gui/buttons/guiIconButtonCtrl.cpp @@ -201,13 +201,13 @@ bool GuiIconButtonCtrl::resize(const Point2I &newPosition, const Point2I &newExt void GuiIconButtonCtrl::setBitmap(const char *name) { - mBitmapName = StringTable->insert(name); + mBitmapName = Platform::makeRelativePathName(name, NULL); if(!isAwake()) return; if (*mBitmapName) { - mTextureNormal = GFXTexHandle( name, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__) ); + mTextureNormal = GFXTexHandle(mBitmapName, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__) ); } else {