X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FDialog.cpp;h=1f3adc58a0997364172d9d9ae8841cbca6e12dc5;hb=bdabd9d4a53be2fa9d90f900f7e5949d2f0ef75c;hp=5987c8f498ce225485ce6694692951d8c0110045;hpb=2ff8f400c9f3f19e0ac128bb331cf3203c44132e;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;