[mupen64plus] 220/262: Fix swapping of n64 images

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


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

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

commit db50bf0d7be26707e12c294dfa52898e7fd84e17
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sat Mar 12 23:29:19 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 52ed0ea..6c3da8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mupen64plus (1.5+dfsg1-16) 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>  Wed, 09 Mar 2011 10:38:22 +0100
 
diff --git a/debian/patches/n64_romswap.patch b/debian/patches/n64_romswap.patch
new file mode 100644
index 0000000..b25b592
--- /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/main/rom.c b/main/rom.c
+index 4395178375d2ddd5e1bf7a890ee891b529e7f6be..3533c2d6193576abcebdee04926901a8dcc7177a 100644
+--- a/main/rom.c
++++ b/main/rom.c
+@@ -102,7 +102,7 @@ void swap_rom(unsigned char* localrom, unsigned char* imagetype, int loadlength)
+         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 7a067b5..d3d4765 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -49,3 +49,4 @@ correct_security_printf.patch
 pie_support.patch
 inline_header.patch
 rtc.patch
+n64_romswap.patch

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



More information about the Pkg-games-commits mailing list