mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-30 10:10:25 +00:00
Add some log calls
This commit is contained in:
parent
ee3a61d805
commit
262346886d
@ -82,6 +82,7 @@ PUBLIC_SYMBOL void retro_init(void) {
|
||||
}
|
||||
|
||||
PUBLIC_SYMBOL bool retro_load_game(const struct retro_game_info *info) {
|
||||
retro::log(RETRO_LOG_DEBUG, "retro_load_game(\"%s\", %d)\n", info->path, info->size);
|
||||
return melonds::load_game(0, info);
|
||||
}
|
||||
|
||||
@ -294,6 +295,7 @@ PUBLIC_SYMBOL void retro_set_controller_port_device(unsigned port, unsigned devi
|
||||
|
||||
PUBLIC_SYMBOL void retro_reset(void) {
|
||||
using melonds::game_info;
|
||||
retro::log(RETRO_LOG_DEBUG, "retro_reset()\n");
|
||||
NDS::Reset();
|
||||
if (!NDSCart::LoadROM((const uint8_t *) game_info->data, game_info->size)) {
|
||||
retro::log(RETRO_LOG_ERROR, "Failed to load ROM");
|
||||
|
@ -64,6 +64,7 @@ PUBLIC_SYMBOL bool retro_unserialize(const void *data, size_t size) {
|
||||
}
|
||||
|
||||
PUBLIC_SYMBOL void *retro_get_memory_data(unsigned type) {
|
||||
retro::log(RETRO_LOG_DEBUG, "retro_get_memory_data(%d)\n", type);
|
||||
switch (type) {
|
||||
case RETRO_MEMORY_SYSTEM_RAM:
|
||||
return NDS::MainRAM;
|
||||
|
Loading…
Reference in New Issue
Block a user