I defined a path for my image-files and it all works fine, but how can I also make it work with the published game, because if I create a map 'images' in the .cd directory and put the images in there, the .exe can't find them.
This is my definition:
Code:
#define PRAGMA_PATH "images";
Thanks for reading!
Re: #define PRAGMA_PATH for published game
[Re: Toon]
#393911 02/08/1212:1902/08/1212:19
or add to file names always absolute paths containing the subfolder name like "images\\yourpicture.jpg". can be simple to use this approach if you store in strings your subfolders, and use: str_cpy( actualfilename , foldername ); str_cat( actualfilename , filename );
this way the compilation will result also in a cd folder without subfolders, but if you copy/move the exe and the dlls to your script folder it will work fine (normally the exe is also placed to script folder).