2024-08-08 16:24:18 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2024-08-30 17:33:22 +08:00
|
|
|
|
|
|
|
|
|
public class UniMAMESetting
|
2024-08-08 16:24:18 +08:00
|
|
|
|
{
|
2024-08-30 17:33:22 +08:00
|
|
|
|
public static UniMAMESetting instance
|
2024-08-08 16:24:18 +08:00
|
|
|
|
{
|
2024-08-30 17:33:22 +08:00
|
|
|
|
get
|
2024-08-08 16:24:18 +08:00
|
|
|
|
{
|
2024-08-30 17:33:22 +08:00
|
|
|
|
if (mInstance == null)
|
|
|
|
|
mInstance = new UniMAMESetting();
|
|
|
|
|
return mInstance;
|
2024-08-08 16:24:18 +08:00
|
|
|
|
}
|
2024-08-30 17:33:22 +08:00
|
|
|
|
}
|
|
|
|
|
private static UniMAMESetting mInstance;
|
2024-08-08 16:24:18 +08:00
|
|
|
|
|
2024-08-30 17:33:22 +08:00
|
|
|
|
const string KEY_LASTGAMEROM = "MAME_LASTGAMEROM";
|
2024-08-08 16:24:18 +08:00
|
|
|
|
|
2024-08-30 17:33:22 +08:00
|
|
|
|
public string LastGameRom
|
|
|
|
|
{
|
|
|
|
|
get
|
2024-08-08 16:24:18 +08:00
|
|
|
|
{
|
2024-08-30 17:33:22 +08:00
|
|
|
|
if (PlayerPrefs.HasKey(KEY_LASTGAMEROM))
|
|
|
|
|
return PlayerPrefs.GetString(KEY_LASTGAMEROM);
|
|
|
|
|
return string.Empty;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
PlayerPrefs.SetString(KEY_LASTGAMEROM, value);
|
2024-08-08 16:24:18 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-08-30 17:33:22 +08:00
|
|
|
|
|
|
|
|
|
}
|