|
|
@ -52,7 +52,7 @@ function BinaryPatch:test()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
function BinaryPatch:apply()
|
|
|
|
function BinaryPatch:apply()
|
|
|
|
if not self:test() then
|
|
|
|
if not self:test() then
|
|
|
|
error(string.format("pre-data for binary patch does not match expected")
|
|
|
|
error(string.format("pre-data for binary patch does not match expected"))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local post_buf=df.new('uint8_t',#self.pre_data)
|
|
|
|
local post_buf=df.new('uint8_t',#self.pre_data)
|
|
|
|