| 505 | } |
| 506 | |
| 507 | bool 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 | |
| 521 | const char * IRomDB::QueryFilenameFromID( const RomID & id ) const |
| 522 | { |
no test coverage detected