diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-13 11:18:31 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-13 11:18:31 +0100 |
commit | 786d5e2ba1544f29445651f2d2aa52ba0fba9fbd (patch) | |
tree | 579bdd7d7cbfa3f16d0464e7a9b8618593a4379e /src/fancyfmt.rs | |
parent | 2ee0f5c5df9c9a02dc81f9597c28894ee26dddb0 (diff) | |
download | modderbaas-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/fancyfmt.rs')
0 files changed, 0 insertions, 0 deletions