diff --git a/Source/Private/Source.cpp b/Source/Private/Source.cpp index 2c5c8fb..782a029 100644 --- a/Source/Private/Source.cpp +++ b/Source/Private/Source.cpp @@ -205,6 +205,12 @@ noesisModel_t* ProcessModel(BYTE* fileBuffer, int bufferLen, int& numMdl, noeRAP bool bIsSkeletonOrigin = true; bool bIsG1MSUnordered = false; //On recent games the skeleton is laid out such as the parent is always read before the child. Not the case in very old G1M. RichMat43 rootCoords; + + //Before doing anything, make sure that Noesis is up to date + if (g_nfn->NPAPI_GetAPIVersion() < NOESIS_PLUGINAPI_VERSION) { + g_nfn->NPAPI_MessagePrompt(L"Please update Noesis!"); + return nullptr; + } void* ctx = rapi->rpgCreateContext(); //Create context int g1mCount = 0; diff --git a/Source/Public/G1M/G1MS.h b/Source/Public/G1M/G1MS.h index e1ed92c..e7f2637 100644 --- a/Source/Public/G1M/G1MS.h +++ b/Source/Public/G1M/G1MS.h @@ -52,7 +52,7 @@ struct G1MS G1MSHeader header = reinterpret_cast*>(buffer + offset); skeletonLayer = header.layer; - if (sectionHeader.chunkVersion > 0x30303330) //No global indices before it seems, need to process differently + if (sectionHeader.chunkVersion > 0x30303332) //No global indices before it seems, need to process differently { //Global and local indices map offset += sizeof(G1MSHeader);