Rinnegatamante / lpp-vita

Lua Player Plus for PSVITA. Documentation on: http://rinnegatamante.github.io/lpp-vita/
GNU General Public License v3.0
179 stars 27 forks source link

Unable to open file for writing #54

Closed mellonfarmer closed 3 years ago

mellonfarmer commented 3 years ago

Hi,

Not sure if it's a bug or i'm not using the command properly,

When using System.open with FWRITE, FRDWR, FCREATE gives error: cannot open requested file. the issues doesn't appear when using FREAD

sample:

toWrite = "Hello world" local fh = System.openFile("app0:/file.txt", FRDWR) System.writeFile(fh, toWrite, #toWrite) System.closeFile(fh)

error line 2

using Latest nightly build

Rinnegatamante commented 3 years ago

app0 is read only.

mellonfarmer commented 3 years ago

Sorry, should have noted that I have also tried it with the full installation directory as well ux0:/data/appname/file

Rinnegatamante commented 3 years ago

Assuming the base dir exists and the file exists (unless you're using FCREATE), it doesn't error.