2024-08-30 17:33:22 +08:00
|
|
|
using MAME.Core;
|
2024-07-30 17:38:24 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class UniResources : IResources
|
|
|
|
{
|
2024-08-07 18:23:55 +08:00
|
|
|
const string ResourceRoot = "MAME/emu/";
|
2024-07-30 17:38:24 +08:00
|
|
|
|
|
|
|
public byte[] mcu => Resources.Load<TextAsset>(ResourceRoot + "cus64-64a1.mcu").bytes;
|
|
|
|
|
|
|
|
public byte[] sfix => Resources.Load<TextAsset>(ResourceRoot + "sfix.sfix").bytes;
|
|
|
|
|
|
|
|
public byte[] _000_lo => Resources.Load<TextAsset>(ResourceRoot + "000-lo.lo").bytes;
|
|
|
|
|
|
|
|
public byte[] sm1 => Resources.Load<TextAsset>(ResourceRoot + "sm1.sm1").bytes;
|
|
|
|
|
|
|
|
public byte[] mainbios => Resources.Load<TextAsset>(ResourceRoot + "neogeo_mainbios.rom").bytes;
|
|
|
|
|
|
|
|
public byte[] pgmmainbios => Resources.Load<TextAsset>(ResourceRoot + "pgm_mainbios.rom").bytes;
|
|
|
|
|
|
|
|
public byte[] pgmvideobios => Resources.Load<TextAsset>(ResourceRoot + "pgm_t01s.rom").bytes;
|
|
|
|
|
|
|
|
public byte[] pgmaudiobios => Resources.Load<TextAsset>(ResourceRoot + "pgm_m01s.rom").bytes;
|
|
|
|
|
|
|
|
public byte[] _1 => Resources.Load<TextAsset>(ResourceRoot + "1.png").bytes;
|
|
|
|
|
|
|
|
public byte[] readme => Resources.Load<TextAsset>(ResourceRoot + "readme.txt").bytes;
|
|
|
|
|
|
|
|
public string mame => Resources.Load<TextAsset>(ResourceRoot + "mame.xml").text;//ok
|
|
|
|
}
|