You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that you can only have one ini file open at any one time and remember to use ini_close() once you're finished reading/writing from the .ini file
YYDan
changed the title
Clarify ini_close and ini_open about errors
Manual Content: ini_close() and ini_open() pages do not document current behaviours for when errors will be shown
Dec 9, 2024
…nt behaviours for when errors will be shown
YoYoGames/GameMaker-Bugs#8642
* Clarified the behaviour of ini_open() and ini_close() on the respective function pages
* Added headers to the INI files page, also moved ini_open_from_string() after ini_open()
* Capitalised "ini" -> "INI", couple of typo fixes
* Visual update of the manual pages
Description
ini_open
Docs state:
However, it does not mention that calling ini_open() without calling ini_close() will automatically call ini_close() first, as shown in the HTML runner: https://github.com/YoYoGames/GameMaker-HTML5/blob/be30ece4abbde24d6bfc5deb679d9ce3b64f094c/scripts/functions/Function_ini.js#L55-L58
This means the ini file is saved correctly either way.
ini_close
Docs state:
In the HTML runner (and I'm pretty sure the C++ runner, but I will have to double check), ini_close() actually just does nothing when called with no open ini file, and does not throw an error:
https://github.com/YoYoGames/GameMaker-HTML5/blob/be30ece4abbde24d6bfc5deb679d9ce3b64f094c/scripts/functions/Function_ini.js#L83
Manual Link
https://manual.gamemaker.io/beta/en/GameMaker_Language/GML_Reference/File_Handling/Ini_Files/Ini_Files.htm
The text was updated successfully, but these errors were encountered: