06-26-2023, 02:53 PM
@Cobalt Whoa dude! This is so cool.
That .MFI file... seems to be some kind resource data file like a doom .WAD file? Are you using any public tool to generate that or is it something custom that you made? Just curious.
I noticed that LoadGFX(), LoadFFX() and LoadSFX() are writing to temp files then _LOADIMAGE(), _LOADFONT() and _SNDOPEN() are used to load the resource. You can use the load-from-memory extensions of _LOADIMAGE(), _LOADFONT() and _SNDOPEN() to load the data directly from memory and avoid any file writes. That way your code can run in environments where there are no write-permissions.
That .MFI file... seems to be some kind resource data file like a doom .WAD file? Are you using any public tool to generate that or is it something custom that you made? Just curious.
I noticed that LoadGFX(), LoadFFX() and LoadSFX() are writing to temp files then _LOADIMAGE(), _LOADFONT() and _SNDOPEN() are used to load the resource. You can use the load-from-memory extensions of _LOADIMAGE(), _LOADFONT() and _SNDOPEN() to load the data directly from memory and avoid any file writes. That way your code can run in environments where there are no write-permissions.