rfancella

Daphne Singe.ahk

Jun 8th, 2014
1,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. MEmu = Daphne Singe
  2. MEmuV = v1.14
  3. MURL = http://www.singeengine.com/cms/
  4. MAuthor = djvj
  5. MVersion = 2.0.1
  6. MCRC = 4FF69607
  7. iCRC = 3F762B18
  8. MID = 635038268880264228
  9. MSystem = "American Laser Games","WoW Action Max"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; Rom_Extension should be singe
  13. ; Your framefiles need to exist in the same dir as your Rom_Path, in each game's subfolder, and have a txt extension. The filename should match the name in your xml.
  14.  
  15. ; American Laser Games
  16. ; For example, If you rompath is C:Hyperspin\Games\American Laser Games\, the drugwars game would be found in C:Hyperspin\Games\American Laser Games\maddog\
  17. ; and the framefile would be in C:Hyperspin\Games\American Laser Games\maddog\maddog.txt
  18. ; To change the dir you want to run your games from:
  19. ; 1. Backup all your /daphne/singe/ROMNAME/ROMNAME.singe, cdrom-globals.singe, and service.singe files, most games all three in each romdir
  20. ; 2. Move all the folders in your /daphne/singe/ folder to the new location you want. You should have one folder for each game.
  21. ; 3. Open each ROMNAME.singe, cdrom-globals.singe, and service.singe in notepad and do a find/replace of all instances shown below. For example using an SMB share:
  22. ; Old
  23. ; ("singe/
  24. ; New:
  25. ; ("//BLACKPC/Hyperspin/Games/American Laser Games/
  26. ;
  27. ; If using a local drive, it would look something like this C:/Hyperspin/Games/American Laser Games/
  28.  
  29. ; WoW Action Max
  30. ; Emu_Path should be something like this C:\HyperSpin\Emulators\WoW Action Max\daphne-singe\
  31. ; Rom_Path has to point to where all the m2v video files are kept
  32. ; Rom_Extension should be singe
  33. ; Your framefiles need to exist in the same dir as your rompath and all have txt extensions. The filename should match the name in your xml.
  34. ; To change the dir you want to run your games from:
  35. ; 1. Backup your /daphne/singe/Action Max/Emulator.singe file
  36. ; 2. Move all the files (except Emulator.singe) in your /daphne/singe/Action Max/ folder to the new location you want.
  37. ; 3. Open Emulator.singe in notepad and do a find/replace of all instances shown below. For example using an SMB share:
  38. ; Old
  39. ; "singe/Action Max/
  40. ; New:
  41. ; "//BLACKPC/Hyperspin/Games/WoW Action Max/
  42. ;
  43. ; If using a local drive, it would look something like this C:/Hyperspin/Games/WoW Action Max/
  44. ;
  45. ; There should be 18 instances that need replacing.
  46. ; 4. The only file that should be in your /daphne/singe/Action Max/ dir should be the edited Emulator.singe file (and your backup).
  47. ;
  48. ; If you are upgrading from the old daphne-singe-v1.0 to 1.14, don't forget to copy the old singe dir to the new emu folder, it doesn't come with the contents of that folder that you need.
  49. ;----------------------------------------------------------------------------
  50. StartModule()
  51. BezelGUI()
  52. FadeInStart()
  53.  
  54. settingsFile := modulePath . "\" . moduleName . ".ini"
  55. Fullscreen := IniReadCheck(settingsFile, "settings", "Fullscreen","true",,1)
  56. daphneWidth := IniReadCheck(settingsFile, "settings", "daphneWidth","1024",,1)
  57. daphneHeight := IniReadCheck(settingsFile, "settings", "daphneHeight","768",,1)
  58. ignoreAspect := IniReadCheck(settingsFile, "settings", "ignoreAspect","",,1)
  59.  
  60. if ignoreAspect
  61. {
  62. params:= params . "-ignore_aspect_ratio"
  63. }
  64.  
  65. BezelStart()
  66. ; Emptying variables if they are not set
  67. fullscreen := (If Fullscreen = "true" ? ("-fullscreen_window") : ("")) ; fullscreen_window mode allows guncon and aimtraks to work
  68.  
  69. if bezelPath ; this variable is only filled if bezel is enabled and a valid bezel image is found
  70. {
  71. if !params
  72. {
  73. params:= params . " -ignore_aspect_ratio"
  74. }
  75. daphneWidth := "-x " . Round(bezelScreenWidth) ;bezelScreenWidth variable is defined on the BezelStart function and it gives the desired width that your game screen should have while using this bezel
  76. daphneHeight := "-y " . Round(bezelScreenHeight) ;idem above
  77. } else {
  78. daphneWidth := "-x " . daphneWidth
  79. daphneHeight := "-y " . daphneHeight
  80. }
  81.  
  82. 7z(romPath, romName, romExtension, 7zExtractPath)
  83.  
  84. ; This allows us to send variables, that when empty, are not sent to the Run command
  85. Run(executable . " singe vldp " . params . " " . daphneWidth . A_Space . daphneHeight . A_Space . fullscreen . A_Space . "-framefile """ . romPath . "\" . romName . ".txt""" . A_Space . "-script """ . romPath . "\" . romName . ".singe""", emuPath)
  86.  
  87. WinWait("DAPHNE ahk_class SDL_app")
  88. WinWaitActive("DAPHNE ahk_class SDL_app")
  89.  
  90. BezelDraw()
  91. FadeInExit()
  92. Process("WaitClose", executable)
  93. 7zCleanUp()
  94. FadeOutExit()
  95. ExitModule()
  96.  
  97. HaltEmu:
  98. Send, {P}
  99. Return
  100. RestoreEmu:
  101. Winrestore, AHK_class %EmulatorClass%
  102. Send, {P}
  103. Return
  104.  
  105. CloseProcess:
  106. FadeOutStart()
  107. BezelExit()
  108. WinClose("DAPHNE ahk_class SDL_app")
  109. ;Process, Close, %executable% ; WoW Action Max module used this
  110. Return
Advertisement
Add Comment
Please, Sign In to add comment