fix metadata for mods with .nilmod extension

Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
This commit is contained in:
kumquat-ir 2023-02-19 17:21:53 -05:00
parent 256fc322a8
commit 7973b01e81

View File

@ -37,6 +37,9 @@ void Resource::parseFile()
if (file_name.endsWith(".zip") || file_name.endsWith(".jar")) { if (file_name.endsWith(".zip") || file_name.endsWith(".jar")) {
m_type = ResourceType::ZIPFILE; m_type = ResourceType::ZIPFILE;
file_name.chop(4); file_name.chop(4);
} else if (file_name.endsWith(".nilmod")) {
m_type = ResourceType::ZIPFILE;
file_name.chop(7);
} else if (file_name.endsWith(".litemod")) { } else if (file_name.endsWith(".litemod")) {
m_type = ResourceType::LITEMOD; m_type = ResourceType::LITEMOD;
file_name.chop(8); file_name.chop(8);