overbound / SonicTimeTwisted

Source Code for a Sonic Fan Game Made in Game Maker Studio
https://overboundstudio.com/
GNU General Public License v3.0
57 stars 16 forks source link

Android external translation loading? #159

Open nkrapivin opened 3 years ago

nkrapivin commented 3 years ago

There's a little undocumented feature of buffer async groups in GM:S, this gml snippet can bypass the filesystem sandbox, even on mobile(!):

buffer_async_group_begin("i want blini and hugs");
buffer_async_group_option("temprloc", "/sdcard/STTFiles");
// calling buffer_async_group_end() with no buffers will crash, maybe make a dummy write/read to do *something* ?

and will allow you to read from /sdcard/STTFiles (given you asked for the WRITE_EXTERNAL_STORAGE permission)

Maybe use that hiddden feature to our advantage and read translations outside the apk?

nkrapivin commented 2 years ago

I think we should implement that, but later as it is the lowest priority right now. Not going to close it.