aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornegativeExponent2020-05-18 13:06:11 +0800
committernegativeExponent2020-05-18 21:42:13 +0800
commit5c00ea32a0eab812299b08acd14c25bf6ba4ca7a (patch)
treedf3ce98afd2195a6ad162af45684a1352596d063 /frontend
parent4857be429edcb6a0a5e6ba917c8f1e95aa73e21f (diff)
downloadpcsx_rearmed-5c00ea32a0eab812299b08acd14c25bf6ba4ca7a.tar.gz
pcsx_rearmed-5c00ea32a0eab812299b08acd14c25bf6ba4ca7a.tar.bz2
pcsx_rearmed-5c00ea32a0eab812299b08acd14c25bf6ba4ca7a.zip
Minimize logs when loading a cheevos-compatible content
- Using retro_memory_descriptors[] for memmap creates a list of address for a game. At the moment, its quite long and can cover up the log window. Since there is only 1 pointer used, using the traditional retro_get_memory_map/data works enough for this purpose. - Move the use of memory descriptors to debug build.
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 856ea8e..6e45e2f 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -1242,6 +1242,7 @@ strcasestr(const char *s, const char *find)
static void set_retro_memmap(void)
{
+#ifndef NDEBUG
struct retro_memory_map retromap = { 0 };
struct retro_memory_descriptor mmap = {
0, psxM, 0, 0, 0, 0, 0x200000
@@ -1251,6 +1252,7 @@ static void set_retro_memmap(void)
retromap.num_descriptors = 1;
environ_cb(RETRO_ENVIRONMENT_SET_MEMORY_MAPS, &retromap);
+#endif
}
static void update_variables(bool in_flight);
@@ -2485,7 +2487,6 @@ static void print_internal_fps(void)
void retro_run(void)
{
- int i;
//SysReset must be run while core is running,Not in menu (Locks up Retroarch)
if (rebootemu != 0)
{