mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Detect Compression Type and Improve Yaml Structure (#21)
* Auto detect mio0 * Altered decompressor * Fix bug * Bug fix * fix * debugging * fix debug * Remove logging * Fix spacing * node change * Cleanup * Track compression offset using global var * Implementation * Renames * Simplification * Fixes * Fix debugging output * yaml config segments uses array style * Fix to_hex zero fill * Bug fixes --------- Co-authored-by: = <=>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
uint32_t Torch::translate(const uint32_t offset) {
|
||||
if(SEGMENT_NUMBER(offset) > 0x01) {
|
||||
auto segment = SEGMENT_NUMBER(offset);
|
||||
const auto addr = Companion::Instance->GetSegmentedAddr(segment);
|
||||
const auto addr = Companion::Instance->GetFileOffsetFromSegmentedAddr(segment);
|
||||
if(!addr.has_value()) {
|
||||
SPDLOG_ERROR("Segment data missing from game config\nPlease add an entry for segment {}", segment);
|
||||
throw std::runtime_error("Failed to find offset");
|
||||
|
||||
Reference in New Issue
Block a user