improve proj

- remove VTImage.hpp to make sure stb image do not need external project to ref.
- finish CKStateChunk write part. add some compatibilty code.
- add debugger pause function
- add filename getter for CKPathManager.
This commit is contained in:
2023-09-24 20:56:23 +08:00
parent 6870fca911
commit b2d0b743cb
15 changed files with 96 additions and 52 deletions

View File

@ -149,7 +149,7 @@ namespace LibCmo::CK2 {
if (id == nullptr) return false;
// get basic value
CKINT gotten_id = 0;
CKDWORD gotten_id = 0;
if (!this->ReadStruct(gotten_id)) return false;
// different strategy according to chunk ver
@ -162,7 +162,7 @@ namespace LibCmo::CK2 {
return true;
}
// if it is positive, return corresponding value
if (gotten_id >= 0) {
if ((gotten_id & 0x80000000) == 0) {
*id = this->m_BindFile->GetFileObjectByIndex(gotten_id)->CreatedObjectId;
return true;
}