I am working on a block building game that uses the file_exists function to detect weather or not there is a save file so it can decide weather to generate new terrain or to load the save file. In GM: HTML5, this worked fine, but in Studio, the file_exists function always returns false, even if a save file does exist. This is the code I used:
if (file_exists(%localappdata%/GameName/save.sav"))
{
load("%localappdata%/GameName/save.sav");
}
else
{
generate_terrain();
}Even if there is a save file in that directory, file_exists still returns false. Any help would be appreciated, thanks!