"""Coco 3 Plus deployment paths and native MiSTer remembered-file records.""" NAME = 'coco3plus' GAME_DIR = '/media/fat/games/' + NAME ROM_SLOTS = {4: 'pic-7040-510.bin', 5: 'sp0256-al2.bin'} def startup_records(): # Match MiSTer menu.cpp's 1024-byte, NUL-terminated selPath buffer. records = {} for slot, name in ROM_SLOTS.items(): path = (GAME_DIR + '/' + name).encode('ascii') if len(path) >= 1024: raise ValueError('Startup path does not fit MiSTer selPath') records[f'config/{NAME}.f{slot}'] = path.ljust(1024, b'\0') return records