Rinnegatamante / lpp-3ds

Lua Player Plus for 3DS
GNU General Public License v3.0
180 stars 32 forks source link

Dofile from/Access to RomFS #49

Closed Wolvan closed 7 years ago

Wolvan commented 7 years ago

Sorry if this is a stupid question, but is it possible to access resources from the RomFS from a lpp3ds script?

Rinnegatamante commented 7 years ago

Yes, dofile("romfs:/index.lua") for example.

Same for other functions (loadImage and similars).

CHMM2 for example uses romfs partition: https://github.com/Rinnegatamante/CHMM2/blob/master/source/index.lua#L3-L16

Wolvan commented 7 years ago

Ah, that's easy enough! Thanks a lot, Rin