This commit is contained in:
2025-11-28 17:48:27 +01:00
parent 6016f1fd8e
commit 6242a7565e
3 changed files with 7 additions and 6 deletions

View File

@@ -163,7 +163,8 @@ CTRFF_API void BCSTM::ReadGotoBeginning(bool use_loop_beg) {
CTRFF_API void BCSTM::ReadBlock(PD::u32 block, PD::u8* ref) {
if (pFile.tellg() > pHeader.FileSize || block >= GetNumBlocks()) {
throw std::runtime_error("BCSTM: Decode block Out of range!");
throw std::runtime_error(std::format(
"BCSTM: Decode block Out of range! ({} > {})", block, GetNumBlocks()));
}
pFile.read(
reinterpret_cast<char*>(ref),