my basic question is whether it is possible to read/write files from/to different (sub)folders? let's say i have a structure like this:
compiled\data\text\
compiled\data\graphics\lowres\
compiled\data\graphics\highres\
compiled\data\other\
i know that i can use $SAVEGAMEDIR$ with the "file"-functions to achieve this but this doesn't work with the "dynamicsprite"-functions. i don't know whether i am missing something but things like:
Code: ags
don't work. is there a way to access subfolders without using $SAVEGAMEDIR$? and is it possible to load graphics from subfolders at all?
thanks for your help!
Sackboy
compiled\data\text\
compiled\data\graphics\lowres\
compiled\data\graphics\highres\
compiled\data\other\
i know that i can use $SAVEGAMEDIR$ with the "file"-functions to achieve this but this doesn't work with the "dynamicsprite"-functions. i don't know whether i am missing something but things like:
File* output = output.Open("data/text/myfile.txt", eFileWrite);
or
DynamicSprite* sprite = DynamicSprite.CreateFromFile("data/graphics/lowres/myfile.png");
don't work. is there a way to access subfolders without using $SAVEGAMEDIR$? and is it possible to load graphics from subfolders at all?
thanks for your help!
Sackboy