~ubuntu-branches/ubuntu/quantal/mupen64plus/quantal

« back to all changes in this revision

Viewing changes to debian/patches/n64_romswap.patch

  • Committer: Bazaar Package Importer
  • Author(s): Sven Eckelmann
  • Date: 2011-05-08 18:34:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110508183453-qxve117sly09350k
Tags: 1.5+dfsg1-16
* debian/patches:
  - Add rtc.patch, Add support for n64 internal clock
  - Add n64_romswap.patch, Fix swapping of n64 images
  - Add g_type_init.patch, Call g_type_init before starting gui
  - Add sigchld.patch, Don't kill emulation when a child thread stops
* Upgraded to policy 3.9.2, no changes required

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix swapping of n64 images
 
2
Author: Sven Eckelmann <sven@narfation.org>
 
3
 
 
4
---
 
5
diff --git a/main/rom.c b/main/rom.c
 
6
index 4395178375d2ddd5e1bf7a890ee891b529e7f6be..3533c2d6193576abcebdee04926901a8dcc7177a 100644
 
7
--- a/main/rom.c
 
8
+++ b/main/rom.c
 
9
@@ -102,7 +102,7 @@ void swap_rom(unsigned char* localrom, unsigned char* imagetype, int loadlength)
 
10
         for (i = 0; i < loadlength; i+=4)
 
11
             {
 
12
             temp=localrom[i];
 
13
-            localrom[i]=localrom[1+3];
 
14
+            localrom[i]=localrom[i+3];
 
15
             localrom[i+3]=temp;
 
16
             temp=localrom[i+1];
 
17
             localrom[i+1]=localrom[i+2];