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