pkgsrc-wip/nestopia-rpi/patches/patch-source_core_NstMemory.hpp
Nathanial Sloss 44c150df95 Import nestopia-rpi-1.40h as wip/nestopia-rpi.
NEStopia is a portable Nintendo Entertainment System emulator
written in C++ by Martin Freij and ported to Linux by R. Belmont.
NEStopia strives for the most accurate emulation possible at the
pixel-by-pixel and sample-by-sample level, and it has excellent
mapper and UNIF board support as well. A few features:

- Supports .nes and .unf/.unif format ROMs
- Supports .fds discs
- Supports .nsf music rips
- All supported files can be extracted from zip or 7zip containers (an
  archive browser is not yet included - this assumes the common
  GoodSet case of one zip or 7zip per game)
- Autodetection of PAL and NTSC format games

This version is based on nestopia-1.40hnb19 and is optimized for Raspberry
Pis running NetBSD.

It only depends on SDL with a plain text settings file.  Extra options for
changing the speed of the game frameskip, skipping soundsample playback,
adding scanlines, changing to BGR color format and not waiting for sound to
be played back faster performance.
2014-11-02 08:36:13 +00:00

13 lines
588 B
C++

$NetBSD: patch-source_core_NstMemory.hpp,v 1.1 2014/11/02 08:36:13 nsloss Exp $
--- source/core/NstMemory.hpp.orig 2008-03-26 12:31:44.000000000 +0000
+++ source/core/NstMemory.hpp
@@ -763,7 +763,7 @@ namespace Nes
for (uint i=0; i < MEM_NUM_PAGES; ++i)
{
if (pageData[i*3+0] < NUM_SOURCES)
- Source( pageData[i*3+0] ).SwapBank<MEM_PAGE_SIZE>( i * MEM_PAGE_SIZE, pageData[i*3+1] | uint(pageData[i*3+2]) << 8 );
+ SwapBank<MEM_PAGE_SIZE>( i * MEM_PAGE_SIZE, pageData[i*3+1] | uint(pageData[i*3+2]) << 8 );
else
throw RESULT_ERR_CORRUPT_FILE;
}