From 60d6625e333736a2e56d5d4b39d7db70d95899d9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 28 Aug 2003 19:15:58 +0000 Subject: [PATCH] Resolve paths before loading images --- stepmania/src/RageBitmapTexture.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 68b17623e9..8379f62a44 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -82,12 +82,13 @@ void RageBitmapTexture::Create() /* Create (and return) a surface ready to be loaded to OpenGL */ /* Load the image into an SDL surface. */ - SDL_Surface *img = IMG_Load( GetID().filename ); + ResolvePath( actualID.filename ); + SDL_Surface *img = IMG_Load( actualID.filename ); /* XXX: Wait, we don't want to throw for all images; in particular, we * want to tolerate corrupt/unknown background images. */ if(img == NULL) - RageException::Throw( "RageBitmapTexture: Couldn't load %s: %s", GetID().filename.c_str(), SDL_GetError() ); + RageException::Throw( "RageBitmapTexture: Couldn't load %s: %s", actualID.filename.c_str(), SDL_GetError() ); if(actualID.bHotPinkColorKey) {