diff options
| author | Loki Rautio <lokirautio@gmail.com> | 2026-03-02 23:05:25 -0600 |
|---|---|---|
| committer | Loki Rautio <lokirautio@gmail.com> | 2026-03-02 23:05:25 -0600 |
| commit | 354a0989eb26879bdc7040ae628ead0b204b1e84 (patch) | |
| tree | 2bfb060dc97a5696a1398d39a322bbfee2cc6407 /Minecraft.Client/Extrax64Stubs.cpp | |
| parent | b42a4a4e4d72f6dea0a243c77247f7b9e739f5eb (diff) | |
Add back x64 stub XUID (temp savedata fix)
Fixes savedata loading for existing saves, needs permanent solution
Diffstat (limited to 'Minecraft.Client/Extrax64Stubs.cpp')
| -rw-r--r-- | Minecraft.Client/Extrax64Stubs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.Client/Extrax64Stubs.cpp b/Minecraft.Client/Extrax64Stubs.cpp index 23b2c7f0..3a86cbea 100644 --- a/Minecraft.Client/Extrax64Stubs.cpp +++ b/Minecraft.Client/Extrax64Stubs.cpp @@ -200,7 +200,7 @@ DWORD IQNetPlayer::GetCurrentRtt() { return 0; } bool IQNetPlayer::IsHost() { return m_isHostPlayer; } bool IQNetPlayer::IsGuest() { return false; } bool IQNetPlayer::IsLocal() { return true; } -PlayerUID IQNetPlayer::GetXuid() { return INVALID_XUID; } +PlayerUID IQNetPlayer::GetXuid() { return (PlayerUID)(0xe000d45248242f2e + m_smallId); } // todo: restore to INVALID_XUID once saves support this extern wstring g_playerName; LPCWSTR IQNetPlayer::GetGamertag() { return g_playerName.empty() ? L"Windows" : g_playerName.c_str(); } int IQNetPlayer::GetSessionIndex() { return 0; } |
