THE_T_V1RUS
Member
IDE: v2.2.3.436
Runtime: v2.2.3.344
Target: HTML5
I create a very small ini file in my game using ini functions. It contains a single section with one key in that section. I then want to simply copy that ini file so I have two with the exact same data but different names. I'm using the file_copy() function to do this.
When I run this code, the console shows the following:
At this point, the game and page become completely unresponsive. Trying to close the tab doesn't work. Trying to close the browser doesn't work. I have to close the browser with the task manager.
Is there a bug with the file_copy() function in HTML5? The description of the function seems like it should work in HTML5, and I don't see anything I'm doing wrong. It works in other targets.
Runtime: v2.2.3.344
Target: HTML5
I create a very small ini file in my game using ini functions. It contains a single section with one key in that section. I then want to simply copy that ini file so I have two with the exact same data but different names. I'm using the file_copy() function to do this.
Code:
show_debug_message("Key Press Enter event triggered");
if !file_exists("data2.ini")
{
show_debug_message("start copy")
file_copy("data1.ini","data2.ini");
show_debug_message("copy finished");
}
Code:
start copy
HEAD http://127.0.0.1:51264/html5game/data2.ini 404 (Not Found)
Is there a bug with the file_copy() function in HTML5? The description of the function seems like it should work in HTML5, and I don't see anything I'm doing wrong. It works in other targets.
Last edited: