Can't save files on Windows 10
In Windows 10 (Pro), this fails. I've tried GetPrefsPath() too, and it fails too. CreateDir() works.
Using std..
Function Main()
Local buf:= New DataBuffer(100,ByteOrder.LittleEndian)
Local res:= buf.Save("C:\temp\mybuf.dat")
Print "Saveresult is: " + res
End```
Can you try with forward slashes? Backslashes are still causing issues - will get it fixed ASAP.
On Tue, Apr 24, 2018 at 7:00 PM, Difference [email protected] wrote:
In Windows 10 Pro, this fails. I've tried GetPrefsPath() too, and it fails too.
Using std..
Function Main()
Local buf:= New DataBuffer(100,ByteOrder.LittleEndian) Local res:= buf.Save("C:\temp\mybuf.dat") Print "Saveresult is: " + resEnd```
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blitz-research/monkey2/issues/373, or mute the thread https://github.com/notifications/unsubscribe-auth/ADU3QgGAvIqQgdqE_-p1dDmBaqFS8yEhks5trs2agaJpZM4ThGzE .
Yay! Forward slashes fixes it. Also works for SDL_GetPrefsPath files.
Issue could be closed.
Issue could be closed.
Why? Has it been solved and tested by yourself or are you referring to the fact there is a workaround for the issue?
The code above works with backslashs or forward slashs under Windows 10, the problem being the save path is protected by the system (the C: drive for exemple) and refuses to write. The generated executable of sample works if it's run as administrator.