camerakid
Member
Hey Everyone,
So I have been testing for some time HTML5 and my games seem to be working nicely. But I have problems with the saving system... The standard ini file creating is not working and I have been reading the documentation about file handling but I am not sure if I am doing anything wrong. It says:
"HTML5 / Windows 8 (JS) - Everything is done through the local storage."
So when saving an ini file or reading from it, how would that look like? I tried both of the following methods but none has been saving the game (or I am not sure how to load them)
So I have been testing for some time HTML5 and my games seem to be working nicely. But I have problems with the saving system... The standard ini file creating is not working and I have been reading the documentation about file handling but I am not sure if I am doing anything wrong. It says:
"HTML5 / Windows 8 (JS) - Everything is done through the local storage."
So when saving an ini file or reading from it, how would that look like? I tried both of the following methods but none has been saving the game (or I am not sure how to load them)
Code:
//Standard method
ini_open("Objects.ini");
//HTML5 method?
ini_open(working_directory + "Objects.ini");