I want to save my savegames in the users home directory.
But simply adding "~/" to the path does not work.
How could I achieve this then?
Save in home directory
You could use
(untested)
Code: Select all
string.s=peekS(getenv_("HOME"))
Last edited by Nik on Wed Sep 27, 2006 11:53 am, edited 1 time in total.
Visit www.sceneproject.org
I think that developers should add universal function - getprofilepath().
On Linux it should return users home path (/home/users_home/).
On Windows it should return profile path (C:\Documets and settings\users_login_name\).
On Linux it should return users home path (/home/users_home/).
On Windows it should return profile path (C:\Documets and settings\users_login_name\).
Regards, _Andrey_
http://www.wegroup.org
http://www.wegroup.org