Add GB_is_cgb_in_cgb_mode
This commit is contained in:
parent
f1e5e04198
commit
d0a9d2f72a
@ -1319,6 +1319,11 @@ bool GB_is_cgb(GB_gameboy_t *gb)
|
|||||||
return (gb->model & GB_MODEL_FAMILY_MASK) == GB_MODEL_CGB_FAMILY;
|
return (gb->model & GB_MODEL_FAMILY_MASK) == GB_MODEL_CGB_FAMILY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GB_is_cgb_in_cgb_mode(GB_gameboy_t *gb)
|
||||||
|
{
|
||||||
|
return gb->cgb_mode;
|
||||||
|
}
|
||||||
|
|
||||||
bool GB_is_sgb(GB_gameboy_t *gb)
|
bool GB_is_sgb(GB_gameboy_t *gb)
|
||||||
{
|
{
|
||||||
return (gb->model & ~GB_MODEL_PAL_BIT & ~GB_MODEL_NO_SFC_BIT) == GB_MODEL_SGB || (gb->model & ~GB_MODEL_NO_SFC_BIT) == GB_MODEL_SGB2;
|
return (gb->model & ~GB_MODEL_PAL_BIT & ~GB_MODEL_NO_SFC_BIT) == GB_MODEL_SGB || (gb->model & ~GB_MODEL_NO_SFC_BIT) == GB_MODEL_SGB2;
|
||||||
|
@ -763,6 +763,7 @@ __attribute__((__format__ (__printf__, fmtarg, firstvararg)))
|
|||||||
void GB_init(GB_gameboy_t *gb, GB_model_t model);
|
void GB_init(GB_gameboy_t *gb, GB_model_t model);
|
||||||
bool GB_is_inited(GB_gameboy_t *gb);
|
bool GB_is_inited(GB_gameboy_t *gb);
|
||||||
bool GB_is_cgb(GB_gameboy_t *gb);
|
bool GB_is_cgb(GB_gameboy_t *gb);
|
||||||
|
bool GB_is_cgb_in_cgb_mode(GB_gameboy_t *gb);
|
||||||
bool GB_is_sgb(GB_gameboy_t *gb); // Returns true if the model is SGB or SGB2
|
bool GB_is_sgb(GB_gameboy_t *gb); // Returns true if the model is SGB or SGB2
|
||||||
bool GB_is_hle_sgb(GB_gameboy_t *gb); // Returns true if the model is SGB or SGB2 and the SFC/SNES side is HLE'd
|
bool GB_is_hle_sgb(GB_gameboy_t *gb); // Returns true if the model is SGB or SGB2 and the SFC/SNES side is HLE'd
|
||||||
GB_model_t GB_get_model(GB_gameboy_t *gb);
|
GB_model_t GB_get_model(GB_gameboy_t *gb);
|
||||||
|
Loading…
Reference in New Issue
Block a user