pkgsrc-wip/libretro-nestopia/patches/patch-libretro_libretro.cpp
Nia Alarie e0773472c1 Import retroarch-1.3.6 as wip/retroarch, as well as several other packages
used by retroarch.

This brings the package around a year forwards from the version in pkgsrc,
and adds new options.

Problems with the input drivers in more recent releases are currently
preventing progress beyond 1.3.6 on FreeBSD and NetBSD (and possibly others),
but 1.3.6 seems to work well. Waiting on upstream to resolve this...
2017-05-10 13:14:32 +01:00

18 lines
772 B
C++

$NetBSD: patch-libretro_libretro.cpp,v 1.1 2015/04/10 03:16:18 snj Exp $
retroarch normally expects to find the NstDatabase.xml file in
~/.config/retroarch/bios, but there's no real reason to be editing it.
Rather than have users manually copy the file into place, we install it
system-wide and look for it there instead.
--- libretro/libretro.cpp.orig 2017-04-01 02:50:44.000000000 +0000
+++ libretro/libretro.cpp
@@ -957,7 +957,7 @@ bool retro_load_game(const struct retro_
}
delete custompalette;
- snprintf(db_path, sizeof(db_path), "%s%cNstDatabase.xml", dir, slash);
+ snprintf(db_path, sizeof(db_path), "%s/share/libretro-nestopia/NstDatabase.xml", PREFIX);
if (log_cb)
log_cb(RETRO_LOG_INFO, "NstDatabase.xml path: %s\n", db_path);