|
#define PRAGMA_PATH for published game
#393908
02/08/12 12:14
02/08/12 12:14
|
Joined: Nov 2003
Posts: 433 The Netherlands
Toon
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 433
The Netherlands
|
Hey, 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:
#define PRAGMA_PATH "images";
 Thanks for reading!
|
|
|
Re: #define PRAGMA_PATH for published game
[Re: Uhrwerk]
#394051
02/09/12 15:39
02/09/12 15:39
|
Joined: Nov 2003
Posts: 433 The Netherlands
Toon
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 433
The Netherlands
|
Thanks for all the replies!  How exactly do I use this function? I tried this but it does not work: After the default.c include:
#define PRAGMA_PATH "images\\gui";
In top of the void main():
add_folder("images\\gui");
It does work when I run main.c but when I run the published version (.exe), the console reports the files not found...what am I missing here?
|
|
|
Re: #define PRAGMA_PATH for published game
[Re: Toon]
#394102
02/10/12 01:13
02/10/12 01:13
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Did you remember to copy those files over to the publishing directory?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: #define PRAGMA_PATH for published game
[Re: Toon]
#394127
02/10/12 13:09
02/10/12 13:09
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Ok, then my only idea left is, that you could have called add_new() somewhere in your code.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|