DaveInDev
Member
Hi there,
I want the user to load/save user files, choosing their names, so I will use the get_*_filename_ext functions for that, out of the sandbox.
But by default, they open a browser in the program's directory (c:\program\my_game), which is not convenient because it's not a writable directory.
I would better call these get_*_filename_ext functions pointing to the "documents" folder of the user.
I just wonder how I can get this...
I know that with environment_get_variable("userprofile"), I can retrieve the user's global folder (like c:\users\name),
but how can I retrieve the documents folder (the name of this folder depends on the language, for example "my documents" in english,
but "mes documents" in french)...
And I also know that a user can totally change its documents path to something like "d:\docs"...
I want the user to load/save user files, choosing their names, so I will use the get_*_filename_ext functions for that, out of the sandbox.
But by default, they open a browser in the program's directory (c:\program\my_game), which is not convenient because it's not a writable directory.
I would better call these get_*_filename_ext functions pointing to the "documents" folder of the user.
I just wonder how I can get this...
I know that with environment_get_variable("userprofile"), I can retrieve the user's global folder (like c:\users\name),
but how can I retrieve the documents folder (the name of this folder depends on the language, for example "my documents" in english,
but "mes documents" in french)...
And I also know that a user can totally change its documents path to something like "d:\docs"...
Last edited: