11 lines
276 B
Python
11 lines
276 B
Python
from config import cfg
|
|
import mame
|
|
|
|
|
|
class emu:
|
|
def __init__(self):
|
|
self.config = cfg[cfg["Emulator"]]
|
|
self.name = cfg["Emulator"]
|
|
if self.config["EmulatorType"].upper() == "MAME":
|
|
self.roms = mame.mameROMs(self.config, cfg["datadir"])
|