Protofall / Crayon-Game-Framework

My own library for making games on the Dreamcast
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Crayon: Function for mounting romdisk appends string to project path #202

Closed Protofall closed 3 years ago

Protofall commented 4 years ago

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"

Protofall commented 4 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.

Protofall commented 3 years ago

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.

Protofall commented 3 years ago

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.