Merge pull request #509 from x1nixmzeng/xex-resources

Rebrand the Xenia window with module metadata
This commit is contained in:
Ben Vanik
2016-01-10 08:55:47 -08:00
16 changed files with 389 additions and 30 deletions

View File

@@ -208,7 +208,7 @@ X_STATUS UserModule::GetSection(const char* name, uint32_t* out_section_data,
return X_STATUS_NOT_FOUND;
}
uint32_t count = (resource_header->size - 4) / 16;
uint32_t count = (resource_header->size - 4) / sizeof(xex2_resource);
for (uint32_t i = 0; i < count; i++) {
auto& res = resource_header->resources[i];
if (std::strncmp(name, res.name, 8) == 0) {