Cleanup cmake file.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-07-18 12:42:54 +02:00
parent 41b15dc693
commit dc3630b171
31 changed files with 141 additions and 69 deletions

View File

@@ -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();