Android: Add BIOS importer
This commit is contained in:
1 parent
423054e8ac
commit
13a9411b07
6 files changed
+126
-7
No files matched your search
@@ -334,6 +334,12 @@ HostInterface::FindBIOSImagesInDirectory(const char* directory)
|
||||
return results;
|
||||
}
|
||||
|
||||
bool HostInterface::HasAnyBIOSImages()
|
||||
{
|
||||
const std::string dir = GetBIOSDirectory();
|
||||
return (FindBIOSImageInDirectory(ConsoleRegion::NTSC_U, dir.c_str()).has_value());
|
||||
}
|
||||
|
||||
bool HostInterface::LoadState(const char* filename)
|
||||
{
|
||||
std::unique_ptr<ByteStream> stream = FileSystem::OpenFile(filename, BYTESTREAM_OPEN_READ | BYTESTREAM_OPEN_STREAMED);
|
||||
|
||||
@@ -22,8 +22,7 @@ class GameList;
|
||||
|
||||
struct SystemBootParameters;
|
||||
|
||||
namespace BIOS
|
||||
{
|
||||
namespace BIOS {
|
||||
struct ImageInfo;
|
||||
}
|
||||
|
||||
@@ -131,6 +130,9 @@ public:
|
||||
/// 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);
|
||||
|
||||
/// Returns true if any BIOS images are found in the configured BIOS directory.
|
||||
bool HasAnyBIOSImages();
|
||||
|
||||
virtual void OnRunningGameChanged();
|
||||
virtual void OnSystemPerformanceCountersUpdated();
|
||||
|
||||
|
||||
Reference in new issue
Block a user