#pragma once #include #include #include #include namespace hex { using Patches = std::map; enum class IPSError { AddressOutOfRange, PatchTooLarge, InvalidPatchHeader, InvalidPatchFormat, MissingEOF }; wolv::util::Expected, IPSError> generateIPSPatch(const Patches &patches); wolv::util::Expected, IPSError> generateIPS32Patch(const Patches &patches); wolv::util::Expected loadIPSPatch(const std::vector &ipsPatch); wolv::util::Expected loadIPS32Patch(const std::vector &ipsPatch); }