BIOS: Add detection of OpenBIOS
This commit is contained in:
@ -55,17 +55,15 @@ struct PSEXEHeader
|
||||
static_assert(sizeof(PSEXEHeader) == 0x800);
|
||||
#pragma pack(pop)
|
||||
|
||||
Hash GetHash(const Image& image);
|
||||
std::optional<Image> LoadImageFromFile(const char* filename);
|
||||
std::optional<Hash> GetHashForFile(const char* filename);
|
||||
|
||||
const ImageInfo* GetImageInfoForHash(const Hash& hash);
|
||||
bool IsValidHashForRegion(ConsoleRegion region, const Hash& hash);
|
||||
const ImageInfo* GetInfoForImage(const Image& image);
|
||||
bool IsValidBIOSForRegion(ConsoleRegion console_region, ConsoleRegion bios_region);
|
||||
|
||||
void PatchBIOS(u8* image, u32 image_size, u32 address, u32 value, u32 mask = UINT32_C(0xFFFFFFFF));
|
||||
|
||||
bool PatchBIOSEnableTTY(u8* image, u32 image_size, const Hash& hash);
|
||||
bool PatchBIOSFastBoot(u8* image, u32 image_size, const Hash& hash);
|
||||
bool PatchBIOSEnableTTY(u8* image, u32 image_size);
|
||||
bool PatchBIOSFastBoot(u8* image, u32 image_size);
|
||||
bool PatchBIOSForEXE(u8* image, u32 image_size, u32 r_pc, u32 r_gp, u32 r_sp, u32 r_fp);
|
||||
|
||||
bool IsValidPSExeHeader(const PSEXEHeader& header, u32 file_size);
|
||||
|
||||
Reference in New Issue
Block a user