756d231ff9
The BPS format allows distributing patches that are smaller and that do not contain copyrighted content if data is relocated (unlike non-trivial IPS patches). This is essential for games such as MM3D that have three barely different code revisions. Supporting all three versions would demand an unreasonable amount of work; with BPS patches only one version has to be supported.
18 lines
407 B
C++
18 lines
407 B
C++
// Copyright 2019 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
namespace FileSys::Patch {
|
|
|
|
bool ApplyIpsPatch(const std::vector<u8>& patch, std::vector<u8>& buffer);
|
|
|
|
bool ApplyBpsPatch(const std::vector<u8>& patch, std::vector<u8>& buffer);
|
|
|
|
} // namespace FileSys::Patch
|