This commit is contained in:
@@ -115,7 +115,7 @@ void AngelScriptResolver::RegisterTypes() {
|
||||
BasicScriptClass::Register(_engine);
|
||||
}
|
||||
|
||||
void AngelScriptResolver::MessageCallback(const asSMessageInfo* msg, void* param) {
|
||||
void AngelScriptResolver::MessageCallback(const asSMessageInfo* msg, void*) {
|
||||
const char* type = "ERR ";
|
||||
if (msg->type == asMSGTYPE_WARNING)
|
||||
type = "WARN";
|
||||
@@ -265,7 +265,7 @@ void AngelScriptResolver::LoadByteCodeFromFile(const char* file) {
|
||||
// Begin loading the type database
|
||||
auto types = stream->ReadTypes();
|
||||
|
||||
InitializeByteCode(stream, types);
|
||||
InitializeByteCode(types);
|
||||
Assert(fclose(rFile) == 0);
|
||||
delete stream;
|
||||
}
|
||||
@@ -297,11 +297,10 @@ void AngelScriptResolver::LoadByteCodeFromMemory(uint8_t* byte, size_t size) {
|
||||
// Begin loading the type database
|
||||
auto types = stream->ReadTypes();
|
||||
|
||||
InitializeByteCode(stream, types);
|
||||
InitializeByteCode(types);
|
||||
delete stream;
|
||||
}
|
||||
void AngelScriptResolver::InitializeByteCode(
|
||||
asIBinaryStream* stream,
|
||||
const ArbUt::Dictionary<ScriptCategory, ArbUt::Dictionary<ArbUt::StringView, uint32_t>>& types) {
|
||||
|
||||
auto typeCount = _mainModule->GetObjectTypeCount();
|
||||
|
||||
Reference in New Issue
Block a user