From 1d13bcb3230731156e77865f821bb704c38734c3 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 18 May 2009 06:49:51 +0000 Subject: [PATCH] fix shared 2-bank shared wram mapping; add Release FastBuild to 2008 vcproj --- desmume/src/MMU.cpp | 2 +- desmume/src/windows/DeSmuME_2008.sln | 5 +- desmume/src/windows/DeSmuME_2008.vcproj | 103 ++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 2 deletions(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 2dff96241..6d357336a 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -372,7 +372,7 @@ static FORCEINLINE u32 MMU_LCDmap(u32 addr, bool& unmapped) unmapped = true; return 0; } - return LCDC_HACKY_LOCATION + (vram_arm7_map[bank]<<17) + ofs; + return LCDC_HACKY_LOCATION + (vram_arm7_map[bank]<<14) + ofs; } //handle LCD memory mirroring diff --git a/desmume/src/windows/DeSmuME_2008.sln b/desmume/src/windows/DeSmuME_2008.sln index 974af79ab..2817ee3bf 100644 --- a/desmume/src/windows/DeSmuME_2008.sln +++ b/desmume/src/windows/DeSmuME_2008.sln @@ -1,16 +1,19 @@  Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual C++ Express 2008 +# Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DeSmuME_VS2008", "DeSmuME_2008.vcproj", "{9F5F72A1-D3A5-4918-B460-E076B16D10A9}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 + Release FastBuild|Win32 = Release FastBuild|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {9F5F72A1-D3A5-4918-B460-E076B16D10A9}.Debug|Win32.ActiveCfg = Debug|Win32 {9F5F72A1-D3A5-4918-B460-E076B16D10A9}.Debug|Win32.Build.0 = Debug|Win32 + {9F5F72A1-D3A5-4918-B460-E076B16D10A9}.Release FastBuild|Win32.ActiveCfg = Release FastBuild|Win32 + {9F5F72A1-D3A5-4918-B460-E076B16D10A9}.Release FastBuild|Win32.Build.0 = Release FastBuild|Win32 {9F5F72A1-D3A5-4918-B460-E076B16D10A9}.Release|Win32.ActiveCfg = Release|Win32 {9F5F72A1-D3A5-4918-B460-E076B16D10A9}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection diff --git a/desmume/src/windows/DeSmuME_2008.vcproj b/desmume/src/windows/DeSmuME_2008.vcproj index 2b3201743..e0ea75e86 100644 --- a/desmume/src/windows/DeSmuME_2008.vcproj +++ b/desmume/src/windows/DeSmuME_2008.vcproj @@ -195,6 +195,98 @@ Name="VCPostBuildEventTool" /> + + + + + + + + + + + + + + + + + + + + @@ -430,6 +522,17 @@ Outputs="$(IntDir)\$(InputName).obj" /> + + +