mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 13:46:26 +00:00
merge Platform/Common/DLC
This commit is contained in:
@@ -96,7 +96,7 @@ XCONTENTDEVICEID DLCPack::GetDLCDeviceID() {
|
||||
void DLCPack::addChildPack(DLCPack* childPack) {
|
||||
const std::uint32_t packId = childPack->GetPackId();
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
if (packId > 15) {
|
||||
if (packId < 0 || packId > 15) {
|
||||
__debugbreak();
|
||||
}
|
||||
#endif
|
||||
@@ -362,3 +362,17 @@ bool DLCPack::hasPurchasedFile(DLCManager::EDLCType type,
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void DLCPack::UpdateLanguage() {
|
||||
// find the language file
|
||||
DLCManager::e_DLCType_LocalisationData;
|
||||
DLCFile* file = NULL;
|
||||
|
||||
if (m_files[DLCManager::e_DLCType_LocalisationData].size() > 0) {
|
||||
file = m_files[DLCManager::e_DLCType_LocalisationData][0];
|
||||
DLCLocalisationFile* localisationFile = (DLCLocalisationFile*)getFile(
|
||||
DLCManager::e_DLCType_LocalisationData, L"languages.loc");
|
||||
StringTable* strTable = localisationFile->getStringTable();
|
||||
strTable->ReloadStringTable();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user