Fix load_symbol ignoring source when a previous source has already been loaded #83
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "bigjango13/minecraft-pi-reborn:sounds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This allows for some neat things, like overloading sounds without having to replace the entire file.
@ -18,1 +16,3 @@
binary = LIEF::ELF::Parser::parse(source);
static std::unordered_map<std::string, std::unique_ptr<LIEF::ELF::Binary>> sources = {};
auto pos = sources.find(std::string(source));
if (pos == sources.end()) {
Why not do?
I didn't know about
.count
until now. Should I change it to that?Yeah, it's what the rest of Reborn uses.
Is it actually better? 🤷
But consistency is good.
Done 👍