[mupen64plus-core] 68/310: Fix swapping of n64 images

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:57:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-core.

commit 22c1daaf75600819160c35d5848da7b32002e137
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sat Mar 12 23:14:34 2011 +0100

    Fix swapping of n64 images
---
 debian/changelog                 |  1 +
 debian/patches/n64_romswap.patch | 17 +++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 19 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9b2146e..b26e7f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mupen64plus-core (1.99.4-2) UNRELEASED; urgency=low
 
   * debian/patches:
     - Add rtc.patch, Add support for n64 internal clock
+    - Add n64_romswap.patch, Fix swapping of n64 images
 
  -- Sven Eckelmann <sven at narfation.org>  Mon, 07 Mar 2011 21:46:08 +0100
 
diff --git a/debian/patches/n64_romswap.patch b/debian/patches/n64_romswap.patch
new file mode 100644
index 0000000..d0e8afd
--- /dev/null
+++ b/debian/patches/n64_romswap.patch
@@ -0,0 +1,17 @@
+Description: Fix swapping of n64 images
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/main/rom.c b/src/main/rom.c
+index bd5d05e48f2f29c120b7a7a6d2ffe80276754e42..07df3f110f31e15ef2d9c45e9730a24b5100b9d5 100644
+--- a/src/main/rom.c
++++ b/src/main/rom.c
+@@ -95,7 +95,7 @@ static void swap_rom(unsigned char* localrom, unsigned char* imagetype, int load
+         for (i = 0; i < loadlength; i+=4)
+             {
+             temp=localrom[i];
+-            localrom[i]=localrom[1+3];
++            localrom[i]=localrom[i+3];
+             localrom[i+3]=temp;
+             temp=localrom[i+1];
+             localrom[i+1]=localrom[i+2];
diff --git a/debian/patches/series b/debian/patches/series
index 328afa0..5bbc674 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ dejavu-font.patch
 printf_fixup.patch
 api_header.patch
 rtc.patch
+n64_romswap.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-core.git



More information about the Pkg-games-commits mailing list