diff --git a/.gitignore b/.gitignore index 01243452..7e3f2419 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ /Minecraft.World/x64_Debug /Minecraft.World/x64_Release MinecraftConsoles.opensdf -MinecraftConsoles.v11.suo \ No newline at end of file +MinecraftConsoles.v11.suo +MinecraftConsoles.sdf diff --git a/Minecraft.Client/Common/Consoles_App.cpp b/Minecraft.Client/Common/Consoles_App.cpp index 9f78f6e1..64ff960e 100644 --- a/Minecraft.Client/Common/Consoles_App.cpp +++ b/Minecraft.Client/Common/Consoles_App.cpp @@ -2386,7 +2386,7 @@ void CMinecraftApp::ClearGameSettingsChangedFlag(int iPad) // Remove the debug settings in the content package build // //////////////////////////// -#ifndef _DEBUG +#ifdef _DEBUG unsigned int CMinecraftApp::GetGameSettingsDebugMask(int iPad,bool bOverridePlayer) //bOverridePlayer is to force the send for the server to get the read options { return 0; @@ -5186,7 +5186,7 @@ void CMinecraftApp::UpsellReturnedCallback(LPVOID pParam, eUpsellType type, eUps TelemetryManager->RecordUpsellResponded(ProfileManager.GetPrimaryPad(), eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID, senResponse); } -#ifdef _DEBUG +#ifdef _DEBUG_MENUS_ENABLED bool CMinecraftApp::DebugArtToolsOn() { return DebugSettingsOn() && (GetGameSettingsDebugMask(ProfileManager.GetPrimaryPad())&(1L<$null + } +} + +$fileCopies = @( + @{ Source = "Xbox\kinect\speech\nuisp1031"; Dest = "nuisp1031" }, + @{ Source = "Xbox\kinect\speech\nuisp1033"; Dest = "nuisp1033" }, + @{ Source = "Xbox\kinect\speech\nuisp1036"; Dest = "nuisp1036" }, + @{ Source = "Xbox\kinect\speech\nuisp1041"; Dest = "nuisp1040" }, + @{ Source = "Xbox\kinect\speech\nuisp1041"; Dest = "nuisp1041" }, + @{ Source = "Xbox\kinect\speech\nuisp2057"; Dest = "nuisp2057" }, + @{ Source = "Xbox\kinect\speech\nuisp2058"; Dest = "nuisp2058" }, + @{ Source = "Xbox\kinect\speech\nuisp3081"; Dest = "nuisp3081" }, + @{ Source = "Xbox\kinect\speech\nuisp3082"; Dest = "nuisp3082" }, + @{ Source = "Xbox\kinect\speech\nuisp3084"; Dest = "nuisp3084" }, + @{ Source = "XboxMedia\AvatarAwards"; Dest = "AvatarAwards" }, + @{ Source = "XboxMedia\XZP\TMSFiles.xzp"; Dest = "TMSFiles.xzp" }, + @{ Source = "Common\Tutorial\Tutorial"; Dest = "Tutorial\Tutorial" } +) + +foreach ($copy in $fileCopies) { + $src = Join-Path $ProjectDir $copy.Source + $dst = Join-Path $OutDir $copy.Dest + if (Test-Path $src) { + Copy-Item -Path $src -Destination $dst -Force + } +} \ No newline at end of file diff --git a/Minecraft.Client/Minecraft.Client.vcxproj b/Minecraft.Client/Minecraft.Client.vcxproj index 50b32d0f..21e7b4b0 100644 --- a/Minecraft.Client/Minecraft.Client.vcxproj +++ b/Minecraft.Client/Minecraft.Client.vcxproj @@ -608,14 +608,14 @@ true - $(OutDir)$(ProjectName)_D.xex + $(SolutionDir)x360_$(Configuration)\$(ProjectName).xex $(ProjectDir)\Xbox\Sentient\Include;$(IncludePath) $(SolutionDir)x360_$(Configuration)\ x360_$(Configuration)\ false - $(OutDir)$(ProjectName).xex + $(SolutionDir)x360_$(Configuration)\$(ProjectName).xex $(ProjectDir)\Xbox\Sentient\Include;$(IncludePath) $(SolutionDir)x360_$(Configuration)\ x360_$(Configuration)\ @@ -968,7 +968,14 @@ CopyToHardDrive $(RemoteRoot)=$(ImagePath);$(RemoteRoot)\res=Common\res;$(RemoteRoot)=XboxMedia\AvatarAwards;$(RemoteRoot)\Tutorial=Common\Tutorial\Tutorial;$(RemoteRoot)=XboxMedia\584111F70AAAAAAA;$(RemoteRoot)=Xbox\kinect\speech;$(RemoteRoot)=XboxMedia\XZP\TMSFiles.xzp;$(RemoteRoot)\DummyTexturePack=Common\DummyTexturePack + true + + powershell -ExecutionPolicy Bypass -File "$(ProjectDir)/Common/Postbuilds/Xbox-postbuild.ps1" -OutDir "$(OutDir)/" -ProjectDir "$(ProjectDir)/" + + + Run Xbox postbuild script + @@ -1017,7 +1024,12 @@ CopyToHardDrive $(RemoteRoot)=$(ImagePath);$(RemoteRoot)\res=Common\res;$(RemoteRoot)=XboxMedia\AvatarAwards;$(RemoteRoot)\Tutorial=Common\Tutorial\Tutorial;$(RemoteRoot)=XboxMedia\584111F70AAAAAAA;$(RemoteRoot)=Xbox\kinect\speech;$(RemoteRoot)=XboxMedia\XZP\TMSFiles.xzp;$(RemoteRoot)\DummyTexturePack=Common\DummyTexturePack + true + + Run Xbox postbuild script + powershell -ExecutionPolicy Bypass -File "$(ProjectDir)/Common/Postbuilds/Xbox-postbuild.ps1" -OutDir "$(OutDir)/" -ProjectDir "$(ProjectDir)/" + diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp index 7d6502bc..40a440c5 100644 --- a/Minecraft.Client/Minecraft.cpp +++ b/Minecraft.Client/Minecraft.cpp @@ -3464,7 +3464,7 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures) if (player->missTime > 0) player->missTime--; -#ifdef _DEBUG_MENUS_ENABLED +#ifdef _DEBUG if(app.DebugSettingsOn()) { #ifndef __PSVITA__ diff --git a/MinecraftConsoles.sdf b/MinecraftConsoles.sdf deleted file mode 100644 index 75774544..00000000 Binary files a/MinecraftConsoles.sdf and /dev/null differ