diff options
author | kumquat-ir <66188216+kumquat-ir@users.noreply.github.com> | 2023-02-19 17:21:53 -0500 |
---|---|---|
committer | kumquat-ir <66188216+kumquat-ir@users.noreply.github.com> | 2023-02-19 17:21:53 -0500 |
commit | 7973b01e81af29f0de7c6873ef119f15a2fb0791 (patch) | |
tree | 48c72850df3e1c6e22ec38c9de28a6e2a3ae97ca /launcher/minecraft | |
parent | 256fc322a8decfd113ea73bf61ec15ce31a6f474 (diff) | |
download | PrismLauncher-7973b01e81af29f0de7c6873ef119f15a2fb0791.tar.gz PrismLauncher-7973b01e81af29f0de7c6873ef119f15a2fb0791.tar.bz2 PrismLauncher-7973b01e81af29f0de7c6873ef119f15a2fb0791.zip |
fix metadata for mods with `.nilmod` extension
Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft')
-rw-r--r-- | launcher/minecraft/mod/Resource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/Resource.cpp b/launcher/minecraft/mod/Resource.cpp index 7c572d92..0d35d755 100644 --- a/launcher/minecraft/mod/Resource.cpp +++ b/launcher/minecraft/mod/Resource.cpp @@ -37,6 +37,9 @@ void Resource::parseFile() if (file_name.endsWith(".zip") || file_name.endsWith(".jar")) { m_type = ResourceType::ZIPFILE; file_name.chop(4); + } else if (file_name.endsWith(".nilmod")) { + m_type = ResourceType::ZIPFILE; + file_name.chop(7); } else if (file_name.endsWith(".litemod")) { m_type = ResourceType::LITEMOD; file_name.chop(8); |