forked from cafeberry/cafeberry
feat: Postbuild Scripts & Disable Debug Features on Release Builds (#3)
This adds postbuild scripts for PS3, Windows64 & Orbis (Rough Estimation) This also Excludes the Durango Networking files from being added into other builds along with setting Minecraft.client as the startup project and disabling debug features on release builds. --------- Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com> Reviewed-on: https://git.neolegacy.dev/Project-Elysium/main/pulls/3 Co-authored-by: str1k3r <15+str1k3r@noreply.neolegacy.dev> Co-committed-by: str1k3r <15+str1k3r@noreply.neolegacy.dev>
This commit is contained in:
@@ -127,7 +127,7 @@ CMinecraftApp::CMinecraftApp()
|
||||
m_bChangingSessionType = false;
|
||||
m_bReallyChangingSessionType = false;
|
||||
|
||||
#ifdef _DEBUG_MENUS_ENABLED
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifdef _CONTENT_PACKAGE
|
||||
m_bDebugOptions=false; // make them off by default in a content package build
|
||||
@@ -2386,7 +2386,7 @@ void CMinecraftApp::ClearGameSettingsChangedFlag(int iPad)
|
||||
// Remove the debug settings in the content package build
|
||||
//
|
||||
////////////////////////////
|
||||
#ifndef _DEBUG_MENUS_ENABLED
|
||||
#ifndef _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_MENUS_ENABLED
|
||||
#ifdef _DEBUG
|
||||
bool CMinecraftApp::DebugArtToolsOn()
|
||||
{
|
||||
return DebugSettingsOn() && (GetGameSettingsDebugMask(ProfileManager.GetPrimaryPad())&(1L<<eDebugSetting_ArtTools)) != 0;
|
||||
|
||||
Reference in New Issue
Block a user