From bd1c0914c8ea03544af8fba3f73e12e3b00f9f43 Mon Sep 17 00:00:00 2001 From: gecko_reverse Date: Tue, 19 Aug 2008 05:45:29 +0000 Subject: [PATCH] Did a few more minor compile fixes for the cocoa port. Added speed limit menu under the emulation menu (default to 1x speed limit) --- desmume/ChangeLog | 1 + desmume/src/GPU.h | 1 + desmume/src/cocoa/DeSmuME.cbp | 7 ++ .../cocoa/DeSmuME.xcodeproj/project.pbxproj | 6 ++ desmume/src/cocoa/English.strings | Bin 7500 -> 8320 bytes desmume/src/cocoa/French.strings | 13 +++ desmume/src/cocoa/Japanese.strings | Bin 6734 -> 7464 bytes desmume/src/cocoa/main.m | 45 +++++++++- desmume/src/cocoa/main_window.m | 80 ++++++++++++++++++ desmume/src/cocoa/nds_control.h | 3 + desmume/src/cocoa/nds_control.m | 30 ++++++- desmume/src/windows/OGLRender.c | 1 + 12 files changed, 182 insertions(+), 5 deletions(-) diff --git a/desmume/ChangeLog b/desmume/ChangeLog index 3f950b4f3..1f7292589 100644 --- a/desmume/ChangeLog +++ b/desmume/ChangeLog @@ -18,6 +18,7 @@ - Added basic key mapping configuration to application preferences (thanks to Julio GorgŽ). [Jeff] - Added keyboard shortcuts for Execute, Pause and Reset command (thanks to Julio GorgŽ). [Jeff] - Default key mappings are no longer case sensitive. [Jeff] + - Added ability to limit speed. [Jeff] Windows port: - Removed the bug report link with a define, to avoid reports from betas/external builds [shash] - Added the version on window bar to recognize versions from screenshots [shash] diff --git a/desmume/src/GPU.h b/desmume/src/GPU.h index 0cb6bfd79..252dba1fb 100644 --- a/desmume/src/GPU.h +++ b/desmume/src/GPU.h @@ -804,6 +804,7 @@ void GPU_setMasterBrightness (GPU *gpu, u16 val); #define GPU_setWINOBJ(gpu, val) {gpu->WINOBJ = val&0x1F; gpu->WINOBJ_SPECIAL = (val>>5)&1;} // Blending +void SetupFinalPixelBlitter (GPU *gpu); #define GPU_setBLDCNT_LOW(gpu, val) {gpu->BLDCNT = (gpu->BLDCNT&0xFF00) | val; SetupFinalPixelBlitter (gpu);} #define GPU_setBLDCNT_HIGH(gpu, val) {gpu->BLDCNT = (gpu->BLDCNT&0xFF) | (val<<8); SetupFinalPixelBlitter (gpu);} #define GPU_setBLDCNT(gpu, val) {gpu->BLDCNT = val; SetupFinalPixelBlitter (gpu);} diff --git a/desmume/src/cocoa/DeSmuME.cbp b/desmume/src/cocoa/DeSmuME.cbp index dd60be004..f7221a788 100644 --- a/desmume/src/cocoa/DeSmuME.cbp +++ b/desmume/src/cocoa/DeSmuME.cbp @@ -72,6 +72,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]> + + @@ -139,6 +141,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]>