flykidsblue1
Member
Hey everyone! I am currently porting my game to mobile devices and so far the intregration has been easy. However, this line is not working properly:
var sav = "Save 0";
if(directory_exists(sav)){
directory_destroy(sav);
}
This line works perfectly on windows but not working on android. The file is not being deleted on android. I am using GM2 and testing on a Xaomi device. I don't know if there is a limitation with this function or if any sandbox features don't make it work adequately on mobile. If anyone can point me in the right direction, that would be nice!
I have already tried:
var sav = "Save 0";
if(directory_exists(sav)){
directory_destroy(sav);
}
This line works perfectly on windows but not working on android. The file is not being deleted on android. I am using GM2 and testing on a Xaomi device. I don't know if there is a limitation with this function or if any sandbox features don't make it work adequately on mobile. If anyone can point me in the right direction, that would be nice!
I have already tried:
- Enabling the permissions for writing to external storage and reading the phone state
- adding working_directory at the beggning of my directory
- Tried deleting any spaces to the file