mirror of
https://github.com/libretro/beetle-saturn-libretro.git
synced 2024-11-26 19:00:35 +00:00
Reduce redundant logging
This commit is contained in:
parent
5262cf4b11
commit
a525fde2d6
@ -484,9 +484,9 @@ void input_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
void input_set_geometry( unsigned width, unsigned height )
|
||||
void input_set_geometry(unsigned width, unsigned height)
|
||||
{
|
||||
log_cb( RETRO_LOG_INFO, "input_set_geometry: %dx%d\n", width, height );
|
||||
log_cb(RETRO_LOG_INFO, "%s: %dx%d\n", __func__, width, height);
|
||||
|
||||
geometry_width = width;
|
||||
geometry_height = height;
|
||||
|
12
libretro.cpp
12
libretro.cpp
@ -772,12 +772,10 @@ void retro_run(void)
|
||||
|
||||
environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &av_info);
|
||||
|
||||
log_cb(RETRO_LOG_INFO, "Target framebuffer size : %dx%d\n", width, height);
|
||||
|
||||
game_width = width;
|
||||
game_height = height;
|
||||
|
||||
input_set_geometry( width, height );
|
||||
input_set_geometry(width, height);
|
||||
}
|
||||
|
||||
/* LED interface */
|
||||
@ -832,9 +830,9 @@ void retro_deinit(void)
|
||||
delete surf;
|
||||
surf = NULL;
|
||||
|
||||
log_cb(RETRO_LOG_INFO, "[%s]: Samples / Frame: %.5f\n",
|
||||
log_cb(RETRO_LOG_DEBUG, "[%s]: Samples / Frame: %.5f\n",
|
||||
MEDNAFEN_CORE_NAME, (double)audio_frames / video_frames);
|
||||
log_cb(RETRO_LOG_INFO, "[%s]: Estimated FPS: %.5f\n",
|
||||
log_cb(RETRO_LOG_DEBUG, "[%s]: Estimated FPS: %.5f\n",
|
||||
MEDNAFEN_CORE_NAME, (double)video_frames * 44100 / audio_frames);
|
||||
|
||||
libretro_supports_option_categories = false;
|
||||
@ -843,9 +841,7 @@ void retro_deinit(void)
|
||||
|
||||
unsigned retro_get_region(void)
|
||||
{
|
||||
if (is_pal)
|
||||
return RETRO_REGION_PAL; //Ben Swith PAL
|
||||
return RETRO_REGION_NTSC;
|
||||
return (is_pal) ? RETRO_REGION_PAL : RETRO_REGION_NTSC;
|
||||
}
|
||||
|
||||
unsigned retro_api_version(void)
|
||||
|
Loading…
Reference in New Issue
Block a user