• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

INI saved outside of AppData when saving to directory

MeBoingus

Member
Hi all,

I'm currently working on the server-side part of a registration system.
I save user's profiles as an INI, and then load and read that data on the server when logging in.

The system works fine, and saves the file in the expected location in Local AppData if I open the ini using:
GML:
ini_open(string_lower(clientUsername) + ".usr");
However, the server is going to be reading a lot of files, and I'd like to keep everything organized inside of different directories.
So I disabled the Sandbox, and tried using:
GML:
ini_open("/Users/" + string_lower(clientUsername) + ".usr");
For some reason, this results in the INI being created in "V:\Users\name.ini" instead of AppData.

I've tried using:
GML:
ini_open(working_directory + "Users/" + string_lower(clientUsername) + ".usr");
With no luck.


Is there any way that I can get the INIs to save into a specific folder in Local AppData, without having to hard-code the path into the server software?


Thanks in advance,
L. Jacobs
 
Top