todos in code

This commit is contained in:
briaguya 2024-02-21 22:30:22 -05:00
parent 2ea32eae30
commit 1f39143b19
3 changed files with 9 additions and 5 deletions

@ -1 +1 @@
Subproject commit be3a87eefc4b0637adf6fff1a3fa5cc9b8265196
Subproject commit aa1091d77c81af6c894e85f9654270632732bf83

View File

@ -1037,10 +1037,13 @@ void InitTTSBank() {
break;
}
auto sceneFile = LUS::Context::GetInstance()->GetResourceManager()->LoadResource("accessibility/texts/scenes" + languageSuffix);
if (sceneFile != nullptr) {
sceneMap = nlohmann::json::parse(*sceneFile->Buffer.get(), nullptr, true, true);
}
// auto sceneFile = LUS::Context::GetInstance()->GetResourceManager()->GetArchiveManager()->LoadFileRaw("accessibility/texts/scenes" + languageSuffix);
// if (sceneFile != nullptr) {
// sceneMap = nlohmann::json::parse(*sceneFile->Buffer.get(), nullptr, true, true);
// }
// use binaryreader as base for rawjsonfactory
// just pass a shared pointer to initdata in here
sceneMap = LUS::Context::GetInstance()->GetResourceManager()->LoadResource("accessibility/texts/scenes" + languageSuffix, initdata);
auto miscFile = LUS::Context::GetInstance()->GetResourceManager()->GetArchiveManager()->LoadFileRaw("accessibility/texts/misc" + languageSuffix);
if (miscFile != nullptr) {

View File

@ -870,6 +870,7 @@ OTRVersion ReadPortVersionFromOTR(std::string otrPath) {
// Use a temporary archive instance to load the otr and read the version file
auto archive = LUS::OtrArchive(otrPath);
if (archive.Open()) {
// for now just make a portVersion resource
auto t = archive.LoadFileRaw("portVersion");
if (t != nullptr && t->IsLoaded) {
auto stream = std::make_shared<LUS::MemoryStream>(t->Buffer->data(), t->Buffer->size());