mame.fixed

This commit is contained in:
sin365 2025-01-24 16:07:04 +08:00
parent 7085cdaa2c
commit 9abbce930f
3 changed files with 5 additions and 1 deletions

View File

@ -164,8 +164,11 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
IMPORTENT: {fileID: 4747871931704546037, guid: e6f56a07c0ec38946a0257a1e0b8926d, type: 3} IMPORTENT: {fileID: 4747871931704546037, guid: e6f56a07c0ec38946a0257a1e0b8926d, type: 3}
bTest: 0 bTestSkipWebApiToConServer: 0
mTestSrvIP: 192.168.0.47 mTestSrvIP: 192.168.0.47
bUseLocalWebApi: 0
mLocalWebApi: http://localhost:5051
bEditorUUID: 0
--- !u!1 &1498586261 --- !u!1 &1498586261
GameObject: GameObject:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3

View File

@ -125,6 +125,7 @@ public class UMAME : MonoBehaviour, IEmuCore
#endregion #endregion
bool LoadGame(string loadRom, bool bReplay = false) bool LoadGame(string loadRom, bool bReplay = false)
{ {
emu.ResetRomRoot(RomPath);
//Application.targetFrameRate = 60; //Application.targetFrameRate = 60;
mReplayWriter = new ReplayWriter(mChangeRomName, "fuck", ReplayData.ReplayFormat.FM32IP64, Encoding.UTF8); mReplayWriter = new ReplayWriter(mChangeRomName, "fuck", ReplayData.ReplayFormat.FM32IP64, Encoding.UTF8);
mChangeRomName = loadRom; mChangeRomName = loadRom;