2024-07-18 15:14:45 +08:00
|
|
|
using AxibugEmuOnline.Client.Input;
|
2024-07-04 10:41:48 +08:00
|
|
|
using AxibugEmuOnline.Client.Manager;
|
2024-07-04 21:06:41 +08:00
|
|
|
using MyNes.Core;
|
|
|
|
using System.IO;
|
2024-07-04 10:41:48 +08:00
|
|
|
using UnityEngine;
|
2024-07-04 21:06:41 +08:00
|
|
|
using UnityEngine.UI;
|
2024-07-04 10:41:48 +08:00
|
|
|
|
|
|
|
namespace AxibugEmuOnline.Client
|
|
|
|
{
|
|
|
|
public class NesCoreProxy : MonoBehaviour
|
|
|
|
{
|
2024-07-10 15:02:14 +08:00
|
|
|
public UguiVideoProvider VideoCom;
|
|
|
|
public AudioProvider AudioCom;
|
2024-07-18 15:14:45 +08:00
|
|
|
public InputManager InputManager;
|
2024-07-04 21:06:41 +08:00
|
|
|
|
2024-07-04 10:41:48 +08:00
|
|
|
private AppEmu m_appEnum = new AppEmu();
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
{
|
2024-07-18 15:14:45 +08:00
|
|
|
m_appEnum.Init(VideoCom, AudioCom, InputManager);
|
2024-07-18 16:24:14 +08:00
|
|
|
|
|
|
|
m_appEnum.LoadGame("kirby.nes");
|
2024-07-04 21:06:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
private void OnDestroy()
|
|
|
|
{
|
|
|
|
m_appEnum.Dispose();
|
|
|
|
}
|
2024-07-04 10:41:48 +08:00
|
|
|
}
|
|
|
|
}
|