From 761c368526e5e0b77e9c502e89ce08505babc385 Mon Sep 17 00:00:00 2001 From: AK4K-Coding Date: Sat, 14 Mar 2026 14:23:06 -0400 Subject: [PATCH 1/3] Update Windows64_Minecraft.cpp --- .../Windows64/Windows64_Minecraft.cpp | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index c737e7d..4afc10b 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -76,11 +76,9 @@ DWORD dwProfileSettingsA[NUM_PROFILE_VALUES]= #endif }; -//------------------------------------------------------------------------------------- -// Time Since fAppTime is a float, we need to keep the quadword app time -// as a LARGE_INTEGER so that we don't lose precision after running -// for a long time. -//------------------------------------------------------------------------------------- +// Time Since fAppTime is a float, it doesn't need to keep the quadword app time +// as a LARGE_INTEGER so that it doesn't lose precision after running +// for a while. BOOL g_bWidescreen = TRUE; @@ -647,9 +645,7 @@ LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) return FALSE; } -//-------------------------------------------------------------------------------------- // Create Direct3D device and swap chain -//-------------------------------------------------------------------------------------- HRESULT InitDevice() { HRESULT hr = S_OK; @@ -762,9 +758,7 @@ app.DebugPrintf("width: %d, height: %d\n", width, height); return S_OK; } -//-------------------------------------------------------------------------------------- -// Render the frame -//-------------------------------------------------------------------------------------- +// render the frame void Render() { // Just clear the backbuffer @@ -774,9 +768,7 @@ void Render() g_pSwapChain->Present( 0, 0 ); } -//-------------------------------------------------------------------------------------- -// Clean up the objects we've created -//-------------------------------------------------------------------------------------- +// Clean up the objects it's created void CleanupDevice() { extern void Windows64_RestoreGamma(); @@ -1047,13 +1039,13 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, } } - // Set a callback for the default player options to be set - when there is no profile data for the player + // set a callback for the default player options to be set when there is no profile data for the player ProfileManager.SetDefaultOptionsCallback(&CConsoleMinecraftApp::DefaultOptionsCallback,(LPVOID)&app); #if 0 - // Set a callback to deal with old profile versions needing updated to new versions + // set a callback to deal with old profile versions needing updated to new versions ProfileManager.SetOldProfileVersionCallback(&CConsoleMinecraftApp::OldProfileVersionCallback,(LPVOID)&app); - // Set a callback for when there is a read error on profile data + //sSet a callback for when there is a read error on profile data ProfileManager.SetProfileReadErrorCallback(&CConsoleMinecraftApp::ProfileReadErrorCallback,(LPVOID)&app); #endif @@ -1687,4 +1679,4 @@ void MemPixStuff() PIXAddNamedCounter(((float)allSectsTotal)/(4096.0f),"MemSect total pages"); } -#endif \ No newline at end of file +#endif From 019fd47b0a42f88b188ed310dc113c47806c6919 Mon Sep 17 00:00:00 2001 From: AK4K-Coding Date: Sat, 14 Mar 2026 14:41:26 -0400 Subject: [PATCH 2/3] Update XUI_InGamePlayerOptions.cpp --- Minecraft.Client/Common/XUI/XUI_InGamePlayerOptions.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Minecraft.Client/Common/XUI/XUI_InGamePlayerOptions.cpp b/Minecraft.Client/Common/XUI/XUI_InGamePlayerOptions.cpp index 156cd09..573fce8 100644 --- a/Minecraft.Client/Common/XUI/XUI_InGamePlayerOptions.cpp +++ b/Minecraft.Client/Common/XUI/XUI_InGamePlayerOptions.cpp @@ -11,9 +11,7 @@ -//---------------------------------------------------------------------------------- // Performs initialization tasks - retrieves controls. -//---------------------------------------------------------------------------------- HRESULT CScene_InGamePlayerOptions::OnInit( XUIMessageInit* pInitData, BOOL& bHandled ) { m_iPad = *(int *)pInitData->pvInitData; @@ -496,4 +494,4 @@ void CScene_InGamePlayerOptions::resetCheatCheckboxes() m_checkboxes[eControl_CheatTeleport].SetCheck( isModerator && (Player::getPlayerGamePrivilege(m_playerPrivileges, Player::ePlayerGamePrivilege_CanTeleport) != 0) ); } -} \ No newline at end of file +} From 4390435f068490de3aaf38469af9d436bc7dd261 Mon Sep 17 00:00:00 2001 From: NOTPIES Date: Sat, 14 Mar 2026 17:47:11 -0300 Subject: [PATCH 3/3] fix comments --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 4afc10b..0b334e0 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -1039,13 +1039,13 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, } } - // set a callback for the default player options to be set when there is no profile data for the player + // Set a callback for the default player options to be set when there is no profile data for the player ProfileManager.SetDefaultOptionsCallback(&CConsoleMinecraftApp::DefaultOptionsCallback,(LPVOID)&app); #if 0 - // set a callback to deal with old profile versions needing updated to new versions + // Set a callback to deal with old profile versions needing updated to new versions ProfileManager.SetOldProfileVersionCallback(&CConsoleMinecraftApp::OldProfileVersionCallback,(LPVOID)&app); - //sSet a callback for when there is a read error on profile data + // Set a callback for when there is a read error on profile data ProfileManager.SetProfileReadErrorCallback(&CConsoleMinecraftApp::ProfileReadErrorCallback,(LPVOID)&app); #endif