MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / QueryByID

Method QueryByID

Source/Interface/RomDB.cpp:507–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507bool IRomDB::QueryByID( const RomID & id, u32 * rom_size, ECicType * cic_type ) const
508{
509 DetailsVec::const_iterator it( std::lower_bound( mRomDetails.begin(), mRomDetails.end(), id, SSortDetailsByID() ) );
510 if( it != mRomDetails.end() && it->ID == id )
511 {
512 *rom_size = it->RomSize;
513 *cic_type = it->CicType;
514 return true;
515 }
516
517 // Can't generate the details, as we have no filename to work with
518 return false;
519}
520
521const char * IRomDB::QueryFilenameFromID( const RomID & id ) const
522{

Callers 1

ROM_GetRomDetailsByIDFunction · 0.80

Calls 1

SSortDetailsByIDClass · 0.85

Tested by

no test coverage detected