LoadGame接口提到AppEmu

This commit is contained in:
ALIENJACK\alien 2024-07-18 16:24:14 +08:00
parent 27479341c7
commit 31f3182e35
2 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,13 @@ namespace AxibugEmuOnline.Client.Manager
new NesJoyController(EnumJoyIndex.P2), new NesJoyController(EnumJoyIndex.P2),
new NesJoyController(EnumJoyIndex.P3), new NesJoyController(EnumJoyIndex.P3),
new NesJoyController(EnumJoyIndex.P4)); 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() public void Dispose()

View File

@ -18,6 +18,8 @@ namespace AxibugEmuOnline.Client
private void Start() private void Start()
{ {
m_appEnum.Init(VideoCom, AudioCom, InputManager); m_appEnum.Init(VideoCom, AudioCom, InputManager);
m_appEnum.LoadGame("kirby.nes");
} }
private void OnDestroy() private void OnDestroy()