summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoang Minh Thang <hoangminhthang@ktqd.org>2012-07-17 12:46:59 +0700
committerHoang Minh Thang <hoangminhthang@ktqd.org>2012-07-17 12:46:59 +0700
commitf815a8aebef7d4e61f396b3df5a9abc31180892b (patch)
treeb748c3a996194315ce6ac68f4bf935258eaf6ebb /games-emulation/desmume/files
parentremove xmind (diff)
downloadgentoo-vn-f815a8aebef7d4e61f396b3df5a9abc31180892b.tar.gz
gentoo-vn-f815a8aebef7d4e61f396b3df5a9abc31180892b.tar.bz2
gentoo-vn-f815a8aebef7d4e61f396b3df5a9abc31180892b.zip
add desmume
Diffstat (limited to 'games-emulation/desmume/files')
-rw-r--r--games-emulation/desmume/files/desmume-0.9.4-gcc44.patch11
-rw-r--r--games-emulation/desmume/files/desmume-0.9.5-sse2-fix.diff11
-rw-r--r--games-emulation/desmume/files/desmume-add-missing-potfiles.diff6
-rw-r--r--games-emulation/desmume/files/desmume-fix-gcc-warning.diff22
4 files changed, 50 insertions, 0 deletions
diff --git a/games-emulation/desmume/files/desmume-0.9.4-gcc44.patch b/games-emulation/desmume/files/desmume-0.9.4-gcc44.patch
new file mode 100644
index 0000000..d95a16c
--- /dev/null
+++ b/games-emulation/desmume/files/desmume-0.9.4-gcc44.patch
@@ -0,0 +1,11 @@
+--- desmume-0.9.4/src/texcache.h 2009-07-08 11:11:01.000000000 +0300
++++ desmume-0.9.4-gcc44/src/texcache.h 2009-07-24 20:21:16.000000000 +0300
+@@ -43,7 +43,7 @@
+
+ void TexCache_Reset();
+
+-template<TexCache_TexFormat format>
++template<TexCache_TexFormat>
+ void TexCache_SetTexture(u32 format, u32 texpal);
+
+ void TexCache_Invalidate();
diff --git a/games-emulation/desmume/files/desmume-0.9.5-sse2-fix.diff b/games-emulation/desmume/files/desmume-0.9.5-sse2-fix.diff
new file mode 100644
index 0000000..1f9d48a
--- /dev/null
+++ b/games-emulation/desmume/files/desmume-0.9.5-sse2-fix.diff
@@ -0,0 +1,11 @@
+--- trunk/desmume/src/matrix.h 2009/12/12 10:34:06 3145
++++ trunk/desmume/src/matrix.h 2009/12/12 16:30:55 3146
+@@ -115,7 +115,7 @@
+
+ //switched SSE2 functions
+ //-------------
+-#ifdef ENABLE_SSE
++#ifdef ENABLE_SSE2
+
+ template<int NUM>
+ FORCEINLINE void memset_u16_le(void* dst, u16 val)
diff --git a/games-emulation/desmume/files/desmume-add-missing-potfiles.diff b/games-emulation/desmume/files/desmume-add-missing-potfiles.diff
new file mode 100644
index 0000000..7ce2f87
--- /dev/null
+++ b/games-emulation/desmume/files/desmume-add-missing-potfiles.diff
@@ -0,0 +1,6 @@
+--- desmume-0.9.7/po/POTFILES.skip 2011-01-27 11:27:00.000000000 +0100
++++ desmume-0.9.7-1/po/POTFILES.skip 2011-11-11 21:10:30.550725740 +0100
+@@ -1,2 +1,3 @@
+ src/wx/PadSimple/GUI/ConfigDlg.cpp
+ src/wxdlg/wxdlg3dViewer.cpp
++src/wxdlg/wxcontrolsconfigdialog.cpp
diff --git a/games-emulation/desmume/files/desmume-fix-gcc-warning.diff b/games-emulation/desmume/files/desmume-fix-gcc-warning.diff
new file mode 100644
index 0000000..4096402
--- /dev/null
+++ b/games-emulation/desmume/files/desmume-fix-gcc-warning.diff
@@ -0,0 +1,22 @@
+--- desmume-0.9.7/src/GPU.cpp 2011-01-27 11:27:00.000000000 +0100
++++ desmume-0.9.7-fix-warning/src/GPU.cpp 2011-11-11 21:17:10.826721602 +0100
+@@ -1184,16 +1184,16 @@
+ case BGType_AffineExt_256x1:
+ // 256 colors
+ pal = MMU.ARM9_VMEM + gpu->core * 0x400;
+- apply_rot_fun<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], NULL, pal);
++ apply_rot_fun<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], 0, pal);
+ return;
+ case BGType_AffineExt_Direct:
+ // direct colors / BMP
+- apply_rot_fun<rot_BMP_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], NULL, NULL);
++ apply_rot_fun<rot_BMP_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], 0, NULL);
+ return;
+ case BGType_Large8bpp:
+ // large screen 256 colors
+ pal = MMU.ARM9_VMEM + gpu->core * 0x400;
+- apply_rot_fun<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_large_ram[num], NULL, pal);
++ apply_rot_fun<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_large_ram[num], 0, pal);
+ return;
+ default: break;
+ }