Closed Protofall closed 3 years ago
Created crayon.c/h to contains crayon_init()
and crayon_shutdown()
. The "/cd/" part will be stored in a var called char * __base_name
which is located in memory.h (Since its used in memory.c). Need to modify all functions that take a path string to internally make a new string that is __base_name
+ original string.
Possibly change this to make a function that gets the drive path, so if you want to its still possible to load from CD and PC at the same time.
I think the savefile functions should use this logic too. But if they do, then they won't be able to integrate into the stand-alone "Crayon-Savefile" repo...need to decide how to handle it.
The reason I want a function is so the user can just do func("romdisk.img") and inside it creates a new string like "cd/romdisk.img". This also solves the annoying thing of having to use macros to always use the right path. Might need to choose which one via a global var thats set in a later "Crayon_init"