mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-13 04:27:15 +00:00
19 lines
572 B
C++
19 lines
572 B
C++
#include "DLCLocalisationFile.h"
|
|
|
|
#include "DLCManager.h"
|
|
#include "app/common/DLC/DLCFile.h"
|
|
#include "app/linux/LinuxGame.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) {
|
|
std::vector<std::string> locales;
|
|
app.getLocale(locales);
|
|
m_strings = new StringTable(pbData, dataBytes, locales);
|
|
}
|