mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-29 01:03:35 +00:00
18 lines
550 B
C++
18 lines
550 B
C++
#include "DLCLocalisationFile.h"
|
|
|
|
#include "DLCManager.h"
|
|
#include "app/common/DLC/DLCFile.h"
|
|
#include "app/common/Game.h"
|
|
#include "minecraft/locale/StringTable.h"
|
|
|
|
DLCLocalisationFile::DLCLocalisationFile(const std::string& path)
|
|
: DLCFile(DLCManager::e_DLCType_LocalisationData, path) {
|
|
m_strings = nullptr;
|
|
}
|
|
|
|
void DLCLocalisationFile::addData(std::uint8_t* pbData,
|
|
std::uint32_t dataBytes) {
|
|
m_strings = new StringTable(
|
|
std::span<const std::uint8_t>(pbData, dataBytes), app.getLocale());
|
|
}
|