X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FDialog.cpp;h=1f3adc58a0997364172d9d9ae8841cbca6e12dc5;hb=757fd9c1ec8d263225df90ef486051712f448483;hp=5987c8f498ce225485ce6694692951d8c0110045;hpb=8d45019f2b1ac74108ae4589333680158fee32d5;p=lugaru.git diff --git a/Source/Dialog.cpp b/Source/Dialog.cpp index 5987c8f..1f3adc5 100644 --- a/Source/Dialog.cpp +++ b/Source/Dialog.cpp @@ -23,6 +23,7 @@ along with Lugaru. If not, see . #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;