Fixing Data Location

Blitz3D Forums/Blitz3D Beginners Area/Fixing Data Location

pc_tek(Posted 2008) [#1]
I need to store a game save file, either in 'My Documents', in which case I need to determine the location of said directory...or I can save in the game directory, in which case I need the username of the person logged in.

Is there a way to establish these in Blitz3d?


Nate the Great(Posted 2008) [#2]
I would just save it with the game so you don't need to know where the game folder is saved. I'm not shure if this is what you were asking about but I did my best. :)


Warner(Posted 2008) [#3]
In the code archive, under file utils, there is a function that retreives the mydocs path.


pc_tek(Posted 2008) [#4]
Thanks, Warner! Worked a treat!


pc_tek(Posted 2008) [#5]
NTG, I need this functionality so I can save/restore a game without any user intervention such as a file requester. It's one savegame per user anyway...I just needed to determine a location on a per-user basis.