mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-03 06:44:18 +00:00
refactor: move StringTable impl into minecraft/locale and inject locales
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#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)
|
||||
@@ -11,5 +12,7 @@ DLCLocalisationFile::DLCLocalisationFile(const std::string& path)
|
||||
|
||||
void DLCLocalisationFile::addData(std::uint8_t* pbData,
|
||||
std::uint32_t dataBytes) {
|
||||
m_strings = new StringTable(pbData, dataBytes);
|
||||
std::vector<std::string> locales;
|
||||
app.getLocale(locales);
|
||||
m_strings = new StringTable(pbData, dataBytes, locales);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user