System: Rewrite EXE override/loading
Relies on POST=7 as a kernel initialization indicator, instead of patching the BIOS. Fixes EXE loading with OpenBIOS and PS2 BIOS, and fast boot getting baked into save states.
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
#include <array>
|
||||
#include <bitset>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
@ -218,4 +219,7 @@ std::optional<PhysicalMemoryAddress> SearchMemory(PhysicalMemoryAddress start_ad
|
||||
void AddTTYCharacter(char ch);
|
||||
void AddTTYString(std::string_view str);
|
||||
|
||||
/// Injects a PS-EXE into memory at its specified load location. If set_pc is set, execution will be redirected.
|
||||
bool InjectExecutable(std::span<const u8> buffer, bool set_pc, Error* error);
|
||||
|
||||
} // namespace Bus
|
||||
|
||||
Reference in New Issue
Block a user