BIOS: Automatically detect images, improve selection UI
This commit is contained in:
@ -22,6 +22,11 @@ class GameList;
|
||||
|
||||
struct SystemBootParameters;
|
||||
|
||||
namespace BIOS
|
||||
{
|
||||
struct ImageInfo;
|
||||
}
|
||||
|
||||
class HostInterface
|
||||
{
|
||||
public:
|
||||
@ -116,6 +121,14 @@ public:
|
||||
/// Loads the BIOS image for the specified region.
|
||||
std::optional<std::vector<u8>> GetBIOSImage(ConsoleRegion region);
|
||||
|
||||
/// Searches for a BIOS image for the specified region in the specified directory. If no match is found, the first
|
||||
/// 512KB BIOS image will be used.
|
||||
std::optional<std::vector<u8>> FindBIOSImageInDirectory(ConsoleRegion region, const char* directory);
|
||||
|
||||
/// Returns a list of filenames and descriptions for BIOS images in a directory.
|
||||
std::vector<std::pair<std::string, const BIOS::ImageInfo*>> FindBIOSImagesInDirectory(const char* directory);
|
||||
std::vector<std::pair<std::string, const BIOS::ImageInfo*>> FindBIOSImagesInUserDirectory();
|
||||
|
||||
virtual void OnRunningGameChanged();
|
||||
virtual void OnSystemPerformanceCountersUpdated();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user