aboutsummaryrefslogtreecommitdiff
path: root/src/install.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-13 11:18:31 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-13 11:18:31 +0100
commit786d5e2ba1544f29445651f2d2aa52ba0fba9fbd (patch)
tree579bdd7d7cbfa3f16d0464e7a9b8618593a4379e /src/install.rs
parent2ee0f5c5df9c9a02dc81f9597c28894ee26dddb0 (diff)
downloadmodderbaas-786d5e2ba1544f29445651f2d2aa52ba0fba9fbd.tar.gz
modderbaas-786d5e2ba1544f29445651f2d2aa52ba0fba9fbd.tar.bz2
modderbaas-786d5e2ba1544f29445651f2d2aa52ba0fba9fbd.zip
Properly extract mod name from path for legacy mod
We introduced the change to make MineMod compatible with mods that do not have a mod.conf, but we forgot that read_conf()? will just make the function return early in that case - and the fallback value is never used. This change makes it so that read_conf() is only called when a mod.conf exists, which has the benefit that we get the legacy name resolution for mods without mod.conf, but if there are I/O errors while reading the config, we will still propagate them properly (same as dependencies()).
Diffstat (limited to 'src/install.rs')
0 files changed, 0 insertions, 0 deletions