mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-28 16:51:56 -05:00
todos in code
This commit is contained in:
parent
2ea32eae30
commit
1f39143b19
@ -1 +1 @@
|
||||
Subproject commit be3a87eefc4b0637adf6fff1a3fa5cc9b8265196
|
||||
Subproject commit aa1091d77c81af6c894e85f9654270632732bf83
|
@ -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) {
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user