Advertisement
djvj

micro64 module

Nov 18th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. MEmu = Micro64
  2. MEmuV = v1.00.2013.05.11 Build 714
  3. MURL = http://micro64.de/
  4. MAuthor = djvj
  5. MVersion = 1.0.0
  6. MCRC =
  7. MID =
  8. MSystem = "Commodore 64"
  9. ;----------------------------------------------------------------------------
  10. ; Notes:
  11. ; Press F9 to edit the emu's settings
  12. ; Emu stores it's settings in C:\Users\USERNAME\AppData\Roaming\micro64
  13. ;----------------------------------------------------------------------------
  14. StartModule()
  15. BezelGUI()
  16. FadeInStart()
  17.  
  18. settingsFile := modulePath . "\" . moduleName . ".ini"
  19. fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
  20.  
  21. hideEmuObj := Object("[micro64] ahk_class SDL_app",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
  22. 7z(romPath, romName, romExtension, 7zExtractPath)
  23.  
  24. BezelStart()
  25. HideEmuStart() ; This fully ensures windows are completely hidden even faster than winwait
  26.  
  27. fullscreenCLI := If fullscreen = "true" ? " +fullscreen" : " -fullscreen"
  28.  
  29. Run(executable . " """ . romPath . "\" . romName . romExtension . """" . fullscreenCLI, emuPath)
  30.  
  31. WinWait("[micro64] ahk_class SDL_app")
  32. WinWaitActive("[micro64] ahk_class SDL_app")
  33.  
  34. BezelDraw()
  35. HideEmuEnd()
  36. FadeInExit()
  37. Process("WaitClose", executable)
  38. 7zCleanUp()
  39. BezelExit()
  40. FadeOutExit()
  41. ExitModule()
  42.  
  43.  
  44. HaltEmu:
  45. If (fullscreen = "true")
  46. Send !{Enter}
  47. Return
  48. RestoreEmu:
  49. If (fullscreen = "true")
  50. Send !{Enter}
  51. Return
  52.  
  53. CloseProcess:
  54. FadeOutStart()
  55. WinClose("[micro64] ahk_class SDL_app")
  56. Return
  57.  
  58.  
  59. ; Available CLI (for reference)
  60. ; [filename] = Load file from filename
  61. ; /regext = Register file extentions into the system
  62. ; +sdlaudio = Force SDL/SDL2 audio
  63. ; +directsound = Force DirectX/DirectSound audio
  64. ; -mouse = Disable mouse
  65. ; +mouse = Enable mouse
  66. ; -opengl = Disable OpenGL
  67. ; +opengl = Enable OpenGL
  68. ; -fullscreen = Disable full screen
  69. ; +fullscreen = Enable full screen
  70. ; -pal = Force disable PAL emulation
  71. ; -singletask = Allow multithreading on multiple CPU cores
  72. ; +singletask = Disallow multithreading on multiple CPU cores
  73. ; -sleep = Disable sleep hack
  74. ; +sleep = Enable sleep hack
  75. ; -stablespeedhack = Disable stable speed hack
  76. ; +stablespeedhack = Enable stable speed hack
  77. ; -extrastablespeedhack = Disable extra stable speed hack
  78. ; +extrastablespeedhack = Enable extra stable speed hack
  79. ; -cpusim = Enable CPU emulation
  80. ; +cpusim = Enable original 6502/6510 chip-DIE CPU switch-level simulation (damn ssssllloooowwww!)
  81. ; +logcycles[=x] = log cycles (from at cycle number x)
  82. ; +extops = extended opcodes
  83. ; +audiowav[=x] = write WAV (to file X)
  84. ; +hardsid[=x] = Use HardSID (with device ID x)
  85. ; +catweaselmk3[=x] = Use Catweasel MK3 (with device ID x)
  86. ; +parsid[=x] = Use ParSID (with device ID x)
  87. ; +numdrives=x = Set count of active 1541 drives
  88. ; +newd64 [filename.d64]
  89. ; +g642d64 [input.g64] [output.d64]
  90. ; +d642g64 [input.d64] [output.g64]
  91. ; +g642p64 [input.g64] [output.p64]
  92. ; +p642g64 [input.p64] [output.g64]
  93. ; +fdi2p64 [input.fdi] [output.p64]
  94. ; +p642fdi [input.p64] [output.fdi]
  95. ; +nib2g64 [input.nib] [output.g64]
  96. ; +dumpfdi [input.fdi] [output.log]
  97. ; +dumpp64 [input.p64] [output.log]
  98. ; +dumpp64halftrack [input.p64] [output.log] ([halftrack])
  99. ; +kryofluxstream2p64 [inputpathprefix] [output.p64] ([side(0/1)]) ([rpm(180-360)]) ([doublewidetrack(0/1)])
  100. ; +kryofluxstream2fdi [inputpathprefix] [output.fdi] ([side(0/1)]) ([rpm(180-360)]) ([doublewidetrack(0/1)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement