openMSX
|
#include <RomDatabase.hh>
Classes | |
struct | Entry |
Public Types | |
using | RomDB = std::vector< Entry > |
Public Member Functions | |
RomDatabase (CliComm &cliComm) | |
const RomInfo * | fetchRomInfo (const Sha1Sum &sha1sum) const |
Lookup an entry in the database by sha1sum. | |
const char * | getBufferStart () const |
Definition at line 15 of file RomDatabase.hh.
using openmsx::RomDatabase::RomDB = std::vector<Entry> |
Definition at line 22 of file RomDatabase.hh.
|
explicit |
Definition at line 570 of file RomDatabase.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data(), hash_set< Value, Extractor, Hasher, Equal >::empty(), rapidsax::EXTRA_BUFFER_SPACE, openmsx::FileContext::getPaths(), openmsx::CliComm::printWarning(), openmsx::MemBuffer< T, ALIGNMENT >::resize(), strAppend(), and openmsx::systemFileContext().
Lookup an entry in the database by sha1sum.
Returns nullptr when no corresponding entry was found.
Definition at line 621 of file RomDatabase.cc.
References binary_find(), and openmsx::RomDatabase::Entry::sha1.
Referenced by openmsx::RomFactory::create(), and openmsx::ImGuiManager::paintImGui().
|
inline |
Definition at line 31 of file RomDatabase.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().