mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 07:27:59 -05:00
i love clang sometimes
This commit is contained in:
parent
37e5e9f00b
commit
693fadd9bc
1 changed files with 2 additions and 0 deletions
|
@ -416,6 +416,8 @@ Result<> ModMetadata::Impl::addSpecialFiles(file::Unzip& unzip) {
|
|||
// unzip known MD files
|
||||
for (auto& [file, target] : this->getSpecialFiles()) {
|
||||
if (unzip.hasEntry(file)) {
|
||||
// reference to local binding 'file' declared in enclosing function
|
||||
std::string_view file(file);
|
||||
GEODE_UNWRAP_INTO(auto data, unzip.extract(file).mapErr([&](auto const& err) {
|
||||
return fmt::format("Unable to extract \"{}\": {}", file, err);
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue