1 #ifndef _library__patch__hpp__included__
2 #define _library__patch__hpp__included__
10 std::vector
<char> do_patch_file(const std::vector
<char>& original
, const std::vector
<char>& patch
,
11 int32_t offset
) throw(std::bad_alloc
, std::runtime_error
);
21 rom_patcher() throw(std::bad_alloc
);
25 virtual ~rom_patcher() throw();
29 * Parameter patch: The patch.
30 * Returns: True if my format, false if not.
32 virtual bool identify(const std::vector
<char>& patch
) throw() = 0;
36 virtual void dopatch(std::vector
<char>& out
, const std::vector
<char>& original
,
37 const std::vector
<char>& patch
, int32_t offset
) throw(std::bad_alloc
, std::runtime_error
) = 0;