diff --git a/Minecraft.Client/AbstractTexturePack.cpp b/Minecraft.Client/AbstractTexturePack.cpp index 5a92e830..a8576b05 100644 --- a/Minecraft.Client/AbstractTexturePack.cpp +++ b/Minecraft.Client/AbstractTexturePack.cpp @@ -205,7 +205,9 @@ void AbstractTexturePack::loadName() InputStream *AbstractTexturePack::getResource(const wstring &name, bool allowFallback) //throws IOException { +#ifndef _CONTENT_PACKAGE app.DebugPrintf("texture - %ls\n",name.c_str()); +#endif InputStream *is = getResourceImplementation(name); if (is == nullptr && fallback != nullptr && allowFallback) { diff --git a/Minecraft.Client/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Common/Audio/SoundEngine.cpp index 56fdc634..3fdd169a 100644 --- a/Minecraft.Client/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Common/Audio/SoundEngine.cpp @@ -522,9 +522,11 @@ void SoundEngine::play(int iSound, float x, float y, float z, float volume, floa char* SoundName = (char*)ConvertSoundPathToName(name); strcat((char*)szSoundName, SoundName); +#ifndef _CONTENT_PACKAGE app.DebugPrintf(6, "PlaySound - %d - %s - %s (%f %f %f, vol %f, pitch %f)\n", iSound, SoundName, szSoundName, x, y, z, volume, pitch); +#endif char basePath[256]; sprintf_s(basePath, "Windows64Media/Sound/%s", (char*)szSoundName); diff --git a/Minecraft.Client/Common/Consoles_App.cpp b/Minecraft.Client/Common/Consoles_App.cpp index 317b466b..0d6100ae 100644 --- a/Minecraft.Client/Common/Consoles_App.cpp +++ b/Minecraft.Client/Common/Consoles_App.cpp @@ -8323,7 +8323,9 @@ void CMinecraftApp::RemoveLevelFromBannedLevelList(int iPad, PlayerUID xuid, cha // function to add credits for the DLC packs void CMinecraftApp::AddCreditText(LPCWSTR lpStr) { +#ifndef _CONTENT_PACKAGE DebugPrintf("ADDING CREDIT - %ls\n",lpStr); +#endif // add a string from the DLC to a credits vector SCreditTextItemDef *pCreditStruct = new SCreditTextItemDef; pCreditStruct->m_eType=eSmallText; diff --git a/Minecraft.Client/Common/Media/MediaWindows64/InventoryMenu1080.swf b/Minecraft.Client/Common/Media/MediaWindows64/InventoryMenu1080.swf index 6ae94958..8d72d4a7 100644 Binary files a/Minecraft.Client/Common/Media/MediaWindows64/InventoryMenu1080.swf and b/Minecraft.Client/Common/Media/MediaWindows64/InventoryMenu1080.swf differ diff --git a/Minecraft.Client/Common/UI/UIControl_Label.cpp b/Minecraft.Client/Common/UI/UIControl_Label.cpp index 3e9323a6..419248bd 100644 --- a/Minecraft.Client/Common/UI/UIControl_Label.cpp +++ b/Minecraft.Client/Common/UI/UIControl_Label.cpp @@ -53,10 +53,14 @@ void UIControl_Label::init(UIString label, int id) value[1].type = IGGY_DATATYPE_number; value[1].number = id; +#ifndef _CONTENT_PACKAGE app.DebugPrintf(("Initialised with id" + std::to_string(id)).c_str()); +#endif IggyResult out = IggyPlayerCallMethodRS ( m_parentScene->getMovie() , &result, getIggyValuePath() , m_initFunc , 2 , value ); +#ifndef _CONTENT_PACKAGE app.DebugPrintf(("Initialised with result " + std::to_string(out)).c_str()); +#endif } void UIControl_Label::ReInit() @@ -148,7 +152,9 @@ UIControl_Label::EDirectEditResult UIControl_Label::tickDirectEdit() while (g_KBMInput.ConsumeChar(ch)) { iRealWidth = height(); +#ifndef _CONTENT_PACKAGE app.DebugPrintf(std::to_string(iRealWidth).c_str()); +#endif if (ch == 0x08) // Backspace { diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp index e5355c6f..a155b832 100644 --- a/Minecraft.Client/Common/UI/UIController.cpp +++ b/Minecraft.Client/Common/UI/UIController.cpp @@ -104,6 +104,9 @@ static void RADLINK WarningCallback(void *user_callback_data, Iggy *player, Iggy switch(code) { +#ifdef _CONTENT_PACKAGE + case IGGY_RESULT_Error_ValuePath: +#endif case IGGY_RESULT_Warning_CannotSustainFrameRate: // Ignore warning break; @@ -1722,8 +1725,10 @@ void UIController::handleKeyPress(unsigned int iPad, unsigned int key) if (key == 4) ChatScreen::setWheelValue(1); if (key == 5) ChatScreen::setWheelValue(-1); +#ifndef _CONTENT_PACKAGE if(pressed) app.DebugPrintf("Pressed %d\n",key); if(released) app.DebugPrintf("Released %d\n",key); +#endif // Repeat handling if(pressed) { diff --git a/Minecraft.Client/Common/UI/UIScene.cpp b/Minecraft.Client/Common/UI/UIScene.cpp index 0a332ead..aa3e552b 100644 --- a/Minecraft.Client/Common/UI/UIScene.cpp +++ b/Minecraft.Client/Common/UI/UIScene.cpp @@ -507,7 +507,9 @@ void UIScene::loadMovie() IggyFlushInstalledFonts(); #endif +#ifndef _CONTENT_PACKAGE app.DebugPrintf( app.USER_SR, "Loaded iggy movie %ls\n", moviePath.c_str() ); +#endif IggyPlayerSetUserdata(swf,this); @@ -1174,7 +1176,9 @@ void UIScene::loseFocus() IggyPlayerDispatchEventRS ( getMovie() , &event , &result ); */ +#ifndef _CONTENT_PACKAGE app.DebugPrintf("Sent lose focus event to scene\n"); +#endif bHasFocus = false; handleLoseFocus(); } diff --git a/Minecraft.Client/Common/UI/UIScene_InGameInfoMenu.cpp b/Minecraft.Client/Common/UI/UIScene_InGameInfoMenu.cpp index 9467889b..9f200e63 100644 --- a/Minecraft.Client/Common/UI/UIScene_InGameInfoMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_InGameInfoMenu.cpp @@ -338,7 +338,9 @@ void UIScene_InGameInfoMenu::handleInput(int iPad, int key, bool repeat, bool pr void UIScene_InGameInfoMenu::handlePress(F64 controlId, F64 childId) { +#ifndef _CONTENT_PACKAGE app.DebugPrintf("Pressed = %d, %d\n", static_cast(controlId), static_cast(childId)); +#endif switch(static_cast(controlId)) { case eControl_GameOptions: diff --git a/Minecraft.Client/Common/UI/UIScene_SkinSelectMenu.cpp b/Minecraft.Client/Common/UI/UIScene_SkinSelectMenu.cpp index 6b2f762c..44a00b40 100644 --- a/Minecraft.Client/Common/UI/UIScene_SkinSelectMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_SkinSelectMenu.cpp @@ -1844,7 +1844,9 @@ void UIScene_SkinSelectMenu::HandleDLCMountingComplete() #ifdef __PSVITA__ EnterCriticalSection(&m_DLCInstallCS); // to prevent a race condition between the install and the mounted callback #endif +#ifndef _CONTENT_PACKAGE app.DebugPrintf(4,"UIScene_SkinSelectMenu::HandleDLCMountingComplete\n"); +#endif m_controlTimer.setVisible( false ); m_controlIggyCharacters.setVisible( true ); //m_controlSkinNamePlate.setVisible( true ); diff --git a/Minecraft.Client/Common/UI/UIScene_TeleportMenu.cpp b/Minecraft.Client/Common/UI/UIScene_TeleportMenu.cpp index 7544106b..10842708 100644 --- a/Minecraft.Client/Common/UI/UIScene_TeleportMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_TeleportMenu.cpp @@ -250,7 +250,9 @@ void UIScene_TeleportMenu::handleInput(int iPad, int key, bool repeat, bool pres void UIScene_TeleportMenu::handlePress(F64 controlId, F64 childId) { +#ifndef _CONTENT_PACKAGE app.DebugPrintf("Pressed = %d, %d\n", static_cast(controlId), static_cast(childId)); +#endif switch(static_cast(controlId)) { case eControl_GamePlayers: diff --git a/Minecraft.Client/Common/XUI/XUI_PauseMenu.cpp b/Minecraft.Client/Common/XUI/XUI_PauseMenu.cpp index 494a7acd..9d5e035e 100644 --- a/Minecraft.Client/Common/XUI/XUI_PauseMenu.cpp +++ b/Minecraft.Client/Common/XUI/XUI_PauseMenu.cpp @@ -34,7 +34,9 @@ HRESULT UIScene_PauseMenu::OnInit( XUIMessageInit* pInitData, BOOL& bHandled ) m_iPad = *static_cast(pInitData->pvInitData); bool bUserisClientSide = ProfileManager.IsSignedInLive(m_iPad); +#ifndef _CONTENT_PACKAGE app.DebugPrintf("PAUSE PRESS PROCESSING - ipad = %d, UIScene_PauseMenu::OnInit\n",m_iPad); +#endif bool bIsisPrimaryHost=g_NetworkManager.IsHost() && (ProfileManager.GetPrimaryPad()==m_iPad); bool bDisplayBanTip = !g_NetworkManager.IsLocalGame() && !bIsisPrimaryHost && !ProfileManager.IsGuest(m_iPad); @@ -428,7 +430,9 @@ HRESULT UIScene_PauseMenu::OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandle ui.AnimateKeyPress(pInputData->UserIndex, pInputData->dwKeyCode); +#ifndef _CONTENT_PACKAGE app.DebugPrintf("PAUSE- Keydown in the xui %d flags = %d\n",pInputData->dwKeyCode,pInputData->dwFlags); +#endif switch(pInputData->dwKeyCode) @@ -437,7 +441,9 @@ HRESULT UIScene_PauseMenu::OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandle case VK_PAD_B: case VK_PAD_START: case VK_ESCAPE: +#ifndef _CONTENT_PACKAGE app.DebugPrintf("PAUSE PRESS PROCESSING - ipad = %d, UIScene_PauseMenu::OnKeyDown - LEAVING PAUSE MENU\n",m_iPad); +#endif if( m_iPad == ProfileManager.GetPrimaryPad() && g_NetworkManager.IsLocalGame() ) { diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp index 51b58128..78e80595 100644 --- a/Minecraft.Client/Minecraft.cpp +++ b/Minecraft.Client/Minecraft.cpp @@ -1483,7 +1483,9 @@ void Minecraft::run_middle() if(InputManager.ButtonPressed(i, MINECRAFT_ACTION_PAUSEMENU)) { localplayers[i]->ullButtonsPressed|=1LL<ullButtonsPressed|=1LL<ullButtonsPressed|=1LL<GetXboxPad()); +#endif ui.PlayUISFX(eSFX_Press); ui.NavigateToScene(iPad, eUIScene_PauseMenu, nullptr, eUILayer_Scene); } diff --git a/Minecraft.Client/StatsCounter.cpp b/Minecraft.Client/StatsCounter.cpp index 9765345d..462e1e7b 100644 --- a/Minecraft.Client/StatsCounter.cpp +++ b/Minecraft.Client/StatsCounter.cpp @@ -196,8 +196,10 @@ void StatsCounter::parse(void* data) } } +#ifndef _CONTENT_PACKAGE dumpStatsToTTY(); #endif +#endif } void StatsCounter::save(int player, bool force)