mirror of
https://github.com/holub/mame
synced 2025-05-09 15:51:48 +03:00
simplified compatible_with function. no whatsnew.
This commit is contained in:
parent
4350726b12
commit
03db8259c9
@ -126,7 +126,7 @@ public:
|
||||
static const game_driver &driver(int index) { assert(index >= 0 && index < s_driver_count); return *s_drivers_sorted[index]; }
|
||||
static int clone(int index) { return find(driver(index).parent); }
|
||||
static int non_bios_clone(int index) { int result = find(driver(index).parent); return (result != -1 && (driver(result).flags & GAME_IS_BIOS_ROOT) == 0) ? result : -1; }
|
||||
static int compatible_with(int index) { int result = find(driver(index).compatible_with); return (result != -1) ? result : -1; }
|
||||
static int compatible_with(int index) { return find(driver(index).compatible_with); }
|
||||
|
||||
// any item by driver
|
||||
static int clone(const game_driver &driver) { int index = find(driver); assert(index != -1); return clone(index); }
|
||||
|
Loading…
Reference in New Issue
Block a user