set save_dir folder

Posted By: gameplan

set save_dir folder - 08/15/12 13:55

Hi,

this is a very easy question, but somehow I dont get it by myself. I want to set a savedirectory, that is not the workdirectory. That means I want to save my savegames in "work_dir\gamesaves". But the manual doesnt helped me. I tired to use this in many different forms, but it doesnt work:

For example: str_cpy(save_dir,"work_dir\\gamesave"); or save_dir = "\\gamesave";

thanks
Posted By: Kartoffel

Re: set save_dir folder - 08/15/12 17:01

use str_cpy(save_dir, "");

if you use
str_cpy(save_dir, "Save");
and your application saves something a sub-folder 'Save' gets created where your current code file (or the .exe if its compiled) is located.
Posted By: gameplan

Re: set save_dir folder - 08/16/12 19:15

thanks, it works.
© 2024 lite-C Forums