Core/Hotfix: use real HouseDecor table hash

This commit is contained in:
Gexo91
2026-09-11 08:48:06 +03:00
parent c5382a4d9c
commit ef2b7bf837
+10 -7
View File
@@ -3,7 +3,8 @@
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your option) any later version.
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@@ -23,15 +24,17 @@
namespace
{
constexpr uint32 HouseDecorTableHash = 0x137145D0;
bool IsUnsafeClientHotfixTable(uint32 tableHash)
{
// HouseDecor.db2 is intentionally not loaded in DB2Manager::LoadStores for the
// current 12.1 branch (the source still marks its layout as pending update).
// Forwarding DB-supplied HouseDecor blobs while that layout is disabled can make
// the retail client merge incompatible rows into its local DB2 view and terminate
// with ERROR #134 on a duplicate unique key. Keep only this known-unsafe table
// quarantined; all other hotfix traffic continues normally.
return tableHash == sHouseDecorStore.GetTableHash();
// current 12.1 branch. An unloaded DB2Storage keeps its runtime table hash at 0,
// so using sHouseDecorStore.GetTableHash() here does not identify HouseDecor.
// Use the stable DB2 table hash for HouseDecor (FileDataID 5149691) instead.
// Forwarding DB-supplied HouseDecor blobs can otherwise make the retail client
// merge duplicate unique keys and terminate with ERROR #134 before character login.
return tableHash == HouseDecorTableHash;
}
}