patch_engine: Apply patch when APP_VER is unknown

This commit is contained in:
Megamouse 2020-09-21 11:04:11 +02:00
parent 75c3fdcb6f
commit 511e9920c2
3 changed files with 3 additions and 10 deletions

View file

@ -548,11 +548,6 @@ bool patch_engine::read_patch_node(patch_info& info, YAML::Node node, const YAML
return is_valid;
}
void patch_engine::append(const std::string& patch)
{
load(m_map, patch);
}
void patch_engine::append_global_patches()
{
// Legacy patch.yml

View file

@ -138,9 +138,6 @@ public:
std::size_t apply_with_ls_check(const std::string& name, u8* dst, u32 filesz, u32 ls_addr);
private:
// Load from file and append to member patches map
void append(const std::string& path);
// Internal: Apply patch (returns the number of entries applied)
template <bool check_local_storage>
std::size_t apply_patch(const std::string& name, u8* dst, u32 filesz, u32 ls_addr);