Add some log calls

This commit is contained in:
Jesse Talavera-Greenberg 2023-06-01 17:19:55 -04:00
parent ee3a61d805
commit 262346886d
2 changed files with 3 additions and 0 deletions

View File

@ -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");

View File

@ -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;