C++03 Support & Partial Xbox 360 Support (#37)

* WIP C++03 + Xbox 360 Support

* math.h & _USE_MATH_DEFINES on Level.hpp
Updated Xenon vcxproj file for new file structure.

* * Fix bad GUI scale setup.

* * Gui: Use ratios instead of hardcoded sub-1 floating point values, to make the mechanism more clear.

* Add Direct Connect Button and Screen (#30)

* Add Direct Connect Button and Screen

* Remove accidental extra build directories for wasm

* Add DirectConnectScreen.cpp to the CMake

* Use Hungarian coding style notation

* * Fix errors caused by #30

* * Improve the Chat Screen

* * Improve the DirectConnectScreen, among other things.

* * Update the game title once again.

* * Add build-wasm.bat.

* * Add info about compiling for wasm

* * Fix send to specific GUID actually broadcasting to everyone

* * Add command manager.

* * Add writeable configuration.

* * Allow dynamic screen size change on windows

* * Allow the same thing on the emscripten version.

* WIP C++03 + Xbox 360 Support

* Fixed a possible merging issue that broke RakNet?

* Additional Xbox 360 compatability fixes

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
Co-authored-by: ts <124226059+uniformization@users.noreply.github.com>
This commit is contained in:
Brent
2023-08-07 07:48:52 -05:00
committed by GitHub
parent 6c1a54e3f0
commit a0f71c7b27
179 changed files with 4969 additions and 918 deletions

View File

@@ -1,7 +1,7 @@
/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
@@ -13,6 +13,29 @@ int dword_250ADC, dword_250AE0;
LocalPlayer::LocalPlayer(Minecraft* pMinecraft, Level* pLevel, User* pUser, int i) : Player(pLevel)
{
field_BEC = 0;
field_BF0 = 0.0f;
field_BF8 = 0.0f;
field_BFC = 0.0f;
field_C00 = 0.0f;
field_C04 = 0.0f;
field_C08 = 0.0f;
field_C0C = 0.0f;
field_C10 = 0.0f;
field_C14 = 0.0f;
field_C18 = 0.0f;
field_C1C = 0.0f;
m_nAutoJumpFrames = 0;
// multiplayer related
field_C24 = 0.0f;
field_C28 = 0.0f;
field_C2C = 0.0f;
field_C30 = 0.0f;
field_C34 = 0.0f;
// multiplayer related -- end
field_C38 = 0;
m_pKeyboardInput = nullptr;
m_pMinecraft = pMinecraft;
m_name = pUser->field_0;
@@ -181,10 +204,10 @@ void LocalPlayer::tick()
if (m_pMinecraft->isOnline())
{
if (fabsf(m_pos.x - field_C24) > 0.1f ||
if (fabsf(m_pos.x - field_C24) > 0.1f ||
fabsf(m_pos.y - field_C28) > 0.01f ||
fabsf(m_pos.z - field_C2C) > 0.1f ||
fabsf(field_C30 - m_pitch) > 1.0f ||
fabsf(m_pos.z - field_C2C) > 0.1f ||
fabsf(field_C30 - m_pitch) > 1.0f ||
fabsf(field_C34 - m_yaw) > 1.0f)
{
m_pMinecraft->m_pRakNetInstance->send(new MovePlayerPacket(m_EntityID, m_pos.x, m_pos.y - field_84, m_pos.z, m_pitch, m_yaw));