diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs index 4eb62ed..aee4b3c 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/AppEmu.cs @@ -19,7 +19,13 @@ namespace AxibugEmuOnline.Client.Manager new NesJoyController(EnumJoyIndex.P2), new NesJoyController(EnumJoyIndex.P3), new NesJoyController(EnumJoyIndex.P4)); - NesEmu.LoadGame("kirby.nes", out var successed, true); + + } + + public bool LoadGame(string romName) + { + NesEmu.LoadGame(romName, out var successed, true); + return successed; } public void Dispose() diff --git a/AxibugEmuOnline.Client/Assets/Script/NesCoreProxy.cs b/AxibugEmuOnline.Client/Assets/Script/NesCoreProxy.cs index de328eb..122b411 100644 --- a/AxibugEmuOnline.Client/Assets/Script/NesCoreProxy.cs +++ b/AxibugEmuOnline.Client/Assets/Script/NesCoreProxy.cs @@ -18,6 +18,8 @@ namespace AxibugEmuOnline.Client private void Start() { m_appEnum.Init(VideoCom, AudioCom, InputManager); + + m_appEnum.LoadGame("kirby.nes"); } private void OnDestroy()