]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Dialog.cpp
Switched all data access to the new methods
[lugaru.git] / Source / Dialog.cpp
index 5987c8f498ce225485ce6694692951d8c0110045..1f3adc58a0997364172d9d9ae8841cbca6e12dc5 100644 (file)
@@ -23,6 +23,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "Input.h"
 #include "Game.h"
 #include "binio.h"
+#include "Utils/Folders.h"
 
 extern int hostile;
 
@@ -109,7 +110,7 @@ DialogScene::DialogScene(FILE* tfile)
 /* Load dialog from txt file, used by console */
 Dialog::Dialog(int type, std::string filename) : type(type)
 {
-    ifstream ipstream(ConvertFileName(filename.c_str()));
+    ifstream ipstream(Folders::getResourcePath(filename));
     ipstream.ignore(256, ':');
     int numscenes;
     ipstream >> numscenes;