I'm having trouble writing files to the directory where the exported game is located. I disabled the file system sandbox via the Windows export settings. The program is located in a folder on the Desktop. I have cleared the project cache and that did not work. I have tried running the program as an administrator and that did not work. The following is the code I am using:
The program writes files to %localappdata%\game_name\ instead of the expected directory, "D:\DESKTOP2\Dungeon Mapper\". I have tried replacing (program_directory + "log.txt") with ("log.txt") and that did not change anything. log.txt contains the following string:
This shows to me that the program can find the intended write directory, but is not writing to it for some reason. Does anyone have any idea what could be causing this and how to fix it?
var f = file_text_open_write(program_directory + "log.txt"); file_text_write_string(f, program_directory + "Maps\\asdf.bin"); file_text_close(f);