forked from sin365/AxibugEmuOnline
LoadGame接口提到AppEmu
This commit is contained in:
parent
27479341c7
commit
31f3182e35
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user