Advertisement
djvj

Untitled

Aug 28th, 2015
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.81 KB | None | 0 0
  1. MEmu = MAME
  2. MEmuV = v0.163
  3. MURL = http://www.mame.net/
  4. MAuthor = djvj,faahrev,brolly,Tomkun
  5. MVersion = 2.2.0
  6. MCRC = 978DED94
  7. iCRC = 3142EC89
  8. mId = 635746812784197028
  9. MSystem = "AAE","Aamber Pegasus","Acorn Electron","Amstrad GX4000","APF Imagination Machine","Apple IIGS","Applied Technology MicroBee","Atari 8-bit","Atari 2600","Atari 5200","Atari 7800","Atari Classics","Atari Jaguar","Atari Lynx","Bally Astrocade","Bandai WonderSwan","Bandai WonderSwan Color","Capcom","Capcom Classics","Capcom Play System","Capcom Play System II","Capcom Play System III","Casio PV-1000","Casio PV-2000","Cave","Coleco ADAM","ColecoVision","Creatronic Mega Duck","Data East Classics","Emerson Arcadia 2001","Entex Adventure Vision","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Funtech Super Acan","GCE Vectrex","Hartung Game Master","Interton VC 4000","JungleTac Sport Vii","Konami Classics","LaserDisc","Magnavox Odyssey 2","MAME","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","Midway Classics","Namco Classics","Namco System 22","NEC PC Engine","NEC PC Engine-CD","NEC SuperGrafx","NEC TurboGrafx-16","NEC TurboGrafx-CD","Nintendo 64","Nintendo Arcade Systems","Nintendo Classics","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Advance","Nintendo Game Boy Color","Nintendo Super Game Boy","Nintendo Virtual Boy","Philips CD-i","RCA Studio II","Sega 32X","Sega CD","Sega Classics","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Model 1","Sega SG-1000","Sega ST-V","Sinclair ZX81","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo AES","SNK Neo Geo CD","SNK Neo Geo MVS","SNK Neo Geo Pocket","SNK Neo Geo Pocket Color","Sony PlayStation","Sony PocketStation","Sord M5","Super Nintendo Entertainment System","Taito Classics","Tandy TRS-80 Color Computer","Texas Instruments TI 99-4A","Tiger Game.com","Tomy Tutor","VTech CreatiVision","Watara Supervision"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; This module now includes everything from the legacy MAME and MESS modules, but combined to match the merge of the 2 emulators that occured on version 0.162.
  13. ; For Arcade systems (MAME), set Skip Checks to "Rom Only"
  14. ; For all other systems (MESS), set Skip Checks to "False" and make sure you include the proper extensions for the MAME emulator in RLUI
  15. ;
  16. ; Exit fade will only work correctly if you don't have Esc, the default MAME exit key, as your exit key. If you use Esc, turn off the ExitScreen
  17. ; This module will set your rom paths on the fly via CLI, but you must make sure the RLUI module setting for this module "MAME_BIOS_Path" is correctly set. It defaults to your roms subfolder where MAME.exe is found.
  18. ; This module assumes you have bios zip in your MAME "roms" directory, which might be different than your actual roms directory, for each system you need this module for. All tested systems listed below
  19. ; If MAME has a problem reading the bios zips, try archiving them with "no compression"
  20. ; This site can help a ton with details for the various systems supported: http://www.progettoemma.net/mess/index.html
  21. ; You may get a black screen or MAME may close w/o notice if you do not have a bios rom for your system when one is needed.
  22. ; If you use bezel, it is recommended to set the module bezel mode to normal, and go to your MAME.ini file, on your emulator folder, and choose these options: artwork_crop 1, use_backdrops 1, use_overlays 1, use_bezels 0
  23. ;
  24. ; Command Line Options - http://easyemu.mameworld.info/mameguide/mameguide-options.html
  25. ; High Scores DO NOT SAVE when cheats are enabled!
  26. ; HLSL Documentation: http://mamedev.org/source/docs/hlsl.txt.html
  27. ; If you use MAME for AAE, create a vector.ini in mame's ini subfolder and paste these HLSL settings in there: http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=309968&page=&view=&sb=5&o=&vc=1
  28. ;
  29. ; Following systems require a BIOS zip with their roms inside, placed in the "MAME\Roms\" directory:
  30. ; Amstrad GX4000 - N/A
  31. ; APF Imagination Machine - apfimag (tape games), apfm1000 (cart games)
  32. ; Apple IIGS - apple2gs
  33. ; Atari 800 - a800
  34. ; Atari 5200 - a5200
  35. ; Atari 7800 - a7800
  36. ; Atari Jaguar - jaguar
  37. ; Atari Lynx - lynx
  38. ; Bally Astrocade - astrocde
  39. ; Bandai WonderSwan - N/A
  40. ; Bandai WonderSwan Color - N/A
  41. ; Casio PV-2000 - pv2000
  42. ; Coleco ADAM - adam, adam_ddp, adam_fdc, adam_kb, adam_prn, adam_spi
  43. ; ColecoVision - coleco
  44. ; Creatronic Mega Duck - N/A
  45. ; Emerson Arcadia 2001 - N/A
  46. ; Entex Adventure Vision - advision
  47. ; Epoch Game Pocket Computer - gamepock
  48. ; Epoch Super Cassette Vision - scv
  49. ; Exidy Sorcerer - sorcerer
  50. ; Fairchild Channel F - channelf
  51. ; Funtech Super ACan - supracan
  52. ; GCE Vectrex - vextrex
  53. ; Hartung Game Master - gmaster
  54. ; Interton VC 4000 - vc4000
  55. ; JungleTac Sport Vii - vii
  56. ; Magnavox Odyssey 2 - odyssey2
  57. ; Matra & Hachette Alice - alice32
  58. ; Mattel Aquarius - aquarius
  59. ; Mattel Intellivision - intv ("exec.bin" [8,192 bytes] & "grom.bin" [2,048 bytes])
  60. ; MGT Sam Coupe - samcoupe
  61. ; NEC PC Engine - N/A
  62. ; NEC PC Engine-CD - N/A
  63. ; NEC SuperGrafx - N/A
  64. ; NEC TurboGrafx-16 - N/A
  65. ; NEC TurboGrafx-CD - "Super CD-ROM2 System V3.01 (U).pce" [262,144 bytes] (placed in the roms subfolder in the emuPath)
  66. ; Nintendo 64 - n64
  67. ; Nintendo Entertainment System - N/A
  68. ; Nintendo Famicom Disk System - famicom
  69. ; Nintendo Game Boy - gameboy
  70. ; Nintendo Game Boy Advance - gba
  71. ; Nintendo Game Boy Color - gbcolor
  72. ; Nintendo Super Game Boy Color - supergb
  73. ; Nintendo Virtual Boy - N/A
  74. ; Philips CD-i - the cdimono1
  75. ; RCA Studio II - studio2
  76. ; Sega 32X - 32x
  77. ; Sega CD - segacd, megacd, megacd2j (megacd2j seems to be more compatible over megacdj)
  78. ; Sega Game Gear - gamegear
  79. ; Sega Genesis - N/A
  80. ; Sega Master System - sms
  81. ; Sega Mega Drive - N/A
  82. ; Sinclair ZX81 - zx81
  83. ; SNK Neo Geo AES - aes
  84. ; SNK Neo Geo CD - neocd
  85. ; SNK Neo Geo Pocket - ngp
  86. ; SNK Neo Geo Pocket Color - ngpc
  87. ; Sony PlayStation - psa, pse, psj, psu
  88. ; Sony PocketStation - pockstat
  89. ; Sord M5 - m5
  90. ; Super Nintendo Entertainment System - snes
  91. ; Tandy TRS-80 Color Computer - coco3
  92. ; Texas Instruments TI 99-4A - ti99_4a
  93. ; Tiger Game.com - gamecom
  94. ; Tomy Tutor - tutor
  95. ; VTech CreatiVision - crvision
  96. ; Watara Supervision - N/A
  97. ;
  98. ; Custom Configuration Files:
  99. ; If you want to use custom configuration files (.cfg files) for some games you will need to store them inside your MAME cfg folder using the following structure:
  100. ; cfg\mame_system_name\database_rom_name\mame_system_name.cfg
  101. ; An example of a game that requires specific settings is ICBM Attack for the Bally Astrocade, in this case special cfg file should be:
  102. ; cfg\astrocde\I.C.B.M. Attack (USA) (Unl)\astrocde.cfg
  103. ;
  104. ; Ini Files:
  105. ; Module will set most settings through command line which will override any settings you might have on your MAME ini files. Everything else will be read from
  106. ; those. MAME supports a hierarchical ini file structure and will load settings from several ini files following a specific order:
  107. ;- mame.ini
  108. ;- <mymame>.ini (i.e. if MAME was renamed mame060.exe, MAME parses mame060.ini here)
  109. ;- debug.ini (if the debugger is enabled)
  110. ;- <parent>.ini (for clones only, may be called recursively)
  111. ;- <gamename>.ini
  112. ;- vertical.ini (for games with vertical monitor orientation)
  113. ;- horizont.ini (for games with horizontal monitor orientation)
  114. ;- vector.ini (for vector games only)
  115. ;- <driver>.ini (based on the source filename of the driver)
  116. ;
  117. ; The settings in the later ini's override those in the earlier ini's.
  118. ;
  119. ; It's highly recommended that you set skipchecks to 'Rom Only" for MAME otherwise RocketLauncher won't be able to launch several games due
  120. ; to the way MAME roms are packaged. This will be even more noticeable for those using merged sets.
  121. ;
  122. ; Bally Astrocade:
  123. ; ICBM requires a soft reset (even on the real hardware) to launch. You can read about it here: http://www.ballyalley.com/ballyalley/articles/Playing_ICBM_Attack_Using_MESS.pdf
  124. ; A custom build of MAME is needed to play this game if you don't want to press F3 manually each time you play ICBM. The custom build enables DirectInput so it is possible to script a soft reset in.
  125. ; Also ICBM uses different controls then the rest of the games. Make sure you follow the procedure explained above under "Custom Configuration Files" to create such file.
  126. ; Rom extensions should be zip,bin,txt
  127. ; Create a txt file in your rom dir called "Gunfight+Checkmate+Calculator+Scribbling (USA).txt" This game is built into the system and no rom is required to play it.
  128. ;
  129. ; GCE Vectrex:
  130. ; Requires a vectrex.lay and a png overlay for each game. These all need to be placed in the MAME\artwork\vectrex folder.
  131. ; You can download all these pngs and the lay file in my ftp folder. You need to use the HyperList XML to match the pngs.
  132. ;
  133. ; Magnavox Odyssey 2:
  134. ; Euro games should use the videopac bios instead of the odyssey2 one or you'll get some timing issues.
  135. ; Use the systemName ini file in the folder with this module for this, example:
  136. ; [Moto-Crash (France)]
  137. ; Bios=videopac
  138. ;
  139. ; Texas Instruments TI 99/4A:
  140. ; This system requires full keyboard emulation to work properly
  141. ; Split cart dumps are not supported since MESS .145 so you'll have to convert them to RPK format or use an earlier version of MESS (and a different module)
  142. ; You can check how to convert split cart dumps to RPK here:
  143. ; http://www.ninerpedia.org/index.php/MESS_multicart_system
  144. ; For floppy games make sure you have a RPK dump of an extended basic rom on your roms folder. It should be named "extended_basic.rpk"
  145.  
  146. ; Bezels:
  147. ; Module settings control whether RocketLauncher or MAME bezels are shown
  148. ; In the bezel normal mode only RocketLauncher Bezels will be show and the MAME use_bezels option will be forced disbaled
  149. ; In the bezel layout mode, RocketLauncher Bezels will be drawn only when you do not have a layout file on your MAME folders for the current game
  150. ;
  151. ; ServoStik:
  152. ; The module will automatically control any connected ServoStiks found on the system.
  153. ; It does this by reading the xml info from MAME. If that XML info has directional info at 4 or less, 4-way mode will be enabled. All others get 8-way mode.
  154. ;
  155. ; Per game controller types:
  156. ; MAME allows you to change the controller type for each game by using slot devices. Slot devices are highly customizable and vary greatly from system to
  157. ; system so to avoid adding a huge complexity to the module this must be done through the Parameters settings.
  158. ; Slot devices are stored in the MAME ini file you are using, so the best way to find the command line you need to use is to start your game set the slot devices
  159. ; through the MAME UI (Press tab while in MAME) exit and then open the MAME ini file and search for a section named SLOT DEVICES.
  160. ; This is an example for Atari 2600 for a game using wheel controllers on both joy ports:
  161. ; #
  162. ; # SLOT DEVICES
  163. ; #
  164. ; joyport1 wheel
  165. ; joyport2 wheel
  166. ; The suggested method is to set the desired controllers you want to use by default in the Module Global Settings, in this case under the Atari 2600 tab you would
  167. ; set Parameters=-joyport1 joy -joyport2 joy
  168. ; And then for specific games do the same under Module Specific Settings for that system, if a game requires the wheel controller you'd set
  169. ; Parameters=-joyport1 wheel -joyport2 wheel
  170. ;
  171. ; Another option is to set the default values in the MAME ini file and make sure you also set writeconfig to 0.
  172. ; Swapping slot devices wipes out SYSTEM custom configs on the unplugged controllers, so to avoid any customised controls getting erased everytime you change slot devices,
  173. ; ensure you set your controls in the main MAME config file (MAME.ini), not the system one (ex. Atari 2600.ini).
  174. ;----------------------------------------------------------------------------
  175. StartModule()
  176. BezelGUI()
  177. FadeInStart()
  178.  
  179. ; This object controls how the module reacts to different systems. MAME can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.
  180. mTypeVar=
  181. ( LTrim
  182. Aamber Pegasus|pegasus
  183. Acorn Electron|electron
  184. Amstrad GX4000|gx4000
  185. APF Imagination Machine|apfimag
  186. Apple IIGS|apple2gs
  187. Atari 8-bit|a800
  188. Atari 2600|a2600
  189. Atari 5200|a5200
  190. Atari 7800|a7800
  191. Atari Jaguar|jaguar
  192. Atari Lynx|lynx
  193. Bally Astrocade|astrocde
  194. Bandai WonderSwan|wswan
  195. Bandai WonderSwan Color|wscolor
  196. Casio PV-1000|pv1000
  197. Casio PV-2000|pv2000
  198. Coleco ADAM|adam
  199. ColecoVision|coleco
  200. Creatronic Mega Duck|megaduck
  201. Emerson Arcadia 2001|arcadia
  202. Entex Adventure Vision|advision
  203. Epoch Game Pocket Computer|gamepock
  204. Epoch Super Cassette Vision|scv
  205. Exidy Sorcerer|sorcerer
  206. Fairchild Channel F|channelf
  207. Funtech Super Acan|supracan
  208. GCE Vectrex|vectrex
  209. Hartung Game Master|gmaster
  210. Interton VC 4000|vc4000
  211. JungleTac Sport Vii|vii
  212. Magnavox Odyssey 2|odyssey2
  213. Matra & Hachette Alice|alice32
  214. Mattel Aquarius|aquarius
  215. Mattel Intellivision|intv
  216. Applied Technology MicroBee|mbeeic
  217. NEC PC Engine|pce
  218. NEC PC Engine-CD|pce
  219. NEC SuperGrafx|sgx
  220. NEC TurboGrafx-16|tg16
  221. NEC TurboGrafx-CD|tg16
  222. Nintendo 64|n64
  223. Nintendo Entertainment System|nes
  224. Nintendo Famicom|famicom
  225. Nintendo Famicom Disk System|fds
  226. Nintendo Game Boy|gameboy
  227. Nintendo Game Boy Advance|gba
  228. Nintendo Game Boy Color|gbcolor
  229. Nintendo Super Game Boy|supergb
  230. Nintendo Virtual Boy|vboy
  231. Philips CD-i|cdimono1
  232. RCA Studio II|studio2
  233. Sega 32X|32x
  234. Sega CD|segacd
  235. Sega Game Gear|gamegear
  236. Sega Genesis|genesis
  237. Sega Master System|sms
  238. Sega Mega Drive|megadriv
  239. Sega SG-1000|sg1000
  240. Sinclair ZX81|zx81
  241. SNK Neo Geo AES|aes
  242. SNK Neo Geo CD|neocdz
  243. SNK Neo Geo Pocket|ngp
  244. SNK Neo Geo Pocket Color|ngpc
  245. Sony PlayStation|psx
  246. Sony PocketStation|pockstat
  247. Sord M5|m5
  248. Super Nintendo Entertainment System|snes
  249. Tandy TRS-80 Color Computer|coco3
  250. Texas Instruments TI 99-4A|ti99_4a
  251. Tiger Game.com|gamecom
  252. Tomy Tutor|tutor
  253. VTech CreatiVision|crvision
  254. Watara Supervision|svision
  255. )
  256. mType := Object()
  257. Loop, Parse, mTypeVar, `n, `r
  258. {
  259. obj := {}
  260. Loop, Parse, A_LoopField, |
  261. If A_Index = 1
  262. obj.System := A_LoopField
  263. Else ; 2
  264. obj.mameID := A_LoopField
  265. mType.Insert(obj["System"], obj)
  266. }
  267. Log("Module - Finished building the " . MEmu . " object",4)
  268. ; For easier use throughout the module
  269. mameSystem := mType[systemName].System
  270. mameID := mType[systemName].mameID
  271.  
  272. If !mameSystem {
  273. Log("Module - """ . systemName . """ is not a known console or computer system. Defaulting to MAME's Arcade mode for the remainder of this " . MEmu . " module.",2)
  274. mameSystem := systemName
  275. mameID := "MAME"
  276. }
  277.  
  278. settingsFile := modulePath . "\" . moduleName . ".ini"
  279. Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1) ; Set fullscreen mode
  280. legacyMode := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "LegacyMode","false",,1)
  281. mameBiosPath := IniReadCheck(settingsFile, "Settings", "MAME_BIOS_Path", emuPath . "\roms",,1)
  282. Videomode := IniReadCheck(settingsFile, "Settings", "Videomode","d3d",,1) ; Choices are gdi,ddraw,d3d. If left blank, MAME uses d3d by default
  283. pauseMethod := IniReadCheck(settingsFile, "Settings", "PauseMethod",1,,1) ; set the pause method that works better on your machine (preferred methods 1 and 2) 1 = Win7 and Win8 OK - Problems with Win XP, 2 = preferred method for WinXP - Problems in Win7, 3 and 4 = same as 1 and 2, 5 = only use If you have a direct input version of mame, 6 = suspend mame process method, it could crash mame in some computers
  284. hlsl := IniReadCheck(settingsFile, "Settings|" . mameSystem . "|" . romName, "HLSL","false",,1)
  285. glsl := IniReadCheck(settingsFile, "Settings|" . mameSystem . "|" . romName, "GLSL","false",,1)
  286. bezelMode := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "BezelMode","layout",,1) ; "layout" or "normal"
  287. verticalRotationMode := IniReadCheck(settingsFile, "Settings|" . mameSystem . "|" . romName, "VerticalRotationMode","none",,1)
  288. cheatMode := IniReadCheck(settingsFile, "Settings", "CheatMode","false",,1)
  289. cheatModeKey := IniReadCheck(settingsFile, "Settings", "CheatModeKey",A_Space,,1) ; user defined key to be held down before launching a mame rom.
  290. UseSoftwareList := IniReadCheck(settingsFile, mameSystem, "UseSoftwareList","false",,1)
  291. sysStaticParams := IniReadCheck(settingsFile, mameSystem, "StaticParameters", A_Space,,1)
  292. sysParams := IniReadCheck(settingsFile, mameSystem, "Parameters", A_Space,,1)
  293. romParams := IniReadCheck(settingsFile, romName, "Parameters", sysParams,,1)
  294. mameRomName := IniReadCheck(settingsFile, romName, "MameRomName", A_Space,,1)
  295. autosave := IniReadCheck(settingsFile, systemName . "|" . romName, "Autosave", "false",,1)
  296. volume := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "Volume",,,1)
  297. Artwork_Crop := IniReadCheck(settingsFile, mameSystem . "|" . romName, "Artwork_Crop", "true",,1)
  298. Use_Bezels := IniReadCheck(settingsFile, mameSystem . "|" . romName, "Use_Bezels", "false",,1)
  299. Use_Overlays := IniReadCheck(settingsFile, mameSystem . "|" . romName, "Use_Overlays", "true",,1)
  300. Use_Backdrops := IniReadCheck(settingsFile, mameSystem . "|" . romName, "Use_Backdrops", "true",,1)
  301. Use_Cpanels := IniReadCheck(settingsFile, mameSystem . "|" . romName, "Use_Cpanels", "false",,1)
  302. Use_Marquees := IniReadCheck(settingsFile, mameSystem . "|" . romName, "Use_Marquees", "false",,1)
  303. inipath := IniReadCheck(settingsFile, mameSystem, "IniPath", "",,1)
  304. mameBiosPath := GetFullName(mameBiosPath)
  305.  
  306. ;Read settings from system name ini file
  307. sysSettingsFile := modulePath . "\" . mameSystem . ".ini"
  308. IfExist, %sysSettingsFile%
  309. {
  310. romParams := IniReadCheck(sysSettingsFile, romName, "Parameters", romParams,,1)
  311. hlsl := IniReadCheck(sysSettingsFile, romName, "HLSL",hlsl,,1)
  312. glsl := IniReadCheck(sysSettingsFile, romName, "GLSL",glsl,,1)
  313. Artwork_Crop := IniReadCheck(sysSettingsFile, romName, "Artwork_Crop", Artwork_Crop,,1)
  314. Use_Bezels := IniReadCheck(sysSettingsFile, romName, "Use_Bezels", Use_Bezels,,1)
  315. Use_Overlays := IniReadCheck(sysSettingsFile, romName, "Use_Overlays", Use_Overlays,,1)
  316. Use_Backdrops := IniReadCheck(sysSettingsFile, romName, "Use_Backdrops", Use_Backdrops,,1)
  317. Use_Cpanels := IniReadCheck(sysSettingsFile, romName, "Use_Cpanels", Use_Cpanels,,1)
  318. Use_Marquees := IniReadCheck(sysSettingsFile, romName, "Use_Marquees", Use_Marquees,,1)
  319. }
  320.  
  321. artworkCrop := If (Artwork_Crop = "true") ? " -artwork_crop" : " -noartwork_crop"
  322. useBezels := If (Use_Bezels = "true") ? " -use_bezels" : " -nouse_bezels"
  323. useOverlays := If (Use_Overlays = "true") ? " -use_overlays" : " -nouse_overlays"
  324. useBackdrops := If (Use_Backdrops = "true") ? " -use_backdrops" : " -nouse_backdrops"
  325. useCpanels := If (Use_Cpanels = "true") ? " -use_cpanels" : " -nouse_cpanels"
  326. useMarquees := If (Use_Marquees = "true") ? " -use_marquees" : " -nouse_marquees"
  327.  
  328. ; Get MAME version from executable, this is needed since some CLI switches are not available in older MAME versions
  329. exeAtrib := FileGetVersionInfo_AW( EmuPath . "\" . executable, "FileVersion|ProductVersion", "|" )
  330. Loop, Parse, exeAtrib, |%A_Tab%, %A_Space%
  331. A_Index & 1 ? ( _ := A_LoopField ) : ( %_% := A_LoopField )
  332. If (ProductVersion)
  333. StringRight, MAMEVersion, ProductVersion, StrLen(ProductVersion) - 2
  334. Log("Module - Detected MAME Product Version from '" . EmuPath . "\" . executable . "' is " . MAMEVersion)
  335.  
  336. If inipath
  337. inipath := AbsoluteFromRelative(EmuPath, inipath)
  338.  
  339. If (verticalRotationMode = "none")
  340. verticalRotationMode := ""
  341.  
  342. hideEmuObj := Object(dialogOpen . " ahk_class ConsoleWindowClass",0,"ahk_class MAME",1) ;Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
  343.  
  344. ; Process mame's ListXML for certain features
  345. If (bezelEnabled = "true" || servoStikEnabled = "auto" || verticalRotationMode) {
  346. ListXMLObject := Object()
  347. ListXMLObject := ListXMLInfo(romName)
  348. If (bezelEnabled = "true") {
  349. If (bezelMode = "layout"){
  350. BezelStart("layout",ListXMLObject["Parent"].Value,ListXMLObject["Angle"].Value,romName)
  351. } Else { ;bezel mode = normal
  352. useBezels := " -nouse_bezels" ; force disabling MAME built-in bezels
  353. BezelStart(,,ListXMLObject["Angle"].Value)
  354. }
  355. }
  356. If (servoStikEnabled = "auto") {
  357. ServoStik(If ListXMLObject["Ways"].Value <= 4 ? 4 : 8) ; If "ways" in the xml is set to 4 or less, the servo will go into 4-way mode, else 8-way mode will be enabled
  358. }
  359. If (verticalRotationMode && ListXMLObject["Angle"].Value) {
  360. If (verticalRotationMode = "original")
  361. verticalRotationMode := " -norotate"
  362. Else If (verticalRotationMode = "right")
  363. verticalRotationMode := " -ror"
  364. Else If (verticalRotationMode = "left")
  365. verticalRotationMode := " -rol"
  366. Else
  367. verticalRotationMode := ""
  368. }
  369. Else
  370. verticalRotationMode := ""
  371. }
  372.  
  373. 7z(romPath, romName, romExtension, 7zExtractPath)
  374.  
  375. winstate := If (Fullscreen = "true") ? "Hide UseErrorLevel" : "UseErrorLevel"
  376. fullscreen := If (Fullscreen = "true") ? " -nowindow" : " -window"
  377. If (Videomode = "opengl")
  378. {
  379. hlsl := " -nohlsl_enable"
  380. If (MAMEVersion > 159)
  381. glsl := If glsl = "true" ? " -gl_glsl" : (If glsl = "ini" ? "" : " -nogl_glsl")
  382. Else
  383. glsl := ""
  384. }
  385. Else
  386. {
  387. hlsl := If hlsl = "true" ? " -hlsl_enable" : (If hlsl = "ini" ? "" : " -nohlsl_enable")
  388. If (MAMEVersion > 159)
  389. glsl := If Videomode = "ini" ? "" : " -nogl_glsl"
  390. Else
  391. glsl := ""
  392.  
  393. If (Videomode = "ini")
  394. Videomode := ""
  395. }
  396. videomode := If (Videomode != "" ) ? " -video " . videomode : ""
  397. param1 := " -cart """ . romPath . "\" . romName . romExtension . """" ; default param1 used for launching most systems.
  398. autosave := If autosave = "true" ? " -autosave" : ""
  399. volume := If volume != "" ? " -volume " . volume : ""
  400. inipath := If inipath != "" ? " -inipath """ . inipath . """" : ""
  401.  
  402. If romExtension = .txt ; This can be applied to all systems
  403. param1:=
  404.  
  405. If mameID = apfimag ; APF Imagination Machine
  406. If romExtension != .tap
  407. mameID = apfm1000 ; cart games for APF Imagination Machine require a different bios to be loaded
  408.  
  409. If UseSoftwareList != true
  410. { ; Now that we know the system we are loading, determine if we use an ini assocated with that system for custom game configs a user might need. Then load the configs associated to that game.
  411. If mameID in ti99_4a,aes,apple2gs,electron,mbeeic,odyssey2 ; these systems will use an ini to store game specific settings
  412. { mameSysINI := CheckFileMAME(modulePath . "\" . mameSystem . ".ini") ; create the ini if it does not exist
  413. If mameID = ti99_4a ; Texas Instruments TI 99-4A
  414. { mainCart := IniReadCheck(mameSysINI, romName, "Main_Cart",A_Space,,1)
  415. basicCart := IniReadCheck(mameSysINI, romName, "Basic_Cart","extended_basic.rpk",,1) ; user can specify a rom specific cart instead of the default basic one
  416. expansionLocation := IniReadCheck(mameSysINI, romName, "Expansion_Location","extended_basic.rpk",,1)
  417. ; Now set the parameters to send to MAME
  418. If romExtension = .dsk ; Expansion Disk
  419. ; If using the mainCart , send expansionLocation to MAME. This will require DirectInput to be enabled on the MAME build! Else we are loading a Disk game
  420. param1 := " -gromport multi -cart1", param2:=" """ . romPath . "\" . (If mainCart ? (mainCart):(basicCart)) . """", param3:=" -peb:slot2 32kmem -peb:slot3 speech -peb:slot6 tirs232 -peb:slot8 hfdc", param4:=" -flop1", param5:=" """ . romPath . "\" . romName . romExtension . """"
  421. Else If romExtension = .rpk ; Cart Game (RPK Format)
  422. param1 := " -gromport single -cart1", param2:=" """ . romPath . "\" . romName . romExtension . """", param3:=" -peb:slot3 speech" ;-cart will also work here
  423. param6 := " -ui_active" ;Enable partial keyboard mode at startup
  424. } Else If mameID = aes ; SNK Neo Geo AES
  425. { biosRegion := IniReadCheck(mameSysINI, romName, "BIOS_Region","asia",,1)
  426. param1 := " -bios " . biosRegion ; can also be japan, but the asian one has english menus for most games
  427. param2 := " -cart " . romName
  428. }Else if mameID = apple2gs ; Apple IIGS
  429. { externalOS := IniReadCheck(mameSysINI, romName, "External_OS","false",,1)
  430. 2gsSystemFile := "System6.2mg" ;For games without OS included, always force this name and error out if not found
  431. multipartTable := CreateRomTable(multipartTable)
  432.  
  433. If externalOS = true
  434. { CheckFile(romPath . "\" . 2gsSystemFile)
  435. param1 := " -flop3", param2:=" """ . romPath . "\" . 2gsSystemFile . """", param3:=" -flop4", param4:=" """ . romPath . "\" . romName . romExtension . """"
  436. }Else{
  437. param1 := " -flop3", param2:=" """ . romPath . "\" . romName . romExtension . """"
  438. If (multipartTable.MaxIndex() > 1)
  439. param3:=" -flop4", param4 := " """ . multipartTable[2,1] . """"
  440. }
  441. param5 := " -ui_active" ;Enable partial keyboard mode at startup
  442. }Else If mameID = electron ; Acorn Electron
  443. { AutoBootDelay := IniReadCheck(mameSysINI, "Settings", "AutoBootDelay","2",,1) ; Read delay from config.
  444. AutoBootDelay := " -autoboot_delay " . AutoBootDelay
  445. If romExtension = .bin
  446. mediaDeviceType := "cart"
  447. Else ; any other format
  448. mediaDeviceType := "cass"
  449. param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""chain""""""""""""\n""" . AutoBootDelay . ""
  450. }Else If mameID = mbeeic ; Applied Technology MicroBee
  451. { microbeeModel := IniReadCheck(mameSysINI, romName, "MicroBee_Model","mbeeic",,1)
  452. If microbeeModel not in mbee,mbeeic,mbeepc,mbeepc85,mbee56
  453. ScriptError("This is not a known MicroBee model value: " . microbeeModel)
  454. Else If (microbeeModel != "mbeeic")
  455. mameID := microbeeModel
  456. If romExtension in .mwb,.com,.bee
  457. mediaDeviceType := "quik1"
  458. Else If romExtension in .wav,.tap
  459. mediaDeviceType := "cass"
  460. Else If romExtension in .rom
  461. mediaDeviceType := "cart"
  462. Else If romExtension in .dsk
  463. mediaDeviceType := "flop1"
  464. Else ; .bin format
  465. mediaDeviceType := "quik2"
  466. param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """"
  467. }Else if mameID = odyssey2 ; Magnavox Odyssey 2
  468. param2 := " -ui_active" ;Enable partial keyboard mode at startup
  469. ;Use a different bios if needed (This must be done after the above if conditions since the mameID will change)
  470. iniBios := IniReadCheck(mameSysINI, romName, "Bios",mameID,,1) ; for all games, we use the default bios. Some games might require different bios like Odyssey2's Jopac games use the videopac bios instead, which should be defined in the ini
  471. If (iniBios != "")
  472. mameID := iniBios ; need to change the bios name for some games
  473. }
  474.  
  475. ; These systems don't use an ini, but do require parameters to be changed from the default method of launching MAME
  476. If (mameID = "neocdz" || mameID = "cdimono1" || mameID = "segacd" || mameID = "psx" || (mameID = "tg16" && mameSystem = "NEC TurboGrafx-CD") || (mameID = "pce" && mameSystem = "NEC PC Engine-CD")) ; SNK Neo Geo CD, Philips CD-i, Sega CD, Sony PlayStation, NEC PC Engine-CD or NEC TurboGrafx-CD
  477. { If romExtension not in .chd,.cue
  478. ScriptError("MAME only supports " . mameSystem . " games in chd and cue format. It does not support:`n" . romExtension)
  479. If (mameSystem = "NEC TurboGrafx-CD") { ; NEC TurboGrafx-CD needs an additional bios mounted as a cart to run
  480. ; tgcdBios := CheckFile(emuPath . "\roms\CD-ROM System V2.01 (U).pce") ; older bios that doesn't seem to work with many games
  481. tgcdBios := CheckFile(emuPath . "\roms\Super CD-ROM2 System V3.01 (U).pce")
  482. param2 := " -cart " . """" . tgcdBios . """"
  483. } Else If (mameSystem = "NEC PC Engine-CD") { ; NEC PC Engine-CD needs an additional bios mounted as a cart to run
  484. pcecdBios := CheckFile(emuPath . "\roms\Super CD-ROM2 System V3.0 (J).pce")
  485. param2 := " -cart " . """" . pcecdBios . """"
  486. } Else If (mameID = "psx") { ; Sony PlayStation
  487. mameID = psu ; changing mameID sent to MAME to use the USA bios
  488. ; SelectMemCard() ; future function to swap around memcards
  489. ; Usage: mc1 "J:\MAME\software\psu\card1.mc"
  490. } If (mameSystem = "Sega CD") { ;
  491. If InStr(romName,"(Jap") ; Mega CD Japanese v2
  492. mameID = megacd2j
  493. Else If InStr(romName,"(Euro") ; Mega CD European (PAL)
  494. mameID = megacd
  495. }
  496. param1 := " -cdrm """ . romPath . "\" . romName . romExtension . """"
  497. }Else If mameID = gamecom ; Tiger Game.com
  498. { If romExtension != .txt
  499. param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
  500. }Else If mameID = genesis ; Sega Genesis
  501. { If (InStr(romName, "(Europe") || InStr(romName, "(PAL")) ; if rom is from europe, tell MAME to boot a Mega Drive instead
  502. mameID = megadriv
  503. }Else If mameID = megadriv ; Sega Mega Drive
  504. { If (InStr(romName, "(USA") || InStr(romName, "(NTSC")) ; if rom is from America, tell MAME to boot a Genesis instead
  505. mameID = genesis
  506. }Else If mameID = vii ; JungleTac Sport Vii
  507. { If romName = Built-In Games (China) ; Has some built-in games, gotta launch just BIOS for it.
  508. param1:=
  509. }Else If mameID = alice32 ; Matra & Hachette Alice
  510. { If romExtension != .txt
  511. param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
  512. }Else If mameID = pockstat ; Sony PocketStation
  513. { If romExtension != .gme
  514. param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
  515. }Else If mameID = coco3 ; Tandy TRS-80 Color Computer
  516. { If romExtension != .txt
  517. param1 := " -cart """ . romPath . "\" . romName . romExtension . """"
  518. }Else If mameID = zx81 ; Sinclair ZX81
  519. { If romExtension != .txt
  520. param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
  521. }Else If mameID = sorcerer ; Exidy Sorcerer
  522. { If romExtension = .snp ; Snapshot file
  523. param1 := " -dump """ . romPath . "\" . romName . romExtension . """"
  524. Else If romExtension = .bin
  525. param1 := " -quik """ . romPath . "\" . romName . romExtension . """"
  526. }Else If (mameID = "a800" || mameID = "fds" || mameID = "samcoupe") ; Atari 8-bit, Nintendo Famicom Disk System, and MGT Sam Coupe
  527. { If romExtension != .txt
  528. param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """"
  529. }Else If mameID = vectrex ; GCE Vectrex
  530. { If romName = Mine Storm (World) ; MAME dumps an error if you try to launch Mine Storm using a rom instead of just booting vectrex w/o a game in it (Mine Storm is built into vectrex)
  531. param1:=
  532. }Else If mameID = apfm1000 ; APF Imagination Machine/APF M1000
  533. { If romName = Rocket Patrol (USA) ; Rocket Patrol is built into the APF M1000 ROM.
  534. param1:=
  535. }Else If mameID = adam ; Coleco ADAM
  536. param1 := (If romExtension = ".ddp" ? " -cass1" : " -floppydisk") . " """ . romPath . "\" . romName . romExtension . """" ; Decide if disk or ddp game
  537. Else If mameID = pegasus ; Aamber Pegasus
  538. { If romExtension != .txt
  539. param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
  540. }
  541. }Else{ ; Use Software List
  542. hashname := mameID
  543. param1 := " " . romName ; param1 used for launching from software lists
  544.  
  545. If mameID = aes ; SNK Neo Geo AES
  546. { hashname := "neogeo"
  547. biosRegion := IniReadCheck(mameSysINI, romName, "BIOS_Region","asia",,1)
  548. param2 := " -bios " . biosRegion ; can also be japan, but the asian one has english menus for most games
  549. }
  550. CheckFile(emuPath . "\hash\" . hashname . ".xml","Could not find a software list for the system " . mameID) ;Check if software list for selected system exists
  551. }
  552.  
  553. If mameID = vectrex ; GCE Vectrex
  554. param2 := " -view " . (If (FileExist(emuPath . "\artwork\Vectrex\" . romName . ".png"))?("""" . romName . """"):"standard") ; need overlays extracted in the artwork\vectres folder. PNGs must match romName
  555.  
  556. sysStaticParams := If sysStaticParams != "" ? A_Space . sysStaticParams : "" ; tacking on a space in case user forgot to add one
  557. romParams := If romParams != "" ? A_Space . romParams : "" ; tacking on a space in case user forgot to add one
  558.  
  559. StringReplace,mameRomPaths,romPathFromIni,|,`"`;`",1 ; replace all instances of | to ; in the Rom_Path from RL's Emulators.ini so MAME knows where to find your roms
  560. mameRomPaths := " -rompath """ . (If mameRomName ? romPath : mameRomPaths) . (If mameBiosPath ? ";" . mameBiosPath : "") . """" ; If using an alt rom, only supply mame with the path to that rom so it doesn't try to use the original rom. If a bios path was supplied, add it into the rom paths sent to MAME
  561.  
  562. If InStr(romParams,"-rompath")
  563. ScriptError("""-rompath"" is defined as a parameter for " . romName . ". The MAME module fills this automatically so please remove this from Params in the module's settings.")
  564. If InStr(sysStaticParams,"-rompath")
  565. ScriptError("""-rompath"" is defined as a parameter for " . mameSystem . ". The MAME module fills this automatically so please remove this from Params in the module's settings.")
  566.  
  567. If mameRomName {
  568. FileMove, %romPath%\%romName%%romExtension%, %romPath%\%mameRomName%%romExtension% ; rename rom to match what mame needs
  569. originalRomName := romName ; store romName from database so we know what to rename it back to later
  570. romName := mameRomName
  571. If ErrorLevel
  572. ScriptError("There was a problem renaming " . romName . " to " . mameRomName . " in " . romPath . ". Please check you have write permission to this folder/file and you don't already have a file named """ . mameRomName . """ in your rom folder.",8)
  573. Else ; if rename was successful, set var so we know to move it back later
  574. fileRenamed = 1
  575. }
  576.  
  577. ; use a custom cfg file if it exists and append it to param1
  578. IfExist, % emuPath . "\cfg\" . mameID . "\" . dbName
  579. param1 := " -cfg_directory " . """" . emuPath . "\cfg\" . mameID . "\" . dbName . """" . param1
  580.  
  581. If cheatMode = true
  582. { If (!FileExist(emuPath . "\cheat.zip") && !FileExist(emuPath . "\cheat.7z"))
  583. ScriptError("You have cheats enabled for " . MEmu . " but could not locate a ""cheat.zip"" or ""cheat.7z"" in " . emuPath)
  584. Else
  585. Log("Module - Cheat file found in " . emuPath,4)
  586. If cheatModeKey ; if user wants to use a key to enable CheatMode
  587. cheatEnabled := If XHotkeyAllKeysPressed(cheatModeKey) ? " -cheat" : "" ; only enables cheatMode when key is held down on launch
  588. Else ; no cheat mode key defined
  589. cheatEnabled := " -cheat"
  590. }
  591.  
  592. HideEmuStart()
  593.  
  594. If legacyMode = true
  595. { Log("Module - Running MAME in legacy Mode")
  596. errLvl := Run("""" . executable . """ " . (If mameID = "MAME" ? romName : mameID . param1 . param2 . param3 . param4 . param5 . param6) . fullscreen . cheatEnabled . volume . mameRomPaths . sysStaticParams . romParams, emuPath, winstate)
  597. } Else {
  598. Log("Module - Running MAME in non-legacy mode")
  599. errLvl := Run("""" . executable . """ " . (If mameID = "MAME" ? romName : mameID . param1 . param2 . param3 . param4 . param5 . param6) . mameRomPaths . sysStaticParams . romParams . fullscreen . hlsl . glsl . cheatEnabled . volume . inipath . verticalRotationMode . videomode . artworkCrop . useBezels . useOverlays . useBackdrops . useCpanels . useMarquees . autosave . " -skip_gameinfo", emuPath, winstate)
  600. }
  601.  
  602. If errLvl {
  603. If (errLvl = 1)
  604. Error = Failed Validity
  605. Else If(errLvl = 2)
  606. Error = Missing Files
  607. Else If(errLvl = 3)
  608. Error = Fatal Error
  609. Else If(errLvl = 4)
  610. Error = Device Error
  611. Else If(errLvl = 5)
  612. Error = Game Does Not Exist
  613. Else If(errLvl = 6)
  614. Error = Invalid Config
  615. Else If errLvl in 7,8,9
  616. Error = Identification Error
  617. Else
  618. Error = MAME Error
  619. Log("MAME Error - " . Error,3)
  620. }
  621.  
  622. WinWait("ahk_class MAME")
  623. WinWaitActive("ahk_class MAME")
  624.  
  625. BezelDraw()
  626.  
  627. If romName = ICBMromName ; for Bally Astrocade only
  628. { Sleep, 2000 ; increase if you don't see the title screen
  629. SetKeyDelay(50)
  630. Send, {F3 down}{F3 up} ; sends a reset to MAME, needed for ICBM to boot
  631. }
  632.  
  633. HideEmuEnd()
  634. FadeInExit()
  635. Process("WaitClose", executable)
  636. 7zCleanUp()
  637. BezelExit()
  638.  
  639. If fileRenamed { ; rename file back to alternate name for next launch
  640. FileMove, %romPath%\%romName%%romExtension%, %romPath%\%originalRomName%%romExtension%
  641. If ErrorLevel ; if rename was successful, set var so we know to move it back later
  642. ScriptError("There was a problem renaming " . romName . " back to " . originalRomName)
  643. }
  644.  
  645. FadeOutExit()
  646. ExitModule()
  647.  
  648.  
  649. ; This will simply create a new blank ini if one does not exist
  650. CheckFileMAME(file){
  651. IfNotExist, %file%
  652. FileAppend,, %file%
  653. Return file
  654. }
  655.  
  656. ListXMLInfo(rom){ ; returns MAME info about parent rom, orientation angle, resolution
  657. Global emuFullPath, emuPath
  658. ListXMLObject := Object()
  659. listXMLVarLog :=
  660. RunWait, % comspec . " /c " . """" . emuFullPath . """" . " -listxml " . rom . " > tempBezel.txt", %emuPath%, Hide
  661. Fileread, ListxmlContents, %emuPath%\tempBezel.txt
  662. RegExMatch(ListxmlContents, "s)<game.*name=" . """" . rom . """" . ".*" . "cloneof=" . """" . "[^""""]*", parent)
  663. RegExMatch(parent,"cloneof=" . """" . ".*", parent)
  664. RegExMatch(parent,"""" . ".*", parent)
  665. StringTrimLeft, parent, parent, 1
  666. RegExMatch(ListxmlContents, "s)<display.*rotate=" . """" . "[0-9]+" . """", angle)
  667. RegExMatch(angle,"[0-9]+", angle, "-6")
  668. RegExMatch(ListxmlContents, "s)<display.*width=" . """" . "[0-9]+" . """", width)
  669. RegExMatch(width,"[0-9]+", width, "-6")
  670. RegExMatch(ListxmlContents, "s)<display.*height=" . """" . "[0-9]+" . """", Height)
  671. RegExMatch(Height,"[0-9]+", Height, "-6")
  672. RegExMatch(ListxmlContents, "s)<control.*ways=" . """" . "[0-9]+" . """", Ways)
  673. RegExMatch(Ways,"[0-9]+", Ways, "-6")
  674. logVars := "Parent|Angle|Height|Width|Ways"
  675. Loop, Parse, logVars, |
  676. {
  677. currentobj:={}
  678. currentobj.Label := A_Loopfield
  679. currentobj.Value := %A_Loopfield%
  680. ListXMLObject.Insert(currentobj["Label"], currentobj)
  681. listXMLLog .= "`r`n`t`t`t`t`t" . currentobj["Label"] . " = " . currentobj["Value"]
  682. }
  683. Log("Module - MAME ListXML values: " . listXMLLog,5)
  684. If (ListXMLObject["Height"].Value > ListXMLObject["Width"].Value) {
  685. ListXMLObject["Angle"].Value := true
  686. Log("Module - This game's height is greater than its width, forcing vertical mode",5)
  687. }
  688. FileDelete, %emuPath%\tempBezel.txt
  689. Return ListXMLObject
  690. }
  691.  
  692. BezelLabel:
  693. WinSet, Transparent, 0, ahk_class ConsoleWindowClass
  694. Return
  695.  
  696. HaltEmu:
  697. If pauseMethod = 1
  698. { disableSuspendEmu = true
  699. disableRestoreEmu = true
  700. PostMessage,0x211, 1, , , ahk_class MAME
  701. } Else If pauseMethod = 2
  702. { disableSuspendEmu = true
  703. PostMessage,0x211, 1, , , ahk_class MAME
  704. } Else If pauseMethod = 3
  705. { disableSuspendEmu = true
  706. disableRestoreEmu = true
  707. PostMessage,% 0x0400+6, 1, , , ahk_class MAME
  708. } Else If pauseMethod = 4
  709. { disableSuspendEmu = true
  710. PostMessage,% 0x0400+6, 1, , , ahk_class MAME
  711. } Else If pauseMethod = 5
  712. { disableSuspendEmu = true
  713. Send, {P down}
  714. Sleep, 1000
  715. Send, {P up}
  716. }
  717. Return
  718. RestoreEmu:
  719. If pauseMethod = 1
  720. { PostMessage,0x212, 1, , , ahk_class MAME
  721. WinActivate, ahk_class MAME
  722. } Else If pauseMethod = 2
  723. { PostMessage,0x212, 1, , , ahk_class MAME
  724. WinActivate, ahk_class MAME
  725. } Else If pauseMethod = 3
  726. { PostMessage,% 0x0400+6, 0, , , ahk_class MAME
  727. WinActivate, ahk_class MAME
  728. } Else If pauseMethod = 4
  729. { PostMessage,% 0x0400+6, 0, , , ahk_class MAME
  730. WinActivate, ahk_class MAME
  731. } Else If pauseMethod = 5
  732. { disableSuspendEmu = true
  733. Send, {P down}
  734. Sleep, 1000
  735. Send, {P up}
  736. WinActivate, ahk_class MAME
  737. } Else If pauseMethod = 6
  738. WinActivate, ahk_class MAME
  739. Return
  740.  
  741. CloseProcess:
  742. FadeOutStart()
  743. WinClose("ahk_class MAME")
  744. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement