summaryrefslogtreecommitdiff
path: root/emulators/raine/files/patch-source::games::cps1.c
blob: c07a2057a832db0b1d170aa4e32667626f068270 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- source/games/cps1.c.orig	Mon Jan 17 10:56:50 2005
+++ source/games/cps1.c	Mon Jan 17 11:35:07 2005
@@ -1437,11 +1437,13 @@

 void load_cps2() {
   UINT16 *rom = (UINT16*)load_region[REGION_ROM1];
-  xor = (UINT16*)load_region[REGION_USER1];
+  UINT8 *tmp;
+  int i, size_code, size_user1;
 /*   int size = get_region_size(REGION_USER1)/2,i,size_code; */
-  int size_code = get_region_size(REGION_ROM1),i;
-  int size_user1 = get_region_size(REGION_USER1);
-  UINT8 *tmp = AllocateMem(size_user1);
+  xor = (UINT16*)load_region[REGION_USER1];
+  size_code = get_region_size(REGION_ROM1);
+  size_user1 = get_region_size(REGION_USER1);
+  tmp = AllocateMem(size_user1);
   if (!init_tilequeue()) return;
   init_pbitmap();