mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
move ROM detect code to pico/
This commit is contained in:
parent
2656e68083
commit
4c2e35547f
8 changed files with 400 additions and 321 deletions
19
pico/pico.h
19
pico/pico.h
|
@ -156,6 +156,7 @@ int PicoCartInsert(unsigned char *rom, unsigned int romsize, const char *carthw_
|
|||
void PicoCartUnload(void);
|
||||
extern void (*PicoCartLoadProgressCB)(int percent);
|
||||
extern void (*PicoCDLoadProgressCB)(const char *fname, int percent);
|
||||
extern int PicoGameLoaded;
|
||||
|
||||
// Draw.c
|
||||
// for line-based renderer, set conversion
|
||||
|
@ -223,6 +224,24 @@ extern short *PsndOut;
|
|||
extern void (*PsndMix_32_to_16l)(short *dest, int *src, int count);
|
||||
void PsndRerate(int preserve_state);
|
||||
|
||||
// media.c
|
||||
enum media_type_e {
|
||||
PM_BAD_DETECT = -1,
|
||||
PM_ERROR = -2,
|
||||
PM_BAD_CD = -3,
|
||||
PM_BAD_CD_NO_BIOS = -4,
|
||||
PM_MD_CART = 1, /* also 32x */
|
||||
PM_MARK3,
|
||||
PM_CD,
|
||||
};
|
||||
enum media_type_e PicoLoadMedia(const char *filename,
|
||||
const char *carthw_cfg_fname,
|
||||
const char *(*get_bios_filename)(int *region, const char *cd_fname),
|
||||
void (*do_region_override)(const char *media_filename));
|
||||
int PicoCdCheck(const char *fname_in, int *pregion);
|
||||
|
||||
extern unsigned char media_id_header[0x100];
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // End of extern "C"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue