From b380a0ebdd4d049a9d20bf0bbdc8c25dff1a9658 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Fri, 22 Aug 2014 23:58:14 +0200 Subject: [PATCH] SharedState: Fix asset path priority (rgssad -> "." -> RTPs) --- src/sharedstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sharedstate.cpp b/src/sharedstate.cpp index 36b4332..a2f78e5 100644 --- a/src/sharedstate.cpp +++ b/src/sharedstate.cpp @@ -118,8 +118,6 @@ struct SharedStatePrivate throw Exception(Exception::MKXPError, "Unable to switch into gameFolder '%s'", config.gameFolder.c_str()); - - fileSystem.addPath("."); } // FIXME find out correct archive filename @@ -133,6 +131,8 @@ struct SharedStatePrivate fclose(tmp); } + fileSystem.addPath("."); + for (size_t i = 0; i < config.rtps.size(); ++i) fileSystem.addPath(config.rtps[i].c_str());