RetroArch Module

agent47

Super Moderator
Staff member
Supporter
RL Member
Hi everyone, I'm new to the forum and new to RocketLauncher altogether. I'm receiving that "RetroArch ahk_class" error and can't figure out with the problem is. According to the log, it looks like there is an error with not finding the CRC to gdip.ahk. I have attached the log below. I apologize if I am not doing this correctly (newbie alert). I appreciate anyone's assistance! Thanks in advance!

Looking at your log, you're trying to run Knights of the Round which is a CPS1 game using the FBA CPS2 core rather than the CPS1 core.
 

gamusino69

New member
Greetings, after looking for a couple of weeks without finding it, I ask if someone is so kind to pass me the latest Retroarch.AHK module they have? I use retroarch 1.8.7 and my module is corrupted while I recompress a mega cd iso to the .CHD format and I cannot open or edit the .AHK ... I just need someone who reads this the latest or closest module to Retroarch 1.8.7, I am super grateful ...
 

angus81

New member
Hi everyone,

I've tried to set in RocketLauncher the version 1.8.4 with the AHK posted in this thread (RetroArch Alternative.zip posted by Styphelus). I want to use it with Sammy Atomiswave and Sega Naomi.
When I try to launch it I have the following error :

"There was an error waiting for the window "Retroarch ahk_class Retroarch". Please check you have the correct version emulator installed for this module....

I'm using windows 7 and I have updated Rocket Launcher to latest version.

Did you know how I can solve it?
 

angus81

New member
Hi everyone,

I've tried to set in RocketLauncher the version 1.8.4 with the AHK posted in this thread (RetroArch Alternative.zip posted by Styphelus). I want to use it with Sammy Atomiswave and Sega Naomi.
When I try to launch it I have the following error :

"There was an error waiting for the window "Retroarch ahk_class Retroarch". Please check you have the correct version emulator installed for this module....

I'm using windows 7 and I have updated Rocket Launcher to latest version.

Did you know how I can solve it?

Here my log

Code:
[code]
12:52:28:939 | RL |      INFO  | +N/A   | Main - RocketLauncher v1.2.0.1 (www.rlauncher.com)
12:52:29:004 | RL |   WARNING  | +78    | Main - Logging level is debug or higher and will cause slowdowns to RocketLauncher's performance. When troubleshooting is finished, please lower logging level to restore proper performance.
12:52:29:130 | RL |     DEBUG  | +125   | Registry.Read - Reading from Registry : RootKey=HKEY_LOCAL_MACHINE, SubKey=System\CurrentControlSet\Control\Windows, ValueName=ErrorMode,RegistryVersion=32
12:52:29:130 | RL |     DEBUG  | +0     | Registry.Read - Registry Read finished, returning 0
12:52:29:131 | RL |      INFO  | +0     | Main - System Specs:
					RocketLauncher Dir: D:\Arcade\RocketLauncher
					RocketLauncher is: 32-bit
					OS: Microsoft Windows 7 Ultimate 
					SKU: Ultimate
					Total Memory: 4050.89 MB
					Free Memory: 1147.97 MB
					Used Memory: 2902.918 MB
					SystemType: 64-bit
					Physical Processors: 1
					Logical Processors: 4
					GPU 1 Name: NVIDIA GeForce GT 610
					GPU 1 RAM: -2048.00 MB
					GPU 1 Driver Version: 23.21.13.9135
					Sound 1 Device: NVIDIA High Definition Audio
					Sound 1 Status: Enabled
					Sound 2 Device: Dispositivo High Definition Audio
					Sound 2 Status: Enabled
					OS Language: Italian_Standard
					System Locale: it-IT
					Formats Locale: it-IT
					Windows UI Language: it-IT
					Text Encoding: Windows-1252
					OS Admin Status: Yes
					RL Compatibility Flags: 
					Latest .Net Version: v4.0.30319
					Monitor #1 (\\.\DISPLAY1): 1280x1024 (1280x984 work) [32bit] [60hz] [Landscape]  (Primary)
					Current AHK Desktop Width: 1280
					Current AHK Desktop Height: 1024
					Monitor #1 DPI: 100
					ErrorMode: 0
					AutoHotkey Path: 
					AHK Version: 1.1.13.00
					Unicode: No
12:52:29:131 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\RocketLauncher.exe exists
12:52:29:131 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					FileDescription         	RocketLauncher
					FileVersion             	1.2.0.1
					LegalCopyright          	©2016 RocketLauncher
					ProductName             	djvj's one swell guy!
					ProductVersion          	1.2.0.1
					CompanyName             	Your favorite Front End companion! Visit us @ www.rlauncher.com
					File Size:			2195456 bytes
					Created:			5/19/2020 - 11:09:46
					Modified:			6/29/2020 - 10:24:10
12:52:29:132 | RL |      INFO  | +0     | Main - Raw CLI received: "-s Sammy Atomiswave -r fotns -f D:\Arcade\HyperSpin.exe -p HyperSpin -c 1 -o 1"
12:52:29:132 | RL |     TRACE  | +0     | File.__New - Creating new file object of: "D:\Arcade\RocketLauncher\Module Extensions\RocketLauncher.dll"
12:52:29:132 | RL |      INFO  | +0     | File.CheckFile - Checking if "D:\Arcade\RocketLauncher\Module Extensions\RocketLauncher.dll" exists
12:52:29:132 | RL |     TRACE  | +0     | File.Exist - This file exists: D:\Arcade\RocketLauncher\Module Extensions\RocketLauncher.dll
12:52:29:133 | RL |     DEBUG  | +0     | File.CheckFile - Attributes:
					FileDescription         	RocketLauncher Utils
					FileVersion             	1.1.0.0
					InternalName            	RocketLauncher.dll
					LegalCopyright          	Copyright © RocketLauncher 2013-2016
					OriginalFilename        	RocketLauncher.dll
					ProductName             	RocketLauncher
					ProductVersion          	1.1.0.0
					File Size:			81408 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:23:18
12:52:29:137 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\Array.ahk
12:52:29:138 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4926 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			6/29/2020 - 10:24:17
12:52:29:138 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Module Extensions\BinHexRW.ahk
12:52:29:139 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5112 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			6/29/2020 - 10:24:32
12:52:29:139 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\BlockInput.exe exists
12:52:29:140 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					FileDescription         	 
					FileVersion             	1.1.09.04
					InternalName            	 
					OriginalFilename        	 
					ProductName             	 
					ProductVersion          	1.1.09.04
					File Size:			657920 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			1/2/2015 - 12:37:54
12:52:29:140 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\CLR_L.ahk | vInterop
12:52:29:141 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5503 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			6/29/2020 - 10:23:28
12:52:29:141 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\Control_AniGif.ahk | vAniGif.ahk
12:52:29:142 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5716 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			1/2/2015 - 12:37:54
12:52:29:145 | RL |     ERROR  | +15    | CRC Check - No CRC defined on the header for: D:\Arcade\RocketLauncher\Module Extensions\gdip.ahk
12:52:29:145 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			88789 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			1/2/2015 - 12:37:54
12:52:29:146 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Module Extensions\gdip_alt.ahk
12:52:29:146 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5955 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			6/29/2020 - 10:23:42
12:52:29:147 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\gsdll32.dll exists
12:52:29:147 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			13090816 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			1/9/2015 - 2:48:57
12:52:29:147 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\itextsharp.dll exists
12:52:29:148 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					FileDescription         	iTextSharp
					FileVersion             	5.4.2.0
					InternalName            	itextsharp.dll
					LegalCopyright          	Copyright (C) 1999-2013 by Bruno Lowagie and Paulo Soares. All Rights Reserved.
					OriginalFilename        	itextsharp.dll
					ProductName             	iTextSharp
					ProductVersion          	5.4.2.0
					CompanyName             	1T3XT BVBA
					File Size:			3743744 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			1/2/2015 - 12:37:54
12:52:29:149 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Module Extensions\Java.ahk
12:52:29:149 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			7859 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:23:35
12:52:29:150 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\JSON.ahk
12:52:29:150 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			9227 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:23:25
12:52:29:151 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Module Extensions\Origin.ahk
12:52:29:151 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4915 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:24:18
12:52:29:152 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\RegRW64.ahk
12:52:29:152 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			6915 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			1/2/2015 - 12:37:54
12:52:29:154 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\RIni.ahk | v1.7
12:52:29:154 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			67872 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:24:46
12:52:29:154 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\SevenZipSharp.dll exists
12:52:29:155 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					FileDescription         	SevenZipSharp
					FileVersion             	0.64.5717.6837
					InternalName            	SevenZipSharp.dll
					LegalCopyright          	Copyright (C) Markovtsev Vadim 2009, 2010, licenced under LGPLv3
					OriginalFilename        	SevenZipSharp.dll
					ProductName             	SevenZipSharp
					ProductVersion          	0.64.5717.6837
					CompanyName             	Markovtsev Vadim
					File Size:			167424 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			10/2/2015 - 12:45:11
12:52:29:156 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Module Extensions\Steam.ahk
12:52:29:156 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5517 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:23:59
12:52:29:158 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Extension: D:\Arcade\RocketLauncher\Module Extensions\VA.ahk
12:52:29:158 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			34688 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			1/2/2015 - 12:37:54
12:52:29:159 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Module Extensions\VA_Extension.ahk
12:52:29:159 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			3862 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			6/29/2020 - 10:23:22
12:52:29:160 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\7z.ahk
12:52:29:161 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			33916 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:12
12:52:29:164 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Bezel.ahk
12:52:29:164 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			121257 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:03
12:52:29:166 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Fade.ahk
12:52:29:166 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			39707 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:19
12:52:29:167 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Fade Init.ahk
12:52:29:167 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1140 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:35
12:52:29:169 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Fade Animations.ahk
12:52:29:170 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			77961 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:10
12:52:29:171 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Keymapper.ahk
12:52:29:171 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			33682 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:14
12:52:29:172 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Keymapper Init.ahk
12:52:29:172 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			3966 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:22:51
12:52:29:174 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\MultiGame.ahk
12:52:29:174 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			41583 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:22:57
12:52:29:175 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\MultiGame Init.ahk
12:52:29:175 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			169 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:21
12:52:29:177 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\MultiPlayer.ahk
12:52:29:177 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			67277 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:37
12:52:29:185 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Pause.ahk
12:52:29:185 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			408415 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:41
12:52:29:186 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Pause Init.ahk
12:52:29:186 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			563 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:15
12:52:29:187 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Password.ahk
12:52:29:188 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			10131 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:10
12:52:29:189 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\DLL\RocketLauncher.ahk
12:52:29:189 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			31509 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:23
12:52:29:190 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Log\Logger.ahk
12:52:29:190 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			3558 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:22
12:52:29:191 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\MiscUtils.ahk
12:52:29:191 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			6709 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:20
12:52:29:192 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\Environment\Registry.ahk
12:52:29:192 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			2084 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:03
12:52:29:193 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\Environment\ArrayUtils.ahk
12:52:29:193 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			306 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:25
12:52:29:194 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\Environment\LocaleUtils.ahk
12:52:29:194 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			2104 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:19
12:52:29:195 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\Environment\StringUtils.ahk
12:52:29:196 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			7754 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:51
12:52:29:196 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\Environment\TimerUtils.ahk
12:52:29:197 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			2948 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:55
12:52:29:197 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\ArchiveFile.ahk
12:52:29:198 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			346 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:30
12:52:29:199 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\DemulShooter.ahk
12:52:29:200 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			786 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:38
12:52:29:200 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\Emulator.ahk
12:52:29:201 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1231 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:57
12:52:29:202 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\File.ahk
12:52:29:202 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			9522 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:26
12:52:29:203 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\FileUtils.ahk
12:52:29:203 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			339 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:34
12:52:29:204 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\Folder.ahk
12:52:29:204 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			643 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:09
12:52:29:205 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\IniFile.ahk
12:52:29:205 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4364 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:41
12:52:29:206 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\Process.ahk
12:52:29:206 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			9711 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:47
12:52:29:207 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\PropertiesFile.ahk
12:52:29:207 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4218 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:43
12:52:29:208 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\RIniFile.ahk
12:52:29:208 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			3898 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:12
12:52:29:209 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\File\XMLFile.ahk
12:52:29:209 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			331 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:35
12:52:29:210 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\Input\KeyUtils.ahk
12:52:29:211 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5426 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:03
12:52:29:211 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\UI\Control.ahk
12:52:29:212 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4603 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:33
12:52:29:213 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\UI\Window.ahk
12:52:29:213 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			24655 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:51:56
12:52:29:214 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Classes\Util\UI\WindowTitle.ahk
12:52:29:214 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1171 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:53:30
12:52:29:216 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Rom Mapping Launch Menu.ahk
12:52:29:216 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			72279 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:24
12:52:29:217 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Shader.ahk
12:52:29:217 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4183 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:29
12:52:29:218 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Shader Init.ahk
12:52:29:218 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			412 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			12/6/2019 - 9:52:02
12:52:29:222 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Shared.ahk
12:52:29:222 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			173248 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:16
12:52:29:224 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Statistics.ahk
12:52:29:225 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			27008 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:52
12:52:29:226 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Statistics Init.ahk
12:52:29:226 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			43 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:38
12:52:29:227 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\Virtual Drive.ahk
12:52:29:227 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			20294 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:34
12:52:29:229 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\XHotkey.ahk
12:52:29:229 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			26615 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:23:07
12:52:29:230 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Lib\XHotkey Init.ahk
12:52:29:230 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1073 bytes
					Created:			5/19/2020 - 11:09:49
					Modified:			6/29/2020 - 10:24:04
12:52:29:230 | RL |     DEBUG  | +0     | Main - Received this dbName with no path via CLI: "fotns"
12:52:29:230 | RL |     DEBUG  | +0     | Main - dbName: fotns
12:52:29:231 | RL |      INFO  | +0     | Main - Loading Front End Plugin: "HyperSpin"
12:52:29:231 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\Arcade\RocketLauncher\Plugins\HyperSpin.plugin
12:52:29:232 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			9590 bytes
					Created:			5/19/2020 - 11:11:18
					Modified:			6/29/2020 - 10:23:40
12:52:29:232 | RL |     TRACE  | +0     | Process.__New - Creating new process object for: "D:\Arcade\HyperSpin.exe"
12:52:29:232 | RL |     TRACE  | +0     | File.__New - Creating new file object of: "D:\Arcade\HyperSpin.exe"
12:52:29:233 | RL |      INFO  | +0     | Main - RocketLauncher received "Sammy Atomiswave" and "fotns"
12:52:29:239 | RL |      INFO  | +16    | Main - Found a "Games Options.ini" file, loading it into memory.
12:52:29:240 | RL |      INFO  | +0     | Main - fotns is using the default emulator: NewRetroarch
12:52:29:240 | RL |      INFO  | +0     | Main - Checking for a [NewRetroarch] section in D:\Arcade\RocketLauncher\Settings\Sammy Atomiswave\Emulators.ini
12:52:29:240 | RL |      INFO  | +0     | Main - Checking for a [NewRetroarch] section in D:\Arcade\RocketLauncher\Settings\Global Emulators.ini
12:52:29:241 | RL |      INFO  | +0     | Main - Found [NewRetroarch] in D:\Arcade\RocketLauncher\Settings\Global Emulators.ini
12:52:29:242 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Modules\RetroArch\NewRetroArch.ahk exists
12:52:29:243 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			46559 bytes
					Created:			6/29/2020 - 9:46:15
					Modified:			7/1/2020 - 12:51:34
12:52:29:244 | RL |   WARNING  | +0     | Main - CRC Check - Module has no CRC defined on the header.
12:52:29:244 | RL |      INFO  | +0     | Main - fotns will use module: D:\Arcade\RocketLauncher\Modules\RetroArch\NewRetroArch.ahk
12:52:29:263 | RL |      INFO  | +15    | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
12:52:29:265 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\Emulators\NewRetroarch\retroarch.exe exists
12:52:29:280 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			12691456 bytes
					Created:			6/29/2020 - 12:03:23
					Modified:			1/16/2020 - 9:49:22
12:52:29:280 | RL |      INFO  | +0     | Main - INI Keys read
12:52:29:281 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\7z.exe exists
12:52:29:282 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					FileDescription         	7-Zip Console
					FileVersion             	15.06 beta
					InternalName            	7z
					LegalCopyright          	Copyright (c) 1999-2015 Igor Pavlov
					OriginalFilename        	7z.exe
					ProductName             	7-Zip
					ProductVersion          	15.06 beta
					CompanyName             	Igor Pavlov
					File Size:			262144 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			10/2/2015 - 12:45:11
12:52:29:282 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\7z.dll exists
12:52:29:284 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	7z Plugin
					FileVersion             	15.06 beta
					InternalName            	7z
					LegalCopyright          	Copyright (c) 1999-2015 Igor Pavlov
					OriginalFilename        	7z.dll
					ProductName             	7-Zip
					ProductVersion          	15.06 beta
					CompanyName             	Igor Pavlov
					File Size:			1012224 bytes
					Created:			5/19/2020 - 11:11:14
					Modified:			10/2/2015 - 12:45:11
12:52:29:286 | RL |      INFO  | +0     | Main - "fotns" does not qualify for MultiGame. Only roms with any of these strings in their name are acceptable: \(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side
12:52:29:286 | RL |      INFO  | +0     | CheckPaths - Started
12:52:29:286 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Arcade\Games\Sammy Atomiswave\roms\fotns.rar
12:52:29:286 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Arcade\Games\Sammy Atomiswave\roms\fotns\fotns.rar
12:52:29:286 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Arcade\Games\Sammy Atomiswave\roms\fotns\*.rar
12:52:29:286 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Arcade\Games\Sammy Atomiswave\roms\fotns.7z
12:52:29:286 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Arcade\Games\Sammy Atomiswave\roms\fotns\fotns.7z
12:52:29:287 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Arcade\Games\Sammy Atomiswave\roms\fotns\*.7z
12:52:29:287 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Arcade\Games\Sammy Atomiswave\roms\fotns.zip
12:52:29:287 | RL |      INFO  | +0     | CheckPaths - Found rom: D:\Arcade\Games\Sammy Atomiswave\roms\fotns.zip
12:52:29:287 | RL |     DEBUG  | +0     | CheckPaths - Current romName: fotns
12:52:29:287 | RL |     DEBUG  | +0     | CheckPaths - Current romPath: D:\Arcade\Games\Sammy Atomiswave\roms
12:52:29:287 | RL |     DEBUG  | +0     | CheckPaths - Current romExtension: .zip
12:52:29:287 | RL |      INFO  | +0     | CheckPaths - Ended
12:52:29:288 | RL |      INFO  | +0     | BuildScript - User Variables:
					;----------------------------------------------------------------------------
					; INJECTED VARIABLES
					;----------------------------------------------------------------------------
					
					#NoTrayIcon
					#InstallKeybdHook
					MiscUtils.DetectHiddenWindows("On")
					SetTitleMatchMode, 2
					SendMode, Event
					Global RLLog
					Global RLObject
					0 := "12"
					rlPath := "D:\Arcade\RocketLauncher"
					pluginPath := "D:\Arcade\RocketLauncher\Plugins"
					pluginName := "HyperSpin"
					pluginExt := ".plugin"
					contextOnExit := "1"
					rlMode := ""
					rlTitle := "RocketLauncher"
					rlVersion := "1.2.0.1"
					rlAuthor := "djvj"
					rlURL := "www.rlauncher.com"
					langFile := "D:\Arcade\RocketLauncher\Data\Language\Localization.ini"
					primMonitor := "1"
					frontendPID := ""
					frontendPath := "D:\Arcade"
					frontendExe := "HyperSpin.exe"
					frontendExt := "exe"
					frontendName := "HyperSpin"
					frontendDrive := "D"
					exitEmulatorKey := "Esc"
					restoreFE := "Restore"
					exitScriptKey := "~q & ~s"
					toggleCursorKey := "~e & ~t"
					emuFullPath := "D:\Arcade\Emulators\NewRetroarch\retroarch.exe"
					emuPath := "D:\Arcade\Emulators\NewRetroarch"
					emuName := "NewRetroarch"
					emuExt := "exe"
					baseRomPath := ""
					romPath := "D:\Arcade\Games\Sammy Atomiswave\roms"
					romPathFromIni := "D:\Arcade\Games\Sammy Atomiswave\roms"
					romExtension := ".zip"
					romExtensionOrig := ".zip"
					romExtensions := "rar|7z|zip|sfc|gba|dsk|gb|a78|a26|sv|gbc|rpk|gme|sc|cdt|ws|wsc|ngp|ngc|vms|ipf|n64|z64|sg|fds|caq|vb|vec|wav|cas|min|int|rom|tap|tzx|nes|col|nds|cpr|gg|pce|st2|sms|smc|lnx|md|n64|a52|j64|cso|cue|iso|ccd|chd|bin|32x|bs|gen|u1|gdi"
					executable := "retroarch.exe"
					systemDbName := "Sammy Atomiswave"
					systemName := "Sammy Atomiswave"
					dbPath := ""
					dbName := "fotns"
					dbExt := ""
					romFoundByExt := ""
					romName := "fotns"
					romMapPath := ""
					romMappingEnabled := "false"
					romMappingLaunchMenuEnabled := "false"
					romMappingFirstMatchingExt := "false"
					romMappingShowAllRomsInArchive := "true"
					romMappingNumberOfGamesByScreen := "7"
					romMappingHideParent := "false"
					romMappingMenuWidth := "300"
					romMappingMenuMargin := "50"
					romMappingTextFont := "Bebas Neue"
					romMappingTextOptions := "cFFFFFFFF r4 s40 Bold"
					romMappingDisabledTextColor := "ff888888"
					romMappingTextSizeDifference := "5"
					romMappingTextMargin := "10"
					romMappingTitleTextFont := "Bebas Neue"
					romMappingTitleTextOptions := "cFFFFFFFF r4 s60 Bold"
					romMappingTitle2TextFont := "Bebas Neue"
					romMappingTitle2TextOptions := "cFFFFFFFF r4 s15 Bold"
					romMappingGameInfoTextFont := "Bebas Neue"
					romMappingGameInfoTextOptions := "cFFFFFFFF r4 s15 Regular"
					romMappingGameNameTextFont := "Bebas Neue"
					romMappingGameNameTextOptions := "cFFFFFFFF r4 s40 Regular"
					romMappingBackgroundBrush := "aa000000"
					romMappingColumnBrush := "33000000"
					romMappingButtonBrush1 := "6f000000"
					romMappingButtonBrush2 := "33000000"
					romMappingBackgroundAlign := "Stretch and Lose Aspect"
					romMappingMenuFlagWidth := "40"
					romMappingMenuFlagSeparation := "5"
					romMappingDefaultMenuList := "FullList"
					romMappingSingleFilteredRomAutomaticLaunch := "false"
					altArchiveNameOnly := ""
					altRomNameOnly := ""
					altArchiveAndRomName := ""
					altArchiveAndManyRomNames := ""
					altRomNamesOnly := ""
					romMapScenario := ""
					skipchecks := "false"
					romMatchExt := "true"
					blockInputTime := "0"
					blockInputFile := "D:\Arcade\RocketLauncher\Module Extensions\BlockInput.exe"
					errorLevelReporting := "false"
					lockLaunch := "false"
					lockLaunchGame := ""
					screenRotationAngle := "0"
					screenRotationAngleGame := ""
					setResolution := ""
					logFile := ""
					logLabel := ["    INFO"," WARNING","   ERROR","   DEBUG","   TRACE"]
					logLevel := "10"
					logShowDebugConsole := "false"
					logShowCommandWindow := "false"
					logCommandWindow := "false"
					logIncludeModule := "true"
					logIncludeFileProperties := "true"
					logIncludeDLLLogs := "false"
					errorSounds := "true"
					rlDebugConsoleStdout := ""
					sysLang := "Italian_Standard"
					sysType := "64-bit"
					broadcastWindowTitle := ""
					navUpKey := "Up|8|W"
					navDownKey := "Down|6|S"
					navLeftKey := "Left|7|A"
					navRightKey := "Right|9|D"
					navSelectKey := "Enter|G"
					navP2UpKey := "N|Numpad8"
					navP2DownKey := "Q|Numpad0"
					navP2LeftKey := "M|Numpad7"
					navP2RightKey := "O|Numpad9"
					navP2SelectKey := "Enter|G"
					originalWidth := "1280"
					originalHeight := "1024"
					vdEnabled := "true"
					vdFullPath := "C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe"
					vdUseSCSI := "true"
					vdDriveLetter := "E"
					vdDriveLetterScsi := ""
					vdAddDrive := "true"
					demulShooterPath := ""
					servoStikEnabled := "8"
					servoStikExitMode := "8"
					ledblinkyEnabled := "false"
					ledblinkySystemName := ""
					ledblinkyFullPath := ""
					ledblinkyProfilePath := "D:\Arcade\RocketLauncher\Profiles\LEDBlinky"
					ledblinkyRLProfile := "D:\Arcade\RocketLauncher\Profiles\LEDBlinky\RocketLauncher"
					winIPACFullPath := ""
					ultraMapEnabled := "false"
					ultraMapFullPath := ""
					emuIdleShutdown := "0"
					launchPasswordHash := "zQJHGuIBD6bt2rEoPola0Rbrl81Ci3lgdm1mxbcm+QfXe+SDPHV0ig=="
					cursorSize := ""
					hideCursor := "true"
					hideEmu := "false"
					hideFE := "false"
					suspendFE := "false"
					fadeIn := "true"
					fadeInDuration := "500"
					fadeInTransitionAnimation := "DefaultAnimateFadeIn"
					fadeInDelay := "0"
					fadeInExitDelay := "0"
					fadeOutExitDelay := "0"
					fadeOut := "false"
					fadeOutExtraScreen := "false"
					fadeOutDuration := "500"
					fadeOutTransitionAnimation := "DefaultAnimateFadeOut"
					fadeOutDelay := "0"
					fadeLyrInterpolation := "7"
					fadeMuteEmulator := "false"
					fadeUseBackgrounds := "false"
					fadeClickThrough := "false"
					fadeSounds := "true"
					fade7zProgressMode := "extraction"
					fadeWidthBaseRes := "1920"
					fadeHeightBaseRes := "1080"
					fadeLyr1Color := "FF000000"
					fadeLyr1AlignImage := "Stretch and Lose Aspect"
					fadeLyr2Pos := "Stretch and Keep Aspect"
					fadeLyr2X := "0"
					fadeLyr2Y := "0"
					fadeLyr2W := ""
					fadeLyr2H := ""
					fadeLyr2Adjust := "1"
					fadeLyr2PicPad := "0"
					fadeLyr2Prefix := "Extra Layer 1 - Console"
					fadeLyr3Pos := "Center"
					fadeLyr3X := "450"
					fadeLyr3Y := "450"
					fadeLyr3W := ""
					fadeLyr3H := ""
					fadeLyr3Adjust := "1"
					fadeLyr3PicPad := "0"
					fadeLyr3Speed := "750"
					fadeLyr3Animation := "DefaultFadeAnimation"
					fadeLyr37zAnimation := "DefaultFadeAnimation"
					fadeLyr3Type := "imageandbar"
					fadeLyr3ImgFollow7zProgress := "true"
					fadeLyr3Repeat := "1"
					fadeLyr3BackImageTransparency := "30"
					fadeLyr3StaticPos := "No Alignment"
					fadeLyr3StaticX := "0"
					fadeLyr3StaticY := "870|1575"
					fadeLyr3StaticW := ""
					fadeLyr3StaticH := ""
					fadeLyr3StaticAdjust := "1"
					fadeLyr3StaticPicPad := "0"
					fadeLyr3StaticPrefix := "Info Bar"
					fadeLyr4Adjust := "1"
					fadeLyr4X := "1792|952"
					fadeLyr4Y := "891|1596"
					fadeLyr4W := "128"
					fadeLyr4H := ""
					fadeLyr4Pos := "Bottom Right Corner"
					fadeLyr4FPS := "50"
					fadeLyr4PicPad := "0"
					fadeTranspGifColor := "FFFFFF"
					fadeBarWindow := "Image"
					fadeBarWindowX := ""
					fadeBarWindowY := ""
					fadeBarWindowW := "900"
					fadeBarWindowH := ""
					fadeBarWindowR := "30"
					fadeBarWindowM := "30"
					fadeBarWindowHatchStyle := "8"
					fadeBar := "true"
					fadeProgressDuration := "0"
					fadeBarBack := "true"
					fadeBarBackColor := "FF555555"
					fadeBarH := "30"
					fadeBarR := "10"
					fadeBarColor := "DD00BFFF"
					fadeBarHatchStyle := "8"
					fadeBarPercentageText := "true"
					fadeBarInfoText := "true"
					fadeBarXOffset := "0"
					fadeBarYOffset := "150"
					fadeRomInfoDescription := "filtered text"
					fadeRomInfoSystemName := "image"
					fadeRomInfoYear := "text with label"
					fadeRomInfoDeveloper := "disabled"
					fadeRomInfoPublisher := "disabled"
					fadeRomInfoGenre := "disabled"
					fadeRomInfoRating := "image"
					fadeRomInfoOrder := "Description|SystemName|Year|Manufacturer|Genre|Rating"
					fadeRomInfoTextPlacement := "User Defined"
					fadeRomInfoTextMargin := "7"
					fadeRomInfoText1Options := "w1600|787 h90 x165 y870|1575 cFFE1E1E1 r4 s90 Left Regular"
					fadeRomInfoText2Options := "w400 x8 y15 cFF555555 r4 s60 Bold"
					fadeRomInfoText3Options := "w310 x165 y960|1665 cFFE1E1E1 r4 s66 Left Regular"
					fadeRomInfoText4Options := "w1305|492 h66 x460 y960|1665 cFFE1E1E1 r4 s66 Left Regular"
					fadeRomInfoText5Options := "cFF555555 r4 s42 Bold"
					fadeRomInfoText6Options := "h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular"
					fadeRomInfoText7Options := "h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular"
					fadeStats_Number_of_Times_Played := "text with label"
					fadeStats_Last_Time_Played := "text with label"
					fadeStats_Average_Time_Played := "text with label"
					fadeStats_Total_Time_Played := "text with label"
					fadeStats_System_Total_Played_Time := "text with label"
					fadeStats_Total_Global_Played_Time := "text with label"
					fadeStatsInfoOrder := "Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time"
					fadeStatsInfoTextPlacement := "topRight"
					fadeStatsInfoTextMargin := "7"
					fadeStatsInfoText1Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText2Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText3Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText4Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText5Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText6Options := "cFFB4B4B4 r4 s22 Bold"
					fadeText1X := "0"
					fadeText1Y := "0"
					fadeText1Options := "cFFB4B4B4 r4 s30 Right Bold"
					fadeText1 := "Loading Game"
					fadeText2X := "0"
					fadeText2Y := "0"
					fadeText2Options := "cFFB4B4B4 r4 s30 Right Bold"
					fadeText2 := "Extraction Complete, Ready"
					fadeText3 := "Loading Game"
					fadeText4 := "Loading Complete"
					fadeFont := "Bebas Neue"
					fadeSystemAndRomLayersOnly := "false"
					fadeExtractionTime := "disabled"
					fadeExtractionTimeTextX := "0"
					fadeExtractionTimeTextY := "0"
					fadeExtractionTimeTextOptions := "cFF555555 r4 s20 Bold"
					fadeInterruptKey := ""
					detectFadeErrorEnabled := "true"
					fadeImgPath := "D:\Arcade\RocketLauncher\Media\Fade"
					RLDataPath := "D:\Arcade\RocketLauncher\Data"
					RLMediaPath := "D:\Arcade\RocketLauncher\Media"
					RLErrSoundPath := "D:\Arcade\RocketLauncher\Media\Sounds\Error"
					modulesPath := "D:\Arcade\RocketLauncher\Modules"
					moduleFullName := "D:\Arcade\RocketLauncher\Modules\RetroArch\NewRetroArch.ahk"
					moduleName := "NewRetroArch"
					modulePath := "D:\Arcade\RocketLauncher\Modules\RetroArch"
					moduleExtension := "ahk"
					moduleExtensionsPath := "D:\Arcade\RocketLauncher\Module Extensions"
					libPath := "D:\Arcade\RocketLauncher\Lib"
					sevenZEnabled := "false"
					sevenZPath := "D:\Arcade\RocketLauncher\Module Extensions\7z.exe"
					sevenZDllPath := "D:\Arcade\RocketLauncher\Module Extensions\7z.dll"
					sevenZExtractPath := "D:\Arcade\cache"
					sevenZExtractPathOrig := ""
					sevenZAttachSystemName := "false"
					sevenZDelTemp := "true"
					sevenZFormats := ".zip|.rar|.7z|.lha|.lzh|.gzip|.tar"
					sevenZFormatsNoP := "zip|rar|7z|lha|lzh|gzip|tar"
					sevenZFormatsRegEx := "\.zip|\.rar|\.7z|\.lha|\.lzh|\.gzip|\.tar"
					sevenZGamesToKeep := ""
					sevenZDeletePerSystem := "false"
					sevenZExtensions := "zip|rar|7z|lha|lzh|gzip|tar"
					7zExtractPath := "D:\Arcade\cache"
					mgEnabled := "false"
					mgKey := "~NumpadSub"
					mgBackgroundColor := "FF000000"
					mgSidePadding := "0.2"
					mgWidthBaseRes := "1920"
					mgHeightBaseRes := "1080"
					mgYOffset := "500"
					mgFont := "Arial"
					mgText1Options := "x10p y30p w80p Center cBBFFFFFF r4 s100 BoldItalic"
					mgText1Text := "Please select a game"
					mgText2Options := "w96p cFFFFFFFF r4 s50 Center BoldItalic"
					mgText2Offset := "70"
					mgUseSound := "true"
					mgSoundfreq := "300"
					mgExitEffect := "none"
					mgSelectedEffect := "rotate"
					mgUseGameArt := "false"
					mgCandidate := ""
					mgValidTypes := "\(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side"
					mgOnLaunch := "false"
					pauseEnabled := "true"
					pauseKey := "/"
					pauseBackToMenuBarKey := "X"
					pauseZoomInKey := "B|H|2|Numpad2|U"
					pauseZoomOutKey := "C|I|3|Numpad3|Tab"
					pauseScreenshotKey := "~PrintScreen"
					pauseHiToTextPath := "D:\Arcade\RocketLauncher\Module Extensions\HiToText.exe"
					pauseSaveStateKeyCodes := ""
					pauseLoadStateKeyCodes := ""
					keyboardEncoder := ""
					keyboardEncoderEnabled := "false"
					keymapperEnabled := "true"
					keymapperAHKMethod := "Internal"
					keymapper := "xpadder"
					xpadderFullPath := "D:\Arcade\Utilities\Xpadder\Xpadder.exe"
					joyToKeyFullPath := "C:\Windows\Utilities\VJoy\VJoy.exe"
					profilePath := "D:\Arcade\RocketLauncher\Profiles"
					keymapperProfilePath := "D:\Arcade\RocketLauncher\Profiles\xpadder"
					keymapperFrontEndProfileName := "HyperSpin"
					keymapperFrontEndProfile := "xpadder"
					keymapperRocketLauncherProfileEnabled := "true"
					joyIDsEnabled := "true"
					joyIDsPreferredControllersGlobal := "Controller (Xbox 360 Wireless Receiver for Windows)|Controller (XBOX 360 For Windows)|ATRAK Device #1|Nintendo RVL-CNT-01"
					joyIDsPreferredControllersSystem := "use_global"
					joyIDsPreferredControllersOnExit := ""
					CustomJoyNamesEnabled := "false"
					CustomJoyNames := ""
					rotateMethod := "display"
					FEProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\HyperSpin"
					defaultProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\_Default"
					systemProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave"
					xPadderSystemProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default"
					emuProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch"
					romProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns"
					RocketLauncherProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\RocketLauncher"
					blankProfile := "D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank"
					ahkFEProfile := "D:\Arcade\RocketLauncher\Profiles\AHK\HyperSpin"
					ahkDefaultProfile := "D:\Arcade\RocketLauncher\Profiles\AHK\_Default"
					ahkSystemProfile := "D:\Arcade\RocketLauncher\Profiles\AHK\Sammy Atomiswave"
					ahkEmuProfile := "D:\Arcade\RocketLauncher\Profiles\AHK\Sammy Atomiswave\NewRetroarch"
					ahkRomProfile := "D:\Arcade\RocketLauncher\Profiles\AHK\Sammy Atomiswave\fotns"
					ahkRocketLauncherProfile := "D:\Arcade\RocketLauncher\Profiles\AHK\RocketLauncher"
					bezelEnabled := "false"
					bezelICEnabled := "false"
					shaderName := "false"
					shaderColor := ""
					shaderTransparency := ""
					statisticsEnabled := "true"
					pressDuration := "-1"
					emuVolume := "1"
					dxwndIni := "D:\Arcade\RocketLauncher\Module Extensions\dxwnd\dxwnd.ini"
					dxwndFullPath := "D:\Arcade\RocketLauncher\Module Extensions\dxwnd\dxwnd.exe"
					qResFullPath := "D:\Arcade\RocketLauncher\Module Extensions\QRes.exe"
					mon1O := ""
					pacDrivedllFile := "D:\Arcade\RocketLauncher\Module Extensions\PacDrive32.dll"
					userFadeAnimIniFile := "D:\Arcade\RocketLauncher\Lib\User Fade Animations.ini"
					testFile := ""
					testDuration := ""
					initialErrorMode := "0"

12:52:29:289 | RL |      INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
12:52:29:289 | RL |      INFO  | +0     | BuildScript - Loaded Keymapper Init.ahk scripts
12:52:29:289 | RL |      INFO  | +0     | BuildScript - Loaded Fade Init.ahk scripts
12:52:29:289 | RL |      INFO  | +0     | BuildScript - Loaded Pause Init.ahk scripts
12:52:29:289 | RL |      INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
12:52:29:289 | RL |     DEBUG  | +0     | BuildScript - Module starts on line: 2
12:52:29:290 | RL |      INFO  | +0     | BuildScript - Validating module
12:52:29:294 | RL |      INFO  | +0     | BuildScript - Validation complete
12:52:29:295 | RL |      INFO  | +0     | BuildScript - Module:
						
					
					    MEmu = RetroArch
					    MEmuV =  v12-25-2014 Nightly
					    MURL = http://themaister.net/retroarch.html
					    MAuthor = djvj,zerojay
					    MVersion = 2.2.1
					    MCRC = CE967CAD
					    iCRC = 51E752D3
					    MID = 635038268922229162
					    MSystem = "AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Atari 2600","Atari 5200","Atari 7800","Atari Jaguar","Atari Lynx","Atari ST","Bally Astrocade","Bandai Super Vision 8000","Bandai Wonderswan","Bandai Wonderswan Color","Casio PV-1000","Casio PV-2000","ColecoVision","Commodore Amiga","Creatronic Mega Duck","Dragon 64","Emerson Arcadia 2001","Entex Adventure Vision","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Final Burn Alpha","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","JungleTac Sport Vii","MAME","Magnavox Odyssey 2","Microsoft MSX","Microsoft MSX2","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC TurboGrafx-16","NEC SuperGrafx","NEC TurboGrafx-CD","Nintendo 64","Nintendo Arcade Systems","Nintendo DS","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Color","Nintendo Game Boy Japan","Nintendo Game Boy Advance","Nintendo Super Game Boy","Nintendo Pokemon Mini","Nintendo Virtual Boy","Nintendo Super Famicom","Nintendo Super Famicom Satellaview","Panasonic 3DO","Pecom 64","Philips CD-i","Philips Videopac","RCA Studio II","Sammy Atomiswave","Sega 32X","Sega SC-3000","Sega SG-1000","Sega CD","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sinclair ZX Spectrum","Sony PlayStation","Sony PocketStation","Sony PSP","Sord M5","SNK Neo Geo","SNK Neo Geo MVS","SNK Neo Geo AES","SNK Neo Geo Pocket","SNK Neo Geo CD","SNK Neo Geo Pocket Color","Spectravideo SV-328","Super Nintendo Entertainment System","Tandy TRS-80 Color Computer 3","Texas Instruments TI 99-4A","Thomson MO5","Tomy Tutor","VTech CreatiVision","Watara Supervision"
					    ;----------------------------------------------------------------------------
					    ; Notes:
					    ; If the emu doesn't load and you get no error, usually this means the LibRetro DLL is not working!
					    ; Devs stated they will never add support for mounted images (like via DT)
					    ; Fullscreen is controlled via the module setting in HLHQ
					    ; This module uses the CLI version of RetroArch (retroarch.exe), not the GUI (retroarch-phoenix.exe).
					    ; The emu may make a mouse cursor appear momentarily during launch, MouseMove and hide_cursor seem to have no effect
					    ; Enable 7z support for archived roms
					    ; Available CLI options: https://github.com/PyroFilmsFX/iOS/blob/master/docs/retroarch.1
					    ;
					    ; LibRetro DLLs:
					    ; LibRetro DLLs come with the emu, but here is another source for them: http://forum.themaister.net/
					    ; Whatever cores you decide to use, make sure they are extracted anywhere in your Emu_Path folder (place them in a LibRetros subfolder if you like). The module will find and load the core you choose for each system.
					    ; You can find supported cores that Retroarch supports simply by downloading them from the "retroarch-phoenix.exe" or by visiting here: https://github.com/libretro/libretro.github.com/wiki/Supported-cores
					    ; Some good discussion on cores and filters: http://forum.themaister.net/viewtopic.php?id=270
					    ; The module's LibRetro settings in HLHQ need to match the name of that core for each system you use this emu. Read the tooltips to see the default one used when they are not customized by you.
					    ;
					    ; SRM files:
					    ; srm are stored in a "srm" dir in the emu folder. Each system ran through retroarch gets its own folder inside srm
					    ;
					    ; Save states:
					    ; Save states are stored in a "save" dir in the emu folder. Each system ran through retroarch gets its own folder inside save
					    ;
					    ; Config files:
					    ; RetroArch will use per-system cfg files named to match your System Name. The global one is "retroarch.cfg" but the module will search for cfg files in any of the emu's subfolders. If system ones exist, they take precedence over retroarch.cfg.
					    ; This allows different settings for each system you use this emulator for. If you want all systems to use the same retroarch.cfg, do not have any system named cfg files, or just create ones for the systems you want custom settings.
					    ;
					    ; System Specific Notes:
					    ; Microsoft MSX/MSX2: Launch an MSX game and in the core options, set the console to be an MSX2 and it will play both just fine.
					    ; Nintendo Famicom Disk System - Requires disksys.rom be placed in the folder you define as system_directory in the RetroArch's cfg.
					    ; Sega CD - Requires "bios_CD_E.bin", "bios_CD_J.bin", "bios_CD_U.bin" all be placed in the folder you define as system_directory in the RetroArch's cfg.
					    ; Super Nintendo Entertainment System - requires split all 10 dsp# & st### roms all be placed in the folder you define as system_directory in the RetroArch's cfg. Many games, like Super Mario Kart require these.
					    ; NEC TurboGrafx-CD - Requires "syscard3.pce" be placed in the folder you define as system_directory in the RetroArch's cfg.
					    ; Nintendo Super Game Boy - Set the Module setting in HLHQ SuperGameBoy to true to enable a system or only a rom to use SGB mode. This is not needed if your systemName is set to the official name of "Nintendo Super Game Boy". Requires "sgb.boot.rom" and "Super Game Boy (World).sfc" to be placed in the folder you define as system_directory in the RetroArch's cfg. This is needed if you want to use Super game boy mode and color palettes. Also requires using the latest bsnes core. Not all games support SGB mode.
					    ; MAME: Turn off the nag screen by running a game, then press F1 and go to core options and switch off the nag screen there.
					    ;----------------------------------------------------------------------------
					    StartModule()
					    BezelGUI()
					    FadeInStart()
					     
					    ; This object controls how the module reacts to different systems. RetroArch can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.
					    mType := Object("AAE","LibRetro_AAE","Amstrad CPC","LibRetro_CPC","Amstrad GX4000","LibRetro_GX4K","APF Imagination Machine","LibRetro_APF","Atari 2600","LibRetro_2600","Atari 5200","LibRetro_5200","Atari 7800","LibRetro_7800","Atari Jaguar","LibRetro_JAG","Atari Lynx","LibRetro_LYNX","Atari ST","LibRetro_ST","Bally Astrocade","LibRetro_BAST","Bandai Super Vision 8000","LibRetro_SV8K","Bandai Wonderswan","LibRetro_WSAN","Bandai Wonderswan Color","LibRetro_WSANC","Casio PV-1000","LibRetro_CAS1K","Casio PV-2000","LibRetro_CAS2K","ColecoVision","LibRetro_COLEC","Commodore Amiga","LibRetro_PUAE","Creatronic Mega Duck","LibRetro_DUCK","Dragon 64","LibRetro_DRAG64","Emerson Arcadia 2001","LibRetro_A2001","Entex Adventure Vision","LibRetro_AVISION","Epoch Game Pocket Computer","LibRetro_GPCKET","Epoch Super Cassette Vision","LibRetro_SCV","Exidy Sorcerer","LibRetro_SORCR","Fairchild Channel F","LibRetro_CHANF","Final Burn Alpha","LibRetro_FBA","Funtech Super Acan","LibRetro_SACAN","GamePark 32","LibRetro_GP32","GCE Vectrex","LibRetro_VECTX","Hartung Game Master","LibRetro_GMASTR","JungleTac Sport Vii","LibRddetro_SPORTV","MAME","LibRetro_MAME","Magnavox Odyssey 2","LibRetro_ODYS2","Mattel Aquarius","LibRetro_AQUA","Mattel Intellivision","LibRetro_INTV","MGT Sam Coupe","LibRetro_SAMCP","Microsoft MS-DOS","LibRetro_MSDOS","Microsoft MSX","LibRetro_MSX","Microsoft MSX2","LibRetro_MSX2","Microsoft Windows 3.x","LibRetro_WIN3X","Matra & Hachette Alice","LibRetro_ALICE","NEC PC Engine","LibRetro_PCE","NEC PC Engine-CD","LibRetro_PCECD","NEC PC-FX","LibRetro_PCFX","NEC SuperGrafx","LibRetro_SGFX","NEC TurboGrafx-16","LibRetro_TG16","NEC TurboGrafx-CD","LibRetro_TGCD","Nintendo 64","LibRetro_N64","Nintendo Arcade Systems","LibRetro_NINARC","Nintendo DS","LibRetro_DS","Nintendo Entertainment System","LibRetro_NES","Nintendo Famicom","LibRetro_NFAM","Nintendo Famicom Disk System","LibRetro_NFDS","Nintendo Game Boy","LibRetro_GB","Nintendo Game Boy Color","LibRetro_GBC","Nintendo Game Boy Japan","LibRetro_GBJ","Nintendo Game Boy Advance","LibRetro_GBA","Nintendo Pokemon Mini","LibRetro_POKE","Nintendo Super Famicom","LibRetro_NSF","Nintendo Super Famicom Satellaview","LibRetro_NSFS","Nintendo Super Game Boy","LibRetro_SGB","Nintendo Virtual Boy","LibRetro_NVB","Panasonic 3DO","LibRetro_3DO","Pecom 64","LibRetro_P64","Philips CD-i","LibRetro_CDI","Philips Videopac","LibRetro_PVID","RCA Studio II","LibRetro_STUD2","SCUMMVM","LibRetro_SCUMM","Sammy Atomiswave","Libretro_DCAST","Sega 32X","LibRetro_32X","Sega CD","LibRetro_SCD","Sega Game Gear","LibRetro_GG","Sega Genesis","LibRetro_GEN","Sega Mega Drive","LibRetro_GEN","Sega Master System","LibRetro_SMS","Sega Pico","LibRetro_PICO","Sega VMU","LibRetro_SVMU","Sony PlayStation","LibRetro_PSX","Sony PocketStation","LibRetro_POCKS","Sony PSP","LibRetro_PSP","Sega Saturn","LibRetro_SAT","Sega Saturn Japan","LibRetro_SAT","Sega SG-1000","LibRetro_SG1K","Sega SC-3000","LibRetro_SC3K","Sega ST-V","LibRetro_STV","SNK Neo Geo","LibRetro_NEO","SNK Neo Geo AES","LibRetro_NEOAES","SNK Neo Geo Pocket","LibRetro_NGP","SNK Neo Geo Pocket Color","LibRetro_NGPC","SNK Neo Geo CD","LibRetro_NEOCD","Sord M5","LibRetro_SORD","Spectravideo SV-328","LibRetro_SV328","Super Nintendo Entertainment System","LibRetro_SNES","Sinclair ZX Spectrum","LibRetro_SPECZX","Tandy TRS-80 Color Computer 3","LibRetro_TRS80","Texas Instruments TI 99-4A","LibRetro_TI99","Thomson MO5","LibRetro_MO5","Tomy Tutor","LibRetro_TOMY","VTech CreatiVision","LibRetro_VTECH","Watara Supervision","LibRetro_SUPRV")
					    ident := mType[systemName]      ; search object for the systemName identifier Retroarch uses for its cores
					    If !ident
					            ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this " . MEmu . " module: " . moduleName)
					     
					    coreTypes := Object("LibRetro_2600","stella_libretro","LibRetro_5200","mess_libretro","LibRetro_7800","prosystem_libretro","LibRetro_32X","picodrive_libretro","LibRetro_3DO","4do_libretro","LibRetro_A2001","mess_libretro","LibRetro_AAE","mame_libretro","LibRetro_ALICE","mess_libretro","LibRetro_APF","mess_libretro","LibRetro_AQUA","mess_libretro","LibRetro_AVISION","mess_libretro","LibRetro_BAST","mess_libretro","LibRetro_CAS1K","mess_libretro","LibRetro_CAS2K","mess_libretro","LibRetro_CDI","mess_libretro","LibRetro_CHANF","mess_libretro","LibRetro_COLEC","mess_libretro","LibRetro_CPC","mess_libretro","LibRetro_DRAG64","mess_libretro","LibRetro_DS","desmume_libretro","LibRetro_DUCK","mess_libretro","LibRetro_FBA","fb_alpha_libretro","LibRetro_GB","gambatte_libretro","LibRetro_GBC","gambatte_libretro","LibRetro_GBA","vba_next_libretro","LibRetro_GBJ","gambatte_libretro","LibRetro_GEN","genesis_plus_gx_libretro","LibRetro_GG","genesis_plus_gx_libretro","LibRetro_GMASTR","mess_libretro","LibRetro_GP32","mess_libretro","LibRetro_GPCKET","mess_libretro","LibRetro_GX4K","mess_libretro","LibRetro_INTV","mess_libretro","LibRetro_JAG","virtualjaguar_libretro","LibRetro_LYNX","handy_libretro","LibRetro_MAME","mame_libretro","LibRetro_MO5","mess_libretro","LibRetro_MSDOS","dosbox_libretro","LibRetro_MSX","bluemsx_libretro","LibRetro_MSX2","bluemsx_libretro","LibRetro_N64","mupen64plus_libretro","LibRetro_NEO","fb_alpha_libretro","LibRetro_NEOCD","mess_libretro","LibRetro_NEOAES","mess_libretro","LibRetro_NES","nestopia_libretro","LibRetro_NFAM","nestopia_libretro","LibRetro_NFDS","nestopia_libretro","LibRetro_NSF","bsnes_balanced_libretro","LibRetro_NSFS","snes9x_libretro","LibRetro_NVB","mednafen_vb_libretro","LibRetro_NGP","mednafen_ngp_libretro","LibRetro_NGPC","mednafen_ngp_libretro","LibRetro_NINARC","mame_libretro","LibRetro_ODYS2","mess_libretro","LibRetro_P64","mess_libretro","LibRetro_PCE","mednafen_pce_fast_libretro","LibRetro_PCECD","mednafen_pce_fast_libretro","LibRetro_PCFX","mednafen_pcfx_libretro","LibRetro_PICO","picodrive_libretro","LibRetro_POCKS","mess_libretro","LibRetro_POKE","mess_libretro","LibRetro_PSP","ppsspp_libretro","LibRetro_PSX","mednafen_psx_libretro","LibRetro_PUAE","puae_libretro","LibRetro_PVID","mess_libretro","LibRetro_SACAN","mess_libretro","LibRetro_SAMCP","mess_libretro","LibRetro_SAT","yabause_libretro","LibRetro_SC3K","mess_libretro","LibRetro_SCD","genesis_plus_gx_libretro","LibRetro_SCV","mess_libretro","LibRetro_SCUMM","scummvm_libretro","Libretro_DCAST","flycast_libretro","LibRetro_SG1K","genesis_plus_gx_libretro","LibRetro_SGB","bsnes_balanced_libretro","LibRetro_SGFX","mednafen_supergrafx_libretro","LibRetro_SMS","genesis_plus_gx_libretro","LibRetro_SNES","bsnes_balanced_libretro","LibRetro_SORCR","mess_libretro","LibRetro_SORD","mess_libretro","LibRetro_SPECZX","mess_libretro","LibRetro_SPORTV","mess_libretro","LibRetro_ST","hatari_libretro","LibRetro_STUD2","mess_libretro","LibRetro_STV","mame_libretro","LibRetro_SV328","mess_libretro","LibRetro_SV8K","mess_libretro","LibRetro_SVMU","mess_libretro","LibRetro_SUPRV","mess_libretro","LibRetro_TG16","mednafen_pce_fast_libretro","LibRetro_TGCD","mednafen_pce_fast_libretro","LibRetro_TI99","mess_libretro","LibRetro_TOMY","mess_libretro","LibRetro_TRS80","mess_libretro","LibRetro_VECTX","mess_libretro","LibRetro_VTECH","mess_libretro","LibRetro_WIN3X","dosbox_libretro","LibRetro_WSAN","mednafen_wswan_libretro","LibRetro_WSANC","mednafen_wswan_libretro")
					    libRetroCore := coreTypes[ident]        ; search object for the default core for this ident
					    If !libRetroCore
					            ScriptError("Your Core ID is: " . ident . "`nCould not find a default core to use. Please update the module with a default core.")
					     
					    settingsFile := modulePath . "\" . moduleName . ".ini"
					    core := IniReadCheck(settingsFile, systemName, "LibRetro_Core",libRetroCore,,1)
					    Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
					    configFolder := IniReadCheck(settingsFile, "Settings", "ConfigFolder",emuPath . "\config",,1)
					    messRomPath := IniReadCheck(settingsFile, "Settings", "MESS_BIOS_Roms_Folder",,,1)
					    hideConsole := IniReadCheck(settingsFile, "Settings", "HideConsole","true",,1)
					    useCoreConfigs := IniReadCheck(settingsFile, "Settings", "UseCoreConfigs","true",,1)
					    superGB := IniReadCheck(settingsFile, systemName . "|" . romName, "SuperGameBoy","false",,1)
					    enableNetworkPlay := IniReadCheck(settingsFile, "Network|" . romName, "Enable_Network_Play","false",,1)
					    overlay := IniReadCheck(settingsFile, systemName . "|" . romName, "Overlay",,,1)
					    videoShader := IniReadCheck(settingsFile, systemName . "|" . romName, "VideoShader",,,1)
					    aspectRatioIndex := IniReadCheck(settingsFile, systemName . "|" . romName, "AspectRatioIndex",,,1)
					    customViewportWidth := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportWidth",,,1)
					    customViewportHeight := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportHeight",,,1)
					    customViewportX := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportX",,,1)
					    customViewportY := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportY",,,1)
						rotateScreen := IniReadCheck(settingsFile, systemName . "|" . romName, "Rotation",,,1)
						cropOverscan := IniReadCheck(settingsFile, systemName . "|" . romName, "CropOverscan",,,1)
						threadedVideo := IniReadCheck(settingsFile, systemName . "|" . romName, "ThreadedVideo",,,1)
						vSync := IniReadCheck(settingsFile, systemName . "|" . romName, "VSync",,,1)
						integerScale := IniReadCheck(settingsFile, systemName . "|" . romName, "IntegerScale",,,1)
					     
					    configFolder := GetFullName(configFolder)
					    messRomPath := GetFullName(messRomPath)
					    overlay := GetFullName(overlay)
					    videoShader := GetFullName(videoShader)
					     
					    retroArchSystem := systemName
					     
					    If (ident = "LibRetro_SGB" || superGB = "true") ; if system or rom is set to use Super Game Boy
					    {       superGB = true  ; setting this just in case it's false and the system is Nintendo Super Game Boy
					            sgbRomPath := CheckFile(emuPath . "\system\Super Game Boy (World).sfc","Could not find the rom required for Super Game Boy support. Make sure the rom ""Super Game Boy (World).sfc"" is located in: " . emuPath . "\system")
					            CheckFile(emuPath . "\system\sgb.boot.rom","Could not find the bios required for Super Game Boy support. Make sure the bios ""sgb.boot.rom"" is located in: " . emuPath . "\system")
					            ident := "LibRetro_SGB" ; switching to Super Game Boy mode
					            retroArchSystem := "Nintendo Super Game Boy"
					    }
					     
					    ; Find the dll for this system
					    libDll := CheckFile(emuPath . "\cores\" . core . ".dll", "Your " . ident . " dll is set to " . core . " but could not locate this file:`n" . emuPath . "\cores\" . core . ".dll")
					     
					    ; Find the cfg file to use
					    globalRetroCfg := configFolder . "\retroarch.cfg"
					    systemRetroCfg := configFolder . "\" . retroArchSystem . ".cfg"
					    coreRetroCfg := configFolder . "\" . core . ".dll.cfg"
					    foundCfg :=
					    If FileExist(systemRetroCfg) {  ; check for system cfg first
					            retroCFGFile := systemRetroCfg
					            foundCfg := 1
					    } Else If (useCoreConfigs && FileExist(coreRetroCfg)) { ; 2nd option is a core config
					            retroCFGFile := coreRetroCfg
					            foundCfg := 1
					    } Else If FileExist(globalRetroCfg) {   ; 3rd is global cfg
					            retroCFGFile := globalRetroCfg
					            foundCfg := 1
					    }
					    If !foundCfg
					            Log("Module - Could not find a cfg file to update settings. RetroArch will make one for you.",2)
					    Else
					            Log("Module - " . MEmu . " is using " . retroCFGFile . " as its config file.")
					     
					    If foundCfg {
					            retroCFG := LoadProperties(retroCFGFile)        ; load the config into memory
					            raCfgHasChanges :=
					            If overlay {
					                    WriteProperty(retroCFG, "input_overlay", overlay,1,1)
					                    raCfgHasChanges := 1
					            }
					            If videoShader {
					                    WriteProperty(retroCFG, "video_shader", videoShader,1,1)
					                    raCfgHasChanges := 1
					            }
					            If aspectRatioIndex {
					                    WriteProperty(retroCFG, "aspect_ratio_index", aspectRatioIndex,1,1)
					                    raCfgHasChanges := 1
					            }
					            If customViewportWidth {
					                    WriteProperty(retroCFG, "custom_viewport_width", customViewportWidth,1,1)
					                    raCfgHasChanges := 1
					            }
					            If customViewportHeight {
					                    WriteProperty(retroCFG, "custom_viewport_height", customViewportHeight,1,1)
					                    raCfgHasChanges := 1
					            }
					            If customViewportX {
					                    WriteProperty(retroCFG, "custom_viewport_x", customViewportX,1,1)
					                    raCfgHasChanges := 1
					            }
					            If customViewportY {
					                    WriteProperty(retroCFG, "custom_viewport_y", customViewportY,1,1)
					                    raCfgHasChanges := 1
					            }
								If rotateScreen {
					                    WriteProperty(retroCFG, "video_rotation", rotateScreen,1,1)
					                    raCfgHasChanges := 1
					            }
								If cropOverscan {
					                    WriteProperty(retroCFG, "video_crop_overscan", cropOverscan,1,1)
					                    raCfgHasChanges := 1
					            }
								If threadedVideo {
					                    WriteProperty(retroCFG, "video_threaded", threadedVideo,1,1)
					                    raCfgHasChanges := 1
					            }
								If vSync {
					                    WriteProperty(retroCFG, "video_vsync", vSync,1,1)
					                    raCfgHasChanges := 1
					            }
								If integerScale {
					                    WriteProperty(retroCFG, "video_scale_integer", integerScale,1,1)
					                    raCfgHasChanges := 1
					            }
					            If raCfgHasChanges
					                    SaveProperties(retroCFGFile, retroCFG) 
					    }
					     
					    If RegExMatch(ident, "LibRetro_NFDS|LibRetro_SCD|LibRetro_TGCD|LibRetro_PCECD|LibRetro_PCFX") {         ; these systems require the retroarch settings to be read
					            retroSysDir := ReadProperty(retroCFG,"system_directory")        ; read value
					            retroSysDir := ConvertRetroCFGKey(retroSysDir)  ; remove dbl quotes
					            StringLeft, retroSysDirLeft, retroSysDir, 2
					            If (retroSysDirLeft = ":\") {   ; if retroarch is set to use a default folder
					                    StringTrimLeft, retroSysDir, retroSysDir, 1
					                    Log("Module - RetroArch is using a relative system path: """ . retroSysDir . """")
					                    retroSysDir := emuPath . retroSysDir
					            }
					            If !retroSysDir
					                    ScriptError("RetroArch requires you to set your system_directory and place bios rom(s) in there for """ . retroArchSystem . """ to function. Please do this first by running ""retroarch-phoenix.exe"" manually.")
					            StringRight, checkForSlash, retroSysDir, 1
					            If (checkForSlash = "\")        ; check if a backslash is the last character. If it is, remove it, as this is non-standard method to define folders
					                    StringTrimRight, retroSysDir, retroSysDir, 1
					    }
					     
					    If (RegExMatch(ident, "LibRetro_N64|LibRetro_NES|LibRetro_LYNX|LibRetro_PSX") || RegExMatch(ident, "LibRetro_NES") && (InStr(core, "nestopia_libretro"))) {     ; these systems will use an ini to store game specific settings
					            sysSettingsFile := CheckSysFile(modulePath . "\" . systemName . ".ini") ; create the ini if it does not exist
					            coreOptionsCFGFile := CheckFile(emuPath . "\retroarch-core-options.cfg", "Could not find retroarch-core-options.cfg in retroarch directory: """ . emuPath . """")
					            coreOptionsCFG := LoadProperties(coreOptionsCFGFile)
					            If InStr(ident, "LibRetro_N64") {       ; Nintendo 64
					                    mupenGfx := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Gfx_Plugin", "auto",,1)
					                    mupenRsp := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_RSP_Plugin", "auto",,1)
					                    mupenCpu := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_CPU_Core", "dynamic_recompiler",,1)
					                    mupenPak1 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_1", "memory",,1)
					                    mupenPak2 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_2", "memory",,1)
					                    mupenPak3 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_3", "memory",,1)
					                    mupenPak4 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_4", "memory",,1)
					                    mupenGfxAccur := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Gfx_Accuracy", "high",,1)
					                    mupenExpMem := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Disable_Exp_Memory", "no",,1)
					                    mupenTexturFilt := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Texture_Filtering", "nearest",,1)
					                    mupenViRefresh := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_VI_Refresh", "2200",,1)
					                    mupenFramerate := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Framerate", "fullspeed",,1)
					                    mupenResolution := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Resolution", "640x480",,1)
					                    mupenPolyOffstFctr := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Polygon_Offset_Factor", "-3.0",,1)
					                    mupenPolyOffstUnts := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Polygon_Offset_Units", "-3.0",,1)
					                    mupenViOverlay := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_VI_Overlay", "disabled",,1)
					                    mupenAnalogDzone := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Analog_Deadzone", "15",,1)
					     
					                    WriteProperty(coreOptionsCFG, "mupen64-gfxplugin", mupenGfx, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-rspplugin", mupenRsp, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-cpucore", mupenCpu, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-pak1", mupenPak1, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-pak2", mupenPak2, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-pak3", mupenPak3, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-pak4", mupenPak4, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-gfxplugin-accuracy", mupenGfxAccur, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-disableexpmem", mupenExpMem, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-filtering", mupenTexturFilt, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-virefresh", mupenViRefresh, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-framerate", mupenFramerate, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-screensize", mupenResolution, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-polyoffset-factor", mupenPolyOffstFctr, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-polyoffset-units", mupenPolyOffstUnts, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-angrylion-vioverlay", mupenViOverlay, 1)
					                    WriteProperty(coreOptionsCFG, "mupen64-astick-deadzone", mupenAnalogDzone, 1)
					            } Else If InStr(ident, "LibRetro_NES") {                ; these systems will use an ini to store game specific settings
					                    If InStr(core, "nestopia_libretro") {   ; Nestopia
					                            nestopiaBlargg := IniReadCheck(sysSettingsFile, "Nestopia" . "|" . romName, "Nestopia_Blargg_NTSC_Filter", "disabled",,1)
					                            nestopiaPalette := IniReadCheck(sysSettingsFile, "Nestopia" . "|" . romName, "Nestopia_Palette", "canonical",,1)
					                            nestopiaNoSprteLimit := IniReadCheck(sysSettingsFile, "Nestopia" . "|" . romName, "Nestopia_Remove_Sprites_Limit", "disabled",,1)
					                           
					                            WriteProperty(coreOptionsCFG, "nestopia_blargg_ntsc_filter", nestopiaBlargg, 1)
					                            WriteProperty(coreOptionsCFG, "nestopia_palette", nestopiaPalette, 1)
					                            WriteProperty(coreOptionsCFG, "nestopia_nospritelimit", nestopiaNoSprteLimit, 1)
					                    }
					            } Else If InStr(ident, "LibRetro_LYNX") {       ; Atari Lynx
					                    handyRotate := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Handy_Rotation", "None",,1)
					                   
					                    WriteProperty(coreOptionsCFG, "handy_rot", handyRotate, 1)
					            } Else If InStr(ident, "LibRetro_PSX") {        ; Sony PlayStation
					                    p1ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P1_Controller_Type", """517""",,1)
					                    p2ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P2_Controller_Type", """517""",,1)
					                    p3ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P3_Controller_Type", """517""",,1)
					                    p4ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P4_Controller_Type", """517""",,1)
					                    p5ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P5_Controller_Type", """517""",,1)
					                    p6ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P6_Controller_Type", """517""",,1)
					                    p7ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P7_Controller_Type", """517""",,1)
					                    p8ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P8_Controller_Type", """517""",,1)
					                   
					                    psxCdImageCache := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "PSX_CD_Image_Cache", """enabled""",,1)
					                    psxMemcardHandling := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "PSX_Memcard_Handling", """libretro""",,1)
					                    psxDualshockAnalogToggle := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "PSX_Dualshock_Analog_Toggle", """enabled""",,1)
					                   
					                    mednafenOptionsCFGFile := CheckFile(configFolder . "\" . LibRetro_PSX . ".dll.cfg", "Could not find core configuration file in config directory: """ . configFolder . "\" . LibRetro_PSX . ".dll.cfg""")
					                    mednafenOptionsCFG := LoadProperties(mednafenOptionsCFGFile)
					                   
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p1", p1ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p2", p2ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p3", p3ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p4", p4ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p5", p5ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p6", p6ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p7", p7ControllerType, 1)
					                    WriteProperty(mednafenOptionsCFG, "input_libretro_device_p8", p8ControllerType, 1)
					                   
					                    SaveProperties(mednafenOptionsCFGFile, mednafenOptionsCFG)
					                   
					                    WriteProperty(coreOptionsCFG, "beetle_psx_cdimagecache", psxCdImageCache, 1)
					                    WriteProperty(coreOptionsCFG, "beetle_psx_use_mednafen_memcard0_method", psxMemcardHandling, 1)
					                    WriteProperty(coreOptionsCFG, "beetle_psx_analog_toggle", psxDualshockAnalogToggle, 1)
					            }
					            SaveProperties(coreOptionsCFGFile, coreOptionsCFG)     
					    }
					     
					    hideEmuObj := Object("ahk_class ConsoleWindowClass",0,"RetroArch ahk_class RetroArch",1)        ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
					    7z(romPath, romName, romExtension, 7zExtractPath)
					     
					    ; MESS core options
					    messIdent :=
					    messParam1 :=
					    messParam2 :=
					    messParam3 :=
					    If InStr(core, "mess") {        ; if a mess core is used
					            Log("Module - Retroarch MESS mode enabled")
					            ; the messType object links the system name to the name mess recognizes
					            messType := Object("Amstrad CPC","cpc464","Amstrad GX4000","gx4000","APF Imagination Machine","apfimag","Apple IIGS","apple2gs","Atari 8-bit","a800","Atari 2600","a2600","Atari 5200","a5200","Atari 7800","a7800","Atari Jaguar","jaguar","Atari Lynx","lynx","Bally Astrocade","astrocde","Bandai Super Vision 8000","sv8000","Bandai WonderSwan","wswan","Bandai WonderSwan Color","wscolor","Casio PV-1000","pv1000","Casio PV-2000","pv2000","Coleco ADAM","adam","ColecoVision","coleco","Creatronic Mega Duck","megaduck","Dragon 64","dragon64","Emerson Arcadia 2001","arcadia","Entex Adventure Vision","advision","Epoch Game Pocket Computer","gamepock","Epoch Super Cassette Vision","scv","Exidy Sorcerer","sorcerer","Fairchild Channel F","channelf","Funtech Super Acan","supracan","GCE Vectrex","vectrex","Hartung Game Master","gmaster","GamePark 32","gp32","Interton VC 4000","vc4000","JungleTac Sport Vii","vii","Magnavox Odyssey 2","odyssey2","Matra & Hachette Alice","alice32","Mattel Aquarius","aquarius","Mattel Intellivision","intv","NEC PC Engine","pce","NEC PC Engine-CD","pce","NEC SuperGrafx","sgx","NEC TurboGrafx-16","tg16","NEC TurboGrafx-CD","tg16","Nintendo 64","n64","Nintendo Entertainment System","nes","Nintendo Famicom Disk System","famicom","Nintendo Game Boy","gameboy","Nintendo Game Boy Advance","gba","Nintendo Game Boy Color","gbcolor","Nintendo Game Boy Japan","gameboy","Nintendo Pokemon Mini","pokemini","Nintendo Virtual Boy","vboy","Pecom 64","pecom64","Philips CD-i","cdimono1","Philips Videopac","videopac","RCA Studio II","studio2","Sega 32X","32x","Sega SC-3000","sc3000","Sega CD","segacd","Sega Game Gear","gamegear","Sega Genesis","genesis","Sega Master System","sms","Sega Mega Drive","megadriv","Sega VMU","svmu","Sinclair ZX Spectrum","spectrum","SNK Neo Geo AES","aes","SNK Neo Geo CD","neocdz","SNK Neo Geo Pocket","ngp","SNK Neo Geo Pocket Color","ngpc","Sony PlayStation","psx","Sony PocketStation","pockstat","Sord M5","m5","Spectravideo SV-328","svi328n","Super Nintendo Entertainment System","snes","Tandy TRS-80 Color Computer 3","coco3","Texas Instruments TI 99-4A","ti99_4a","Tiger Game.com","gamecom","Thomson MO5","mo5","Tomy Tutor","tutor","VTech CreatiVision","crvision","Watara Supervision","svision")
					            messIdent := messType[systemName]       ; search object for the systemName identifier Retroarch uses for its cores
					            If !messIdent
					                    ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for the MESS LibRetro core")
					            Else
					                    Log("Module - MESS mode using a known ident: " . messIdent)
					     
					            If !messRomPath
					                    ScriptError("Please set the RetroArch module setting ""MESS_BIOS_Roms_Folder"" to the folder that contains your MESS BIOS roms to use MESS with RetroArch.")
					                   
					            messParam1 :=
					            messParam2 := " -rompath \" . """" . messRomPath . "\" . """"
					            If messIdent = alice32
					                    messParam3 := " -cass1 \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            If messIdent = gp32
					                    messParam3 := " -memc \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = cpc464
					                    messParam3 := " -cass \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = spectrum
					                    messParam3 := " -cass \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = dragon64
					                    messParam3 := " -cass \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = cdimono1
					                    messParam3 := " -cdrom \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = neocd
					                    messParam3 := " -cdrom \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = neocdz
					                    messParam3 := " -cdrom \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = svi328n
					                    messParam3 := " -cass \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = pecom64
					                    messParam3 := " -cass \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else If messIdent = svmu
					                    messParam3 := " -quik \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					            Else
					                    messParam3 := " -cart \" . """" . romPath . "\" . romName . romExtension . "\" . """"
					           
					            fullRomPath := messParam1 . messParam2 . messParam3
					    } Else If (superGB = "true") {
					            Log("Module - Retroarch Super Game Boy mode enabled")
					            fullRomPath := " """ . sgbRomPath . """ --subsystem sgb """ . romPath . "\" . romName . romExtension . """"
					    } Else {
					            Log("Module - Retroarch standard mode enabled")
					            fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
					    }
					     
					    If ident = LibRetro_NFDS        ; Nintendo Famicom Disk System
					    {       IfNotExist, %retroSysDir%\disksys.rom
					                    ScriptError("RetroArch requires ""disksys.rom"" for " . retroArchSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					    } Else If ident = LibRetro_SCD  ; Sega CD
					    {       If romExtension Not In .bin,.cue,.iso
					                    ScriptError("RetroArch only supports Sega CD games in bin|cue|iso format. It does not support:`n" . romExtension)
					            IfNotExist, %retroSysDir%\bios_CD_E.bin
					                    ScriptError("RetroArch requires ""bios_CD_E.bin"" for " . retroArchSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					            IfNotExist, %retroSysDir%\bios_CD_U.bin
					                    ScriptError("RetroArch requires ""bios_CD_U.bin"" for " . retroArchSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					            IfNotExist, %retroSysDir%\bios_CD_J.bin
					                    ScriptError("RetroArch requires ""bios_CD_J.bin"" for " . retroArchSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					    } Else If ident in LibRetro_PCECD,LibRetro_TGCD ; NEC PC Engine-CD and NEC TurboGrafx-CD
					    {       If romExtension Not In .ccd,.cue
					                    ScriptError("RetroArch only supports " . retroArchSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
					            IfNotExist, %retroSysDir%\syscard3.pce
					                    ScriptError("RetroArch requires ""syscard3.pce"" for " . retroArchSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					    } Else If ident = LibRetro_PCFX
					    {       If romExtension Not In .ccd,.cue
					                    ScriptError("RetroArch only supports " . retroArchSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
					            IfNotExist, %retroSysDir%\pcfxbios.bin
					                    ScriptError("RetroArch requires ""pcfxbios.bin"" for " . retroArchSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					    }
					     
					     
					    networkSession :=
					    If (enableNetworkPlay = "true") {
					            Log("Module - Network Multi-Player is an available option for " . dbName,4)
					     
					            netplayNickname := IniReadCheck(settingsFile, "Network", "NetPlay_Nickname","Player",,1)
					            getWANIP := IniReadCheck(settingsFile, "Network", "Get_WAN_IP","false",,1)
					     
					            If (getWANIP = "true")
					                    myPublicIP := GetPublicIP()
					     
					            Log("Module - CAREFUL WHEN POSTING THIS LOG PUBLICALY AS IT CONTAINS YOUR IP ON THE NEXT LINE",2)
					            defaultServerIP := IniReadCheck(settingsFile, "Network", "Default_Server_IP", myPublicIP,,1)
					            defaultServerPort := IniReadCheck(settingsFile, "Network", "Default_Server_Port",,,1)
					            lastIP := IniReadCheck(settingsFile, "Network", "Last_IP", defaultServerIP,,1)  ; does not need to be on the ISD
					            lastPort := IniReadCheck(settingsFile, "Network", "Last_Port", defaultServerPort,,1)    ; does not need to be on the ISD
					     
					            mpMenuStatus := MultiPlayerMenu(lastIP,lastPort,networkType,,0)
					            If (mpMenuStatus = -1) {        ; if user exited menu early
					                    Log("Module - Cancelled MultiPlayer Menu. Exiting module.",2)
					                    ExitModule()
					            }
					            If networkSession {
					                    Log("Module - Using a Network for " . dbName,4)
					                    IniWrite, %networkPort%, %settingsFile%, Network, Last_Port
					                    ; msgbox lastIP: %lastIP%`nlastPort: %lastPort%`nnetworkIP: %networkIP%`nnetworkPort: %networkPort%
					                    If (networkType = "client") {
					                            IniWrite, %networkIP%, %settingsFile%, Network, Last_IP ; Save last used IP and Port for quicker launching next time
					                            netCommand := " -C " . networkIP . " --port " . networkPort . " --nick """ . netplayNickname . """"     ; -C = connect as client
					                    } Else {        ; server
					                            netCommand := " -H --port " . networkPort . " --nick """ . netplayNickname . """"       ; -H = host as server
					                    }
					                    Log("Module - CAREFUL WHEN POSTING THIS LOG PUBLICALY AS IT CONTAINS YOUR IP ON THE NEXT LINE",2)
					                    Log("Module - Starting a network session using the IP """ . networkIP . """ and PORT """ . networkPort . """",4)
					            } Else
					                    Log("Module - User chose Single Player mode for this session",4)
					    }
					     
					    BezelStart()
					     
					    fullscreen := If fullscreen = "true" ? " -f" : ""
					    srmPath := emuPath . "\srm\" . retroArchSystem  ; path for this system's srm files
					    saveStatePath := emuPath . "\save\" . retroArchSystem   ; path for this system's save state files
					     
					    IfNotExist, %srmPath%
					            FileCreateDir, %srmPath% ; creating srm dir if it doesn't exist
					    IfNotExist, %saveStatePath%
					            FileCreateDir, %saveStatePath% ; creating save dir if it doesn't exist
					     
					    HideEmuStart()  ; This fully ensures windows are completely hidden even faster than winwait
					     
					    If InStr(core, "mess") {        ; if a mess core is used
					            Run(executable . " """ . (messIdent ? messIdent : "") . fullRomPath . """" . A_Space . fullscreen . " -c """ . retroCFGFile . """ -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . netCommand, emuPath, "Hide")
					    } Else If (ident = "LibRetro_SGB" || If superGB = "true") { ; For some reason, the order of our command line matters in this particular case.
					            Run(executable . " " . fullscreen . " -c """ . retroCFGFile . """ -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . fullRomPath . netCommand, emuPath, "Hide")
					    } Else {
					            Run(executable . " " . fullRomPath . fullscreen . " -c """ . retroCFGFile . """ -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . netCommand, emuPath, "Hide")
					    }
					     
					    mpMenuStatus :=
					    If networkSession {
					            canceledServerWait := false
					            multiplayerMenuExit := false
					            SetTimer, NetworkConnectedCheck, 500
					     
					            If (networkType = "server") {
					                    Log("Module - Waiting for a client to connect to your server")
					                    mpMenuStatus := MultiPlayerMenu(,,,,,,,,"You are the server. Please wait for your client to connect.")
					            } Else {        ; client
					                    Log("Module - Trying to contact the server to establish a connection.")
					                    mpMenuStatus := MultiPlayerMenu(,,,,,,,,"Attempting to connect to the server...")
					            }
					     
					            If (mpMenuStatus = -1) {        ; if user exited menu early before a client connected
					                    Log("Module - Cancelled waiting for the " . If (networkType = "server") ? "client to connect" : "server to respond" . ". Exiting module.",2)
					                    If Process("Exist", executable)
					                            Process("Close", executable)    ; must close process as the exe is waiting for a client to connect and no window was drawn yet
					                    ExitModule()
					            } Else {        ; blank response from MultiPlayerMenu, exited properly
					                    Log("Module - " . If (networkType = "server") ? "Client has connected" : "Connected to the server")
					                    WinWait("RetroArch ahk_class RetroArch")
					                    WinWaitActive("RetroArch ahk_class RetroArch")
					            }
					            SetTimer, NetworkConnectedCheck, Off
					    } Else {        ; single player
					            WinWait("RetroArch ahk_class RetroArch")
					            WinWaitActive("RetroArch ahk_class RetroArch")
					    }
					     
					    If hideConsole = true
					            WinSet, Transparent, On, ahk_class ConsoleWindowClass   ; makes the console window transparent so you don't see it on exit
					     
					    BezelDraw()
					    HideEmuEnd()
					    FadeInExit()
					    Process("WaitClose", executable)
					    7zCleanUp()
					    BezelExit()
					    FadeOutExit()
					    ExitModule()
					     
					     
					    ; Used to convert between RetroArch keys and usable data
					    ConvertRetroCFGKey(txt,direction="read"){
					            Global emuPath
					            If direction = read
					            {       StringTrimLeft,newtxt,txt,1     ; removes the " from the left of the txt
					                    StringTrimRight,newtxt,newtxt,1 ; removes the " from the right of the txt
					                    If InStr(newtxt,":") {  ; if the path contains a ":" then it is a relative path
					                            Log("ConvertRetroCFGKey - " . newtxt . " is a relative path",4)
					                            StringTrimLeft,newtxt,newtxt,1  ; removes the : from the left of the txt
					                            newtxt := AbsoluteFromRelative(emuPath, "." . newtxt)   ; convert relative to absolute
					                    }
					                    If InStr(newtxt,"/")
					                            StringReplace,newtxt,newtxt,/,\,1       ; replaces all forward slashes with backslashes
					            } Else If direction = write
					            {       newtxt = "%txt%"        ; wraps the txt with ""
					                    If InStr(newtxt,"\")
					                            StringReplace,newtxt,newtxt,\,/,1       ; replaces all backslashes with forward slashes
					            } Else
					                    ScriptError("Not a valid use of ConvertRetroCFGKey. Only ""read"" or ""write"" are supported.")
					            Log("ConvertRetroCFGKey - Converted " . txt . " to " . newtxt,4)
					            Return newtxt
					    }
					     
					    ; This will simply create a new blank ini if one does not exist
					    CheckSysFile(file){
					            IfNotExist, %file%
					                    FileAppend,, %file%
					            Return file
					    }
					     
					    NetworkConnectedCheck:
					            If clientConnected
					                    multiplayerMenuExit := true
					            Else If WinExist("RetroArch ahk_class RetroArch") {
					                    Log("Module - RetroArch session started, closing the MultiPlayer menu",4)
					                    multiplayerMenuExit := true
					            }
					    Return
					     
					    CloseProcess:
					            FadeOutStart()
					            WinClose("RetroArch ahk_class RetroArch")
					    Return
					

12:52:29:296 | RL |      INFO  | +0     | BuildScript - Loaded Pause scripts
12:52:29:296 | RL |      INFO  | +0     | BuildScript - Loaded Multi-Player scripts
12:52:29:296 | RL |      INFO  | +0     | BuildScript - Loaded Statistics.ahk script
12:52:29:296 | RL |      INFO  | +0     | BuildScript - "D:\Arcade\RocketLauncher\Lib\User Functions\Global.ahk" not found
12:52:29:297 | RL |      INFO  | +0     | BuildScript - "D:\Arcade\RocketLauncher\Lib\User Functions\Sammy Atomiswave.ahk" not found
12:52:29:297 | RL |      INFO  | +0     | BuildScript - "D:\Arcade\RocketLauncher\Lib\User Functions\Emulators\NewRetroarch.ahk" not found
12:52:29:297 | RL |      INFO  | +0     | BuildScript - "D:\Arcade\RocketLauncher\Lib\User Functions\Sammy Atomiswave\Emulators\NewRetroarch.ahk" not found
12:52:29:297 | RL |      INFO  | +0     | BuildScript - "D:\Arcade\RocketLauncher\Lib\User Functions\Sammy Atomiswave\fotns.ahk" not found
12:52:29:298 | RL |      INFO  | +0     | BuildScript - Finished injecting functions into module
12:52:29:298 | RL |      INFO  | +0     | Main - Module is built
12:52:29:298 | RL |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\AutoHotkey.dll exists
12:52:29:299 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					FileDescription         	AutoHotkey_H ANSI 32-bit
					FileVersion             	1.1.13.00
					InternalName            	AutoHotkey_H
					LegalCopyright          	Copyright (C) 2003-2013
					OriginalFilename        	AutoHotkey.exe
					ProductName             	AutoHotkey_H
					ProductVersion          	1.1.13.00
					File Size:			802304 bytes
					Created:			5/19/2020 - 11:09:45
					Modified:			6/29/2020 - 10:23:44
12:52:29:300 | RL |      INFO  | +0     | Main - Loading Internal AHK Keymapping
12:52:29:301 | RL |      INFO  | +0     | GetAHKProfile - Started
12:52:29:301 | RL |     DEBUG  | +0     | GetAHKProfile - Searching for: D:\Arcade\RocketLauncher\Profiles\AHK\Sammy Atomiswave\fotns.ahk
12:52:29:301 | RL |     DEBUG  | +0     | GetAHKProfile - Searching for: D:\Arcade\RocketLauncher\Profiles\AHK\Sammy Atomiswave\NewRetroarch.ahk
12:52:29:301 | RL |     DEBUG  | +0     | GetAHKProfile - Searching for: D:\Arcade\RocketLauncher\Profiles\AHK\Sammy Atomiswave.ahk
12:52:29:302 | RL |     DEBUG  | +0     | GetAHKProfile - Searching for: D:\Arcade\RocketLauncher\Profiles\AHK\_Default.ahk
12:52:29:302 | RL |   WARNING  | +0     | GetAHKProfile - Keymapper support is enabled for AHK, but could not find a fotns, NewRetroarch, Sammy Atomiswave, or a default profile in 
12:52:29:302 | RL |      INFO  | +0     | GetAHKProfile - Ended
12:52:29:302 | RL |      INFO  | +0     | Main - Attaching AHK remaps to module using: 
12:52:29:302 | RL |      INFO  | +0     | Main - Finished building Internal AHK remaps
12:52:29:303 | RL |      INFO  | +0     | Main - Starting timer to watch if Front End gets displaced and restore it if it does.
12:52:29:303 | RL |      INFO  | +0     | Main - Running module
12:52:29:514 | MD |      INFO  | +N/A   | Module initialized
12:52:29:514 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:52:29:515 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~Esc not in TableKeyGroups 
12:52:29:515 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 1 check
12:52:29:515 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 2 check
12:52:29:515 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~Esc" to call label: "CloseProcess"
12:52:29:515 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:52:29:537 | MD |     TRACE  | +31    | Keymapper - Checking for the JoyIDs_Preferred_Controllers key  in D:\Arcade\RocketLauncher\Settings\Sammy Atomiswave\Games JoyIDs.ini under section [fotns]
12:52:29:537 | MD |      INFO  | +0     | LoadPreferredControllers - Started
12:52:29:537 | MD |     TRACE  | +0     | LoadPreferredControllers - JoyIDsPreferredControllers = 1
12:52:29:538 | MD |     TRACE  | +0     | LoadPreferredControllers - Creating a list of currently connected joysticks
12:52:29:538 | MD |      INFO  | +0     | GetJoystickArray - Started
12:52:29:570 | MD |     TRACE  | +31    | GetJoystickArray - Joysticks Detected: 1100000000000000
12:52:29:571 | MD |      INFO  | +0     | GetJoystickGUID - Started
12:52:29:571 | MD |      INFO  | +0     | GetJoystickGUID - Ended and found GUID: 50D87579C61CEA118001444553540000
12:52:29:571 | MD |     TRACE  | +0     | GetJoystickArray - ID: 1 | Port: 0 | Name: Generic   USB  Joystick   | MID: 0079 | PID: 0006 | GUID: 50D87579C61CEA118001444553540000
12:52:29:572 | MD |      INFO  | +0     | GetJoystickGUID - Started
12:52:29:572 | MD |      INFO  | +0     | GetJoystickGUID - Ended and found GUID: D0107779C61CEA118002444553540000
12:52:29:573 | MD |     TRACE  | +0     | GetJoystickArray - ID: 2 | Port: 1 | Name: Generic   USB  Joystick   | MID: 0079 | PID: 0006 | GUID: D0107779C61CEA118002444553540000
12:52:29:573 | MD |      INFO  | +0     | GetJoystickArray - Ended
12:52:29:573 | MD |     TRACE  | +0     | LoadPreferredControllers - Preferred Order Sorting List -> 3.01|0079|0006|50D87579C61CEA118001444553540000
12:52:29:573 | MD |     TRACE  | +0     | LoadPreferredControllers - Preferred Order Sorting List -> 3.02|0079|0006|D0107779C61CEA118002444553540000
12:52:29:573 | MD |      INFO  | +0     | LoadPreferredControllers - Sorting Currently Connected joysticks List to match the order of the Preferred Controller List
12:52:29:573 | MD |      INFO  | +0     | LoadPreferredControllers - Assigning the New Joystick IDs according to the preferred list for the active controllers
12:52:29:573 | MD |      INFO  | +0     | ChangeJoystickID - Started
12:52:29:573 | MD |     TRACE  | +0     | ChangeJoystickID - Swapping Joystick ID: 00000000 to the New Joystick ID: 00000000, for the Joystick VID_0079&PID_0006&GUID_50D87579C61CEA118001444553540000
12:52:29:573 | MD |      INFO  | +0     | ChangeJoystickID - Ended
12:52:29:573 | MD |      INFO  | +0     | ChangeJoystickID - Started
12:52:29:574 | MD |     TRACE  | +0     | ChangeJoystickID - Swapping Joystick ID: 01000000 to the New Joystick ID: 01000000, for the Joystick VID_0079&PID_0006&GUID_D0107779C61CEA118002444553540000
12:52:29:574 | MD |      INFO  | +0     | ChangeJoystickID - Ended
12:52:29:574 | MD |      INFO  | +0     | LoadPreferredControllers - Ended
12:52:29:574 | MD |      INFO  | +0     | CheckFile - Checking if D:\Arcade\Utilities\Xpadder\Xpadder.exe exists
12:52:29:574 | MD |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1166848 bytes
					Created:			5/19/2020 - 11:11:39
					Modified:			5/27/2015 - 11:37:13
12:52:29:574 | MD |      INFO  | +0     | Keymapper - Loading xpadder
12:52:29:574 | MD |      INFO  | +0     | RunKeymapper - Started, using method "load"
12:52:29:574 | MD |      INFO  | +0     | GetJoystickArray - Started
12:52:29:597 | MD |     TRACE  | +32    | GetJoystickArray - Joysticks Detected: 1100000000000000
12:52:29:598 | MD |      INFO  | +0     | GetJoystickGUID - Started
12:52:29:599 | MD |      INFO  | +0     | GetJoystickGUID - Ended and found GUID: 50D87579C61CEA118001444553540000
12:52:29:599 | MD |     TRACE  | +0     | GetJoystickArray - ID: 1 | Port: 0 | Name: Generic   USB  Joystick   | MID: 0079 | PID: 0006 | GUID: 50D87579C61CEA118001444553540000
12:52:29:600 | MD |      INFO  | +0     | GetJoystickGUID - Started
12:52:29:600 | MD |      INFO  | +0     | GetJoystickGUID - Ended and found GUID: D0107779C61CEA118002444553540000
12:52:29:600 | MD |     TRACE  | +0     | GetJoystickArray - ID: 2 | Port: 1 | Name: Generic   USB  Joystick   | MID: 0079 | PID: 0006 | GUID: D0107779C61CEA118002444553540000
12:52:29:600 | MD |      INFO  | +0     | GetJoystickArray - Ended
12:52:29:600 | MD |     TRACE  | +0     | RunKeymapper - Found your keymapper application here: "D:\Arcade\Utilities\Xpadder\Xpadder.exe"
12:52:29:600 | MD |     TRACE  | +0     | RunKeymapper - Looping through controllers to find xpadder profiles for each one
12:52:29:601 | MD |     TRACE  | +0     | RunKeymapper - ID: 1 Now searching for a matching profile for this controller: "Generic   USB  Joystick"
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for these profiles (| delimited): D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns|D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch|D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default|D:\Arcade\RocketLauncher\Profiles\xpadder\_Default|D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 1 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns\Generic   USB  Joystick\p1.xpadderprofile
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 1 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns\p1.xpadderprofile
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 1 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch\Generic   USB  Joystick\p1.xpadderprofile
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 1 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch\p1.xpadderprofile
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 1 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\Generic   USB  Joystick\p1.xpadderprofile
12:52:29:601 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 1 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p1.xpadderprofile
12:52:29:602 | MD |      INFO  | +0     | GetProfile - Loading Player 1 Profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p1.xpadderprofile
12:52:29:602 | MD |     TRACE  | +0     | RunKeymapper - ID: 2 Now searching for a matching profile for this controller: "Generic   USB  Joystick"
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for these profiles (| delimited): D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns|D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch|D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default|D:\Arcade\RocketLauncher\Profiles\xpadder\_Default|D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 2 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns\Generic   USB  Joystick\p2.xpadderprofile
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 2 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\fotns\p2.xpadderprofile
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 2 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch\Generic   USB  Joystick\p2.xpadderprofile
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 2 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\NewRetroarch\p2.xpadderprofile
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 2 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\Generic   USB  Joystick\p2.xpadderprofile
12:52:29:602 | MD |     TRACE  | +0     | GetProfile - Searching for a Player 2 profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p2.xpadderprofile
12:52:29:603 | MD |      INFO  | +0     | GetProfile - Loading Player 2 Profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p2.xpadderprofile
12:52:29:603 | MD |      INFO  | +0     | RunXpadder - Started
12:52:29:603 | MD |      INFO  | +0     | Process - Exist VJoy.exe 
12:52:29:604 | MD |     TRACE  | +0     | RunXpadder - Closing xpadder to refresh controllers seen by xpadder
12:52:29:604 | MD |      INFO  | +0     | Run - Running: D:\Arcade\Utilities\Xpadder\Xpadder.exe /C
12:52:29:642 | MD |     DEBUG  | +46    | Run - "Xpadder.exe /C" Process ID: 4904
12:52:29:642 | MD |     TRACE  | +0     | RunXpadder - Creating an array of connected controllers and profiles to arrange according to the order found in D:\Arcade\Utilities\Xpadder\xpadder.ini
12:52:29:642 | MD |      INFO  | +0     | Process - WaitClose Xpadder.exe 2
12:52:29:755 | MD |     TRACE  | +110   | RunXpadder - Reading the order in D:\Arcade\Utilities\Xpadder\xpadder.ini and arranging profiles found to match that order
12:52:29:758 | MD |     TRACE  | +0     | RunXpadder - No more controllers to be found
12:52:29:758 | MD |      INFO  | +0     | Run - Running: D:\Arcade\Utilities\Xpadder\Xpadder.exe "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p1.xpadderprofile" "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p2.xpadderprofile" /M
12:52:29:783 | MD |     DEBUG  | +31    | Run - "Xpadder.exe "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p1.xpadderprofile" "D:\Arcade\RocketLauncher\Profiles\xpadder\Sammy Atomiswave\_Default\p2.xpadderprofile" /M" Process ID: 4320
12:52:29:783 | MD |      INFO  | +0     | RunXpadder - Ended
12:52:29:783 | MD |      INFO  | +0     | RunKeymapper - Ended
12:52:29:783 | MD |     DEBUG  | +0     | fadeInTransitionAnimation: DefaultAnimateFadeIn
12:52:29:783 | MD |     DEBUG  | +0     | fadeOutTransitionAnimation: DefaultAnimateFadeOut
12:52:29:783 | MD |     DEBUG  | +0     | fadeLyr3Animation: DefaultFadeAnimation
12:52:29:784 | MD |     DEBUG  | +0     | fadeLyr37zAnimation: DefaultFadeAnimation
12:52:29:785 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~/ not in TableKeyGroups ~Esc,
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 1 check
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 2 check
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~/" to call label: "TogglePauseMenuStatus"
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup PrintScreen not in TableKeyGroups ~Esc,~/,
12:52:29:786 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 1 check
12:52:29:787 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 2 check
12:52:29:787 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "PrintScreen" to call label: "SaveScreenshot"
12:52:29:787 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:52:29:787 | MD |     TRACE  | +0     | CustomFunction.Init - Starting
12:52:29:787 | MD |     TRACE  | +0     | CustomFunction.Init - Ending
12:52:29:787 | MD |      INFO  | +0     | StartModule - Started
12:52:29:787 | MD |      INFO  | +0     | StartModule - MEmu: RetroArch
					MEmuV: v12-25-2014 Nightly
					MURL: 
					MAuthor: 
					MVersion: 2.2.1
					MCRC: CE967CAD
					iCRC: 51E752D3
					MID: 635038268922229162
					MSystem: 
12:52:29:787 | MD |   WARNING  | +0     | StartModule - You have an unsupported System Name for this module: "Sammy Atomiswave". Only the following System Names are suppported: ""AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Atari 2600","Atari 5200","Atari 7800","Atari Jaguar","Atari Lynx","Atari ST","Bally Astrocade","Bandai Super Vision 8000","Bandai Wonderswan","Bandai Wonderswan Color","Casio PV-1000","Casio PV-2000","ColecoVision","Commodore Amiga","Creatronic Mega Duck","Dragon 64","Emerson Arcadia 2001","Entex Adventure Vision","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Final Burn Alpha","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","JungleTac Sport Vii","MAME","Magnavox Odyssey 2","Microsoft MSX","Microsoft MSX2","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC TurboGrafx-16","NEC SuperGrafx","NEC TurboGrafx-CD","Nintendo 64","Nintendo Arcade Systems","Nintendo DS","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Color","Nintendo Game Boy Japan","Nintendo Game Boy Advance","Nintendo Super Game Boy","Nintendo Pokemon Mini","Nintendo Virtual Boy","Nintendo Super Famicom","Nintendo Super Famicom Satellaview","Panasonic 3DO","Pecom 64","Philips CD-i","Philips Videopac","RCA Studio II","Sammy Atomiswave","Sega 32X","Sega SC-3000","Sega SG-1000","Sega CD","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sinclair ZX Spectrum","Sony PlayStation","Sony PocketStation","Sony PSP","Sord M5","SNK Neo Geo","SNK Neo Geo MVS","SNK Neo Geo AES","SNK Neo Geo Pocket","SNK Neo Geo CD","SNK Neo Geo Pocket Color","Spectravideo SV-328","Super Nintendo Entertainment System","Tandy TRS-80 Color Computer 3","Texas Instruments TI 99-4A","Thomson MO5","Tomy Tutor","VTech CreatiVision","Watara Supervision""
12:52:29:787 | MD |      INFO  | +0     | LocaleUtils.i18n - Started
12:52:29:788 | MD |     DEBUG  | +0     | LocaleUtils.i18n - Section "Italian_Standard" & key "dialog.open" not found, trying section "Italian"
12:52:29:788 | MD |      INFO  | +0     | LocaleUtils.i18n - Ended, using "Apri" for "dialog.open"
12:52:29:788 | MD |      INFO  | +0     | LocaleUtils.i18n - Started
12:52:29:788 | MD |     DEBUG  | +0     | LocaleUtils.i18n - Section "Italian_Standard" & key "dialog.start" not found, trying section "Italian"
12:52:29:788 | MD |      INFO  | +0     | LocaleUtils.i18n - Ended, using "inizio" for "dialog.start"
12:52:29:789 | MD |      INFO  | +0     | PluginInit - Started
12:52:29:789 | MD |     DEBUG  | +0     | BuildDatabaseTable - Started - Building Table for: Name|Cloneof|Publisher|Year|Genre|Rating
12:52:29:789 | MD |      INFO  | +0     | CheckFile - Checking if D:\Arcade\Databases\Sammy Atomiswave\Sammy Atomiswave.xml exists
12:52:29:790 | MD |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5633 bytes
					Created:			5/17/2020 - 9:19:03
					Modified:			4/23/2013 - 9:44:04
12:52:29:790 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Game Name" in the database!
12:52:29:790 | MD |     DEBUG  | +0     | BuildDatabaseTable - Searching database for: Name
12:52:29:790 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Name" with a value: "Fist of the North Star (Hokuto No Ken)"
12:52:29:790 | MD |     DEBUG  | +0     | BuildDatabaseTable - Searching database for: Cloneof
12:52:29:790 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Cloneof" with a value: ""
12:52:29:790 | MD |     DEBUG  | +0     | BuildDatabaseTable - Searching database for: Publisher
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Publisher" with a value: "Sega/ARC System Works"
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Searching database for: Year
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Year" with a value: "2005"
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Searching database for: Genre
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Genre" with a value: "Fighter"
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Searching database for: Rating
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Found "Rating" with a value: "AAMA - Yellow (Animated Violence Mild)"
12:52:29:791 | MD |     TRACE  | +0     | PluginInit - GameInfo:
					GameInfo Label: Cloneof | GameInfo Value: 
					GameInfo Label: Genre | GameInfo Value: Fighter
					GameInfo Label: Name | GameInfo Value: Fist of the North Star (Hokuto No Ken)
					GameInfo Label: Publisher | GameInfo Value: Sega/ARC System Works
					GameInfo Label: Rating | GameInfo Value: AAMA - Yellow (Animated Violence Mild)
					GameInfo Label: Year | GameInfo Value: 2005
12:52:29:791 | MD |     DEBUG  | +0     | BuildDatabaseTable - Ended
12:52:29:792 | MD |      INFO  | +0     | BuildAssetsTable - Started - Building Table for: Game Logo|System Logo
12:52:29:792 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Game Logo: D:\Arcade\Media\Sammy Atomiswave\Images\Wheel\fotns.png
12:52:29:792 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a System Logo: D:\Arcade\Media\Main Menu\Images\Wheel\Sammy Atomiswave.png
12:52:29:793 | MD |     DEBUG  | +0     | BuildAssetsTable - Media assets found: 
					Asset Label: Game Logo | Asset Path1:  D:\Arcade\Media\Sammy Atomiswave\Images\Wheel\fotns.png | Asset Extension1:  png | Asset Type1:  game
					Asset Label: System Logo | Asset Path1:  D:\Arcade\Media\Main Menu\Images\Wheel\Sammy Atomiswave.png | Asset Extension1:  png | Asset Type1:  system
12:52:29:814 | MD |      INFO  | +31    | BuildAssetsTable - Ended
12:52:29:814 | MD |      INFO  | +0     | BuildAssetsTable - Started - Building Table for: Artwork1|Box Art|Cartridge|Flyers|Letters|Other
12:52:29:814 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Artwork1: D:\Arcade\Media\Sammy Atomiswave\Images\Artwork1\fotns.png
12:52:29:814 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Box Art: D:\Arcade\Media\Sammy Atomiswave\Images\Artwork2\fotns.png
12:52:29:814 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Cartridge: D:\Arcade\Media\Sammy Atomiswave\Images\Artwork3\fotns.png
12:52:29:815 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Flyers: D:\Arcade\Media\Sammy Atomiswave\Images\Artwork4\fotns.png
12:52:29:815 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Letters: D:\Arcade\Media\Sammy Atomiswave\Images\Letters
12:52:29:850 | MD |     DEBUG  | +31    | BuildAssetsTable - Searching for a Other: D:\Arcade\Media\Sammy Atomiswave\Images\Other
12:52:29:853 | MD |     DEBUG  | +0     | BuildAssetsTable - Media assets found: 
					Asset Label: Letters | Asset Path1:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\!.png | Asset Extension1:  png | Asset Type1:  system
					Asset Label: Letters | Asset Path2:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\'.png | Asset Extension2:  png | Asset Type2:  system
					Asset Label: Letters | Asset Path3:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\(.png | Asset Extension3:  png | Asset Type3:  system
					Asset Label: Letters | Asset Path4:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\0.png | Asset Extension4:  png | Asset Type4:  system
					Asset Label: Letters | Asset Path5:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\1.png | Asset Extension5:  png | Asset Type5:  system
					Asset Label: Letters | Asset Path6:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\2.png | Asset Extension6:  png | Asset Type6:  system
					Asset Label: Letters | Asset Path7:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\3.png | Asset Extension7:  png | Asset Type7:  system
					Asset Label: Letters | Asset Path8:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\4.png | Asset Extension8:  png | Asset Type8:  system
					Asset Label: Letters | Asset Path9:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\5.png | Asset Extension9:  png | Asset Type9:  system
					Asset Label: Letters | Asset Path10:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\6.png | Asset Extension10:  png | Asset Type10:  system
					Asset Label: Letters | Asset Path11:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\7.png | Asset Extension11:  png | Asset Type11:  system
					Asset Label: Letters | Asset Path12:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\8.png | Asset Extension12:  png | Asset Type12:  system
					Asset Label: Letters | Asset Path13:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\9.png | Asset Extension13:  png | Asset Type13:  system
					Asset Label: Letters | Asset Path14:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\a.png | Asset Extension14:  png | Asset Type14:  system
					Asset Label: Letters | Asset Path15:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\b.png | Asset Extension15:  png | Asset Type15:  system
					Asset Label: Letters | Asset Path16:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\c.png | Asset Extension16:  png | Asset Type16:  system
					Asset Label: Letters | Asset Path17:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\d.png | Asset Extension17:  png | Asset Type17:  system
					Asset Label: Letters | Asset Path18:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\e.png | Asset Extension18:  png | Asset Type18:  system
					Asset Label: Letters | Asset Path19:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\f.png | Asset Extension19:  png | Asset Type19:  system
					Asset Label: Letters | Asset Path20:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\g.png | Asset Extension20:  png | Asset Type20:  system
					Asset Label: Letters | Asset Path21:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\h.png | Asset Extension21:  png | Asset Type21:  system
					Asset Label: Letters | Asset Path22:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\i.png | Asset Extension22:  png | Asset Type22:  system
					Asset Label: Letters | Asset Path23:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\j.png | Asset Extension23:  png | Asset Type23:  system
					Asset Label: Letters | Asset Path24:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\k.png | Asset Extension24:  png | Asset Type24:  system
					Asset Label: Letters | Asset Path25:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\l.png | Asset Extension25:  png | Asset Type25:  system
					Asset Label: Letters | Asset Path26:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\m.png | Asset Extension26:  png | Asset Type26:  system
					Asset Label: Letters | Asset Path27:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\n.png | Asset Extension27:  png | Asset Type27:  system
					Asset Label: Letters | Asset Path28:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\o.png | Asset Extension28:  png | Asset Type28:  system
					Asset Label: Letters | Asset Path29:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\p.png | Asset Extension29:  png | Asset Type29:  system
					Asset Label: Letters | Asset Path30:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\q.png | Asset Extension30:  png | Asset Type30:  system
					Asset Label: Letters | Asset Path31:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\r.png | Asset Extension31:  png | Asset Type31:  system
					Asset Label: Letters | Asset Path32:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\s.png | Asset Extension32:  png | Asset Type32:  system
					Asset Label: Letters | Asset Path33:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\t.png | Asset Extension33:  png | Asset Type33:  system
					Asset Label: Letters | Asset Path34:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\u.png | Asset Extension34:  png | Asset Type34:  system
					Asset Label: Letters | Asset Path35:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\v.png | Asset Extension35:  png | Asset Type35:  system
					Asset Label: Letters | Asset Path36:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\w.png | Asset Extension36:  png | Asset Type36:  system
					Asset Label: Letters | Asset Path37:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\x.png | Asset Extension37:  png | Asset Type37:  system
					Asset Label: Letters | Asset Path38:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\y.png | Asset Extension38:  png | Asset Type38:  system
					Asset Label: Letters | Asset Path39:  D:\Arcade\Media\Sammy Atomiswave\Images\Letters\z.png | Asset Extension39:  png | Asset Type39:  system
					Asset Label: Other | Asset Path1:  D:\Arcade\Media\Sammy Atomiswave\Images\Other\pointer.png | Asset Extension1:  png | Asset Type1:  system
12:52:29:853 | MD |      INFO  | +0     | BuildAssetsTable - Ended
12:52:29:854 | MD |      INFO  | +0     | BuildAssetsTable - Started - Building Table for: MP4 Game Video|FLV Game Video|MP4 System Video|FLV System Video
12:52:29:854 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a MP4 Game Video: D:\Arcade\Media\Sammy Atomiswave\Video\fotns.* 
12:52:29:854 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a FLV Game Video: D:\Arcade\Media\Main Menu\Video\Sammy Atomiswave.*
12:52:29:855 | MD |     DEBUG  | +0     | BuildAssetsTable - Media assets found: 
					Asset Label: FLV Game Video | Asset Path1:  D:\Arcade\Media\Main Menu\Video\Sammy Atomiswave.mp4 | Asset Extension1:  mp4 | Asset Type1:  system
					Asset Label: MP4 Game Video | Asset Path1:  D:\Arcade\Media\Sammy Atomiswave\Video\fotns.mp4 | Asset Extension1:  mp4 | Asset Type1:  game
12:52:29:855 | MD |      INFO  | +0     | BuildAssetsTable - Ended
12:52:29:855 | MD |      INFO  | +0     | PluginInit - Ended
12:52:29:855 | MD |     DEBUG  | +0     | StartModule - Setting romName to the dbName sent to RocketLauncher: fotns
12:52:29:856 | MD |      INFO  | +0     | SystemCursor - Hiding mouse cursor
12:52:29:876 | MD |     DEBUG  | +31    | XHotkeyTableCreation - Started
12:52:29:876 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~e&~t not in TableKeyGroups ~Esc,~/,PrintScreen,
12:52:29:877 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 1 check
12:52:29:877 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 2 check
12:52:29:877 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~e & ~t" to call label: "ToggleCursor"
12:52:29:877 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:52:29:877 | MD |      INFO  | +0     | ServoStik - Started
12:52:29:877 | MD |      INFO  | +0     | CheckFile - Checking if D:\Arcade\RocketLauncher\Module Extensions\PacDrive32.dll exists
12:52:29:878 | MD |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			69120 bytes
					Created:			5/19/2020 - 11:11:15
					Modified:			1/2/2015 - 12:37:54
12:52:29:881 | MD |   WARNING  | +0     | ServoStik - No devices found on system
12:52:29:881 | MD |      INFO  | +0     | ServoStik - Ended
12:52:29:881 | MD |     TRACE  | +0     | Process.__New - Creating new process object for: "D:\Arcade\HyperSpin.exe"
12:52:29:882 | MD |     TRACE  | +0     | File.__New - Creating new file object of: "D:\Arcade\HyperSpin.exe"
12:52:29:882 | MD |     TRACE  | +0     | File.__New - Creating new file object of: "D:\Arcade\RocketLauncher\Modules\RetroArch\Sammy Atomiswave\fotns.ini"
12:52:29:883 | MD |     TRACE  | +0     | File.__New - Creating new file object of: "D:\Arcade\RocketLauncher\Modules\RetroArch\Sammy Atomiswave.ini"
12:52:29:884 | MD |     TRACE  | +0     | File.__New - Creating new file object of: "D:\Arcade\RocketLauncher\Modules\RetroArch\NewRetroArch.ini"
12:52:29:885 | MD |      INFO  | +0     | StartModule - Ended
12:52:29:886 | MD |     DEBUG  | +0     | FadeInStart - Started
12:52:29:886 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:52:29:886 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~/ is in TableKeyGroups ~Esc,~/,PrintScreen,~e&~t,
12:52:29:886 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 10 check
12:52:29:886 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabled Hotkey for: "~/"
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 11 check
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabling "TogglePauseMenuStatus" standard Hotkey method for key(s): "~/"
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 12 check
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~Esc is in TableKeyGroups ~Esc,~/,PrintScreen,~e&~t,
12:52:29:887 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 10 check
12:52:29:888 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabled Hotkey for: "~Esc"
12:52:29:888 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 11 check
12:52:29:888 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabling "CloseProcess" standard Hotkey method for key(s): "~Esc"
12:52:29:888 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 12 check
12:52:29:888 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:52:29:889 | MD |     DEBUG  | +0     | FadeInStart - No keys were set to interrupt fade so ability to interrupt fade is disabled
12:52:29:889 | MD |     TRACE  | +0     | FadeInStart - Fade screen scale factor: X=0.666667, Y= 0.948148
12:52:29:889 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Layer 1" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\Layer 1*.*
12:52:29:889 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Layer 1" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\Layer 1*.*
12:52:29:890 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Layer 1" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1*.*
12:52:29:890 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 1": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1*.png
12:52:29:890 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 1": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1*.gif
12:52:29:890 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 1": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1*.tif
12:52:29:890 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 1": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1*.bmp
12:52:29:909 | MD |     DEBUG  | +32    | GetFadeDirPicFile - Looking for Fade "Layer 1": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1*.jpg
12:52:29:909 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Found Fade "Layer 1": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1.jpg
12:52:29:909 | MD |      INFO  | +0     | GetFadePicFile - Randomized images and Fade  will use D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 1.jpg
12:52:29:909 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Extra Layer 1 - Console" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\Extra Layer 1 - Console*.*
12:52:29:909 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Extra Layer 1 - Console" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\Extra Layer 1 - Console*.*
12:52:29:910 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Extra Layer 1 - Console" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console*.*
12:52:29:910 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Extra Layer 1 - Console": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console*.png
12:52:29:910 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Found Fade "Extra Layer 1 - Console": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console.png
12:52:29:910 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Extra Layer 1 - Console": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console*.gif
12:52:29:910 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Extra Layer 1 - Console": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console*.tif
12:52:29:910 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Extra Layer 1 - Console": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console*.bmp
12:52:29:911 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Extra Layer 1 - Console": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console*.jpg
12:52:29:911 | MD |      INFO  | +0     | GetFadePicFile - Randomized images and Fade  will use D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Extra Layer 1 - Console.png
12:52:30:127 | MD |      INFO  | +218   | DefaultAnimateFadeIn - Started, direction is: in
12:52:30:128 | MD |      INFO  | +0     | DefaultAnimateFadeIn - Drawing First FadeIn Image.
12:52:30:670 | MD |      INFO  | +530   | DefaultAnimateFadeIn - Ended
12:52:30:702 | MD |      INFO  | +32    | DefaultFadeAnimation - Started
12:52:30:702 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Info Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\Info Bar*.*
12:52:30:702 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Info Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\Info Bar*.*
12:52:30:702 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Info Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Info Bar*.*
12:52:30:723 | MD |     DEBUG  | +31    | GetFadeDirPicFile - Checking if any Fade "Info Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Horizontal\Info Bar*.*
12:52:30:723 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Info Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar*.*
12:52:30:723 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Info Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar*.png
12:52:30:723 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Found Fade "Info Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar.png
12:52:30:723 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Info Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar*.gif
12:52:30:724 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Info Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar*.tif
12:52:30:724 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Info Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar*.bmp
12:52:30:724 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Info Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar*.jpg
12:52:30:724 | MD |      INFO  | +0     | GetFadePicFile - Randomized images and Fade  will use D:\Arcade\RocketLauncher\Media\Fade\_Default\Info Bar.png
12:52:30:758 | MD |     DEBUG  | +31    | GetFadeDirPicFile - Checking if any Fade "Layer 3" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\Layer 3*.*
12:52:30:758 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Layer 3" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\Layer 3*.*
12:52:30:758 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Layer 3" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3*.*
12:52:30:758 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 3": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3*.png
12:52:30:758 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Found Fade "Layer 3": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3.png
12:52:30:759 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 3": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3*.gif
12:52:30:759 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 3": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3*.tif
12:52:30:759 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 3": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3*.bmp
12:52:30:759 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Layer 3": D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3*.jpg
12:52:30:759 | MD |      INFO  | +0     | GetFadePicFile - Randomized images and Fade  will use D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Layer 3.png
12:52:30:786 | MD |     DEBUG  | +31    | GetFadeDirPicFile - Checking if any Fade "Progress Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\Progress Bar*.*
12:52:30:787 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Progress Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\Progress Bar*.*
12:52:30:787 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Progress Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Progress Bar*.*
12:52:30:787 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Progress Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Horizontal\Progress Bar*.*
12:52:30:787 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Progress Bar" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar*.*
12:52:30:787 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Progress Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar*.png
12:52:30:788 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Found Fade "Progress Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar.png
12:52:30:788 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Progress Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar*.gif
12:52:30:788 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Progress Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar*.tif
12:52:30:788 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Progress Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar*.bmp
12:52:30:788 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "Progress Bar": D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar*.jpg
12:52:30:788 | MD |      INFO  | +0     | GetFadePicFile - Randomized images and Fade  will use D:\Arcade\RocketLauncher\Media\Fade\_Default\Progress Bar.png
12:52:30:790 | MD |      INFO  | +0     | BuildAssetsTable - Started - Building Table for: Genre Logo|Rating Logo|Developer Logo|Publisher Logo|Year Logo
12:52:30:791 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Genre Logo: D:\Arcade\RocketLauncher\Media\Genre\_Default\Fighter.*
12:52:30:791 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Rating Logo: D:\Arcade\RocketLauncher\Media\Rating\_Default\AAMA - Yellow (Animated Violence Mild).*
12:52:30:812 | MD |     DEBUG  | +31    | BuildAssetsTable - Searching for a Developer Logo: 
12:52:30:812 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Publisher Logo: D:\Arcade\RocketLauncher\Media\Publisher\_Default\Sega-ARC System Works.*
12:52:30:812 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Year Logo: D:\Arcade\RocketLauncher\Media\Year\_Default\2005.*
12:52:30:812 | MD |     DEBUG  | +0     | BuildAssetsTable - Media assets found: 
					Asset Label: Rating Logo | Asset Path1:  D:\Arcade\RocketLauncher\Media\Rating\_Default\AAMA - Yellow (Animated Violence Mild).png | Asset Extension1:  png | Asset Type1:  rating
12:52:30:813 | MD |      INFO  | +0     | BuildAssetsTable - Ended
12:52:30:813 | MD |      INFO  | +0     | BuildAssetsTable - Started - Building Table for: System Logo|Game Logo|Game Logo
12:52:30:813 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a System Logo: D:\Arcade\RocketLauncher\Media\Logos\Sammy Atomiswave\_Default\
12:52:30:814 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Game Logo: D:\Arcade\RocketLauncher\Media\Logos\Sammy Atomiswave\fotns\
12:52:30:814 | MD |     DEBUG  | +0     | BuildAssetsTable - Searching for a Game Logo: 
12:52:30:814 | MD |     DEBUG  | +0     | BuildAssetsTable - Media assets found: 
					Asset Label: Rating Logo | Asset Path1:  D:\Arcade\RocketLauncher\Media\Rating\_Default\AAMA - Yellow (Animated Violence Mild).png | Asset Extension1:  png | Asset Type1:  rating
					Asset Label: System Logo | Asset Path1:  D:\Arcade\RocketLauncher\Media\Logos\Sammy Atomiswave\_Default\Sammy Atomiswave.png | Asset Extension1:  png | Asset Type1:  system
12:52:30:814 | MD |      INFO  | +0     | BuildAssetsTable - Ended
12:52:31:009 | MD |     DEBUG  | +188   | GetFadeDirPicFile - Checking if any Fade "Loading start" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\Loading start*.*
12:52:31:009 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Loading start" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\Loading start*.*
12:52:31:010 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Loading start" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Loading start*.*
12:52:31:010 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Loading start" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Horizontal\Loading start*.*
12:52:31:010 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "Loading start" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Loading start*.*
12:52:31:010 | MD |     DEBUG  | +0     | FadeInDelay - Started
12:52:31:010 | MD |     DEBUG  | +0     | FadeInDelay - Ended
12:52:31:011 | MD |      INFO  | +0     | DefaultFadeAnimation - Ended
12:52:31:011 | MD |     DEBUG  | +0     | FadeInStart - Ended
12:52:31:011 | MD |      INFO  | +0     | DxwndUpdateIniPath - DxwndIni set to D:\Arcade\RocketLauncher\Module Extensions\dxwnd\dxwnd.ini
12:52:31:011 | MD |     TRACE  | +0     | CustomFunction.PreStart - Starting
12:52:31:011 | MD |     TRACE  | +0     | CustomFunction.PreStart - Ending
12:52:31:012 | MD |     DEBUG  | +0     | CoverFE - Started
12:52:31:030 | MD |     DEBUG  | +31    | CoverFE - Ended
12:52:31:031 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - LibRetro_Core: flycast_libretro
12:52:31:031 | MD |      INFO  | +0     | Module Setting - [Settings] - Fullscreen: true
12:52:31:031 | MD |      INFO  | +0     | Module Setting - [Settings] - ConfigFolder: D:\Arcade\Emulators\NewRetroarch\config
12:52:31:031 | MD |      INFO  | +0     | Module Setting - [Settings] - MESS_BIOS_Roms_Folder: 
12:52:31:031 | MD |      INFO  | +0     | Module Setting - [Settings] - HideConsole: true
12:52:31:032 | MD |      INFO  | +0     | Module Setting - [Settings] - UseCoreConfigs: true
12:52:31:032 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - SuperGameBoy: false
12:52:31:032 | MD |      INFO  | +0     | Module Setting - [fotns] - SuperGameBoy: false
12:52:31:032 | MD |      INFO  | +0     | Module Setting - [Network] - Enable_Network_Play: false
12:52:31:032 | MD |      INFO  | +0     | Module Setting - [fotns] - Enable_Network_Play: false
12:52:31:033 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - Overlay: 
12:52:31:033 | MD |      INFO  | +0     | Module Setting - [fotns] - Overlay: 
12:52:31:033 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - VideoShader: 
12:52:31:033 | MD |      INFO  | +0     | Module Setting - [fotns] - VideoShader: 
12:52:31:033 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - AspectRatioIndex: 
12:52:31:034 | MD |      INFO  | +0     | Module Setting - [fotns] - AspectRatioIndex: 
12:52:31:034 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - CustomViewportWidth: 
12:52:31:034 | MD |      INFO  | +0     | Module Setting - [fotns] - CustomViewportWidth: 
12:52:31:034 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - CustomViewportHeight: 
12:52:31:034 | MD |      INFO  | +0     | Module Setting - [fotns] - CustomViewportHeight: 
12:52:31:034 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - CustomViewportX: 
12:52:31:035 | MD |      INFO  | +0     | Module Setting - [fotns] - CustomViewportX: 
12:52:31:035 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - CustomViewportY: 
12:52:31:035 | MD |      INFO  | +0     | Module Setting - [fotns] - CustomViewportY: 
12:52:31:035 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - Rotation: 
12:52:31:035 | MD |      INFO  | +0     | Module Setting - [fotns] - Rotation: 
12:52:31:036 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - CropOverscan: 
12:52:31:036 | MD |      INFO  | +0     | Module Setting - [fotns] - CropOverscan: 
12:52:31:036 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - ThreadedVideo: 
12:52:31:036 | MD |      INFO  | +0     | Module Setting - [fotns] - ThreadedVideo: 
12:52:31:036 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - VSync: 
12:52:31:036 | MD |      INFO  | +0     | Module Setting - [fotns] - VSync: 
12:52:31:037 | MD |      INFO  | +0     | Module Setting - [Sammy Atomiswave] - IntegerScale: 
12:52:31:037 | MD |      INFO  | +0     | Module Setting - [fotns] - IntegerScale: 
12:52:31:037 | MD |      INFO  | +0     | CheckFile - Checking if D:\Arcade\Emulators\NewRetroarch\cores\flycast_libretro.dll exists
12:52:31:072 | MD |      INFO  | +31    | DefaultFadeAnimationLoop - percentage
12:52:31:133 | MD |     DEBUG  | +62    | CheckFile - Attributes:
					File Size:			11424044 bytes
					Created:			6/29/2020 - 12:02:57
					Modified:			6/29/2020 - 11:57:50
12:52:31:133 | MD |   WARNING  | +0     | Module - Could not find a cfg file to update settings. RetroArch will make one for you.
12:52:31:134 | MD |      INFO  | +0     | Module - Retroarch standard mode enabled
12:52:31:134 | MD |      INFO  | +0     | Run - Running: D:\Arcade\Emulators\NewRetroarch\retroarch.exe  "D:\Arcade\Games\Sammy Atomiswave\roms\fotns.zip" -f -c "" -L "D:\Arcade\Emulators\NewRetroarch\cores\flycast_libretro.dll" -s "D:\Arcade\Emulators\NewRetroarch\srm\Sammy Atomiswave\fotns.srm" -S "D:\Arcade\Emulators\NewRetroarch\save\Sammy Atomiswave\fotns.state"
12:52:31:156 | MD |      INFO  | +32    | DefaultFadeAnimationLoop - percentage8
12:52:31:193 | MD |     DEBUG  | +31    | Run - "retroarch.exe  "D:\Arcade\Games\Sammy Atomiswave\roms\fotns.zip" -f -c "" -L "D:\Arcade\Emulators\NewRetroarch\cores\flycast_libretro.dll" -s "D:\Arcade\Emulators\NewRetroarch\srm\Sammy Atomiswave\fotns.srm" -S "D:\Arcade\Emulators\NewRetroarch\save\Sammy Atomiswave\fotns.state"" Process ID: 4388
12:52:31:193 | MD |     DEBUG  | +0     | GetActiveWindowStatus - Title: CoverFE | Class: AutoHotkeyGUI | State: 0 | X: 0 | Y: 0 | Width: 1280 | Height: 1024 | Window HWND: 0xa01a2 | Process ID: 3832 | Process Path: D:\Arcade\RocketLauncher\RocketLauncher.exe
12:52:31:193 | MD |      INFO  | +0     | WinWait - Waiting for "RetroArch ahk_class RetroArch"
12:52:31:203 | MD |      INFO  | +15    | DefaultFadeAnimationLoop - percentage21
12:52:31:273 | MD |      INFO  | +63    | DefaultFadeAnimationLoop - percentage27
12:52:31:335 | MD |      INFO  | +62    | DefaultFadeAnimationLoop - percentage35
12:52:31:395 | MD |      INFO  | +63    | DefaultFadeAnimationLoop - percentage44
12:52:31:456 | MD |      INFO  | +62    | DefaultFadeAnimationLoop - percentage52
12:52:31:516 | MD |      INFO  | +62    | DefaultFadeAnimationLoop - percentage60
12:52:31:584 | MD |      INFO  | +63    | DefaultFadeAnimationLoop - percentage69
12:52:31:644 | MD |      INFO  | +62    | DefaultFadeAnimationLoop - percentage77
12:52:31:704 | MD |      INFO  | +63    | DefaultFadeAnimationLoop - percentage85
12:52:31:764 | MD |      INFO  | +62    | DefaultFadeAnimationLoop - percentage94
12:52:31:810 | MD |     DEBUG  | +31    | DefaultFadeAnimationLoop - Progress bar reached 100%
12:52:31:845 | MD |      INFO  | +47    | DefaultFadeAnimationLoop - percentage100
12:52:31:845 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "7z complete" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\fotns\7z complete*.*
12:52:31:845 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "7z complete" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\Horizontal\7z complete*.*
12:52:31:846 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "7z complete" media exists in: D:\Arcade\RocketLauncher\Media\Fade\Sammy Atomiswave\_Default\7z complete*.*
12:52:31:846 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "7z complete" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\Horizontal\7z complete*.*
12:52:31:846 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Checking if any Fade "7z complete" media exists in: D:\Arcade\RocketLauncher\Media\Fade\_Default\7z complete*.*
12:52:31:846 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Looking for Fade "7z complete": D:\Arcade\RocketLauncher\Media\Fade\_Default\7z complete*.mp3
12:52:31:847 | MD |     DEBUG  | +0     | GetFadeDirPicFile - Found Fade "7z complete": D:\Arcade\RocketLauncher\Media\Fade\_Default\7z complete.mp3
12:52:31:847 | MD |      INFO  | +0     | GetFadePicFile - Randomized images and Fade  will use D:\Arcade\RocketLauncher\Media\Fade\_Default\7z complete.mp3
12:52:31:847 | MD |      INFO  | +0     | DefaultFadeAnimationLoop - Playing 7z fade complete sound: D:\Arcade\RocketLauncher\Media\Fade\_Default\7z complete.mp3
12:52:31:976 | MD |     DEBUG  | +125   | DefaultFadeAnimationLoop - Fade Layer 3 is drawn and Extraction bar is at 100% so animation loop is finished.
12:52:31:986 | MD |      INFO  | +15    | DefaultFadeAnimationLoop - percentage100
12:52:31:987 | MD |     DEBUG  | +0     | DefaultFadeAnimationLoop - AnimationLoop has finished
12:52:31:987 | MD |     DEBUG  | +0     | DefaultFadeAnimationLoop - Ended
12:52:31:021 | MD |     DEBUG  | +32    | DefaultFadeAnimationLoop - Fade Layer 3 is drawn and Extraction bar is at 100% so animation loop is finished.
12:53:01:186 | MD |     DEBUG  | +29172 | GetActiveWindowStatus - Title: Gestione attività Windows | Class: #32770 | State: 0 | X: 600 | Y: 525 | Width: 412 | Height: 459 | Window HWND: 0xb0440 | Process ID: 3340 | Process Path: C:\Windows\System32\taskmgr.exe
12:53:01:187 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:53:01:187 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~Esc is in TableKeyGroups ~Esc,~/,PrintScreen,~e&~t,
12:53:01:187 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 10 check
12:53:01:187 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabled Hotkey for: "~Esc"
12:53:01:188 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 11 check
12:53:01:188 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabling "CloseProcess" standard Hotkey method for key(s): "~Esc"
12:53:01:188 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 12 check
12:53:01:188 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:53:01:188 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:53:01:189 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~Esc is in TableKeyGroups ~Esc,~/,PrintScreen,~e&~t,
12:53:01:189 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 10 check
12:53:01:189 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabled Hotkey for: "~Esc"
12:53:01:189 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 11 check
12:53:01:189 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~Esc" to call label: "CloseError"
12:53:01:190 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 12 check
12:53:01:190 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:53:01:587 | MD |     DEBUG  | +390   | ScriptError - Playing error sound: error11.mp3
12:53:02:640 | MD |     DEBUG  | +1061  | XHotkeyTableCreation - Started
12:53:02:641 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~Esc is in TableKeyGroups ~Esc,~/,PrintScreen,~e&~t,
12:53:02:641 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 10 check
12:53:02:641 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabled Hotkey for: "~Esc"
12:53:02:641 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 11 check
12:53:02:642 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabling "CloseError" standard Hotkey method for key(s): "~Esc"
12:53:02:642 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 12 check
12:53:02:642 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:53:02:642 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:53:02:642 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~Esc is in TableKeyGroups ~Esc,~/,PrintScreen,~e&~t,
12:53:02:643 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 10 check
12:53:02:643 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Disabled Hotkey for: "~Esc"
12:53:02:644 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 11 check
12:53:02:644 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~Esc" to call label: "CloseProcess"
12:53:02:644 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 12 check
12:53:02:644 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:53:02:645 | MD |     ERROR  | +0     | ScriptError - There was an error waiting for the window "RetroArch ahk_class RetroArch". Please check you have the correct version emulator installed for this module, followed any notes in the module, and have this emulator working outside your Frontend first. Also turn off Fade to see if you are hiding your problem.
12:53:02:645 | MD |      INFO  | +0     | ExitModule - Started
12:53:02:645 | MD |      INFO  | +0     | UpdateStatistics - Starting Updating Statistics
12:53:02:646 | MD |     DEBUG  | +0     | UpdateStatistics - Total Elapsed Time in Pause in seconds: 0
12:53:02:646 | MD |     DEBUG  | +0     | UpdateStatistics - gameSectionStartTime:24189327
12:53:02:646 | MD |     DEBUG  | +0     | UpdateStatistics - ElapsedTime:32
12:53:02:646 | MD |     TRACE  | +0     | Statistics cleared game name: fotns
12:53:02:738 | MD |     DEBUG  | +93    | UpdateStatistics - Loaded game statistics from ini files:
					Number_of_Times_Played: 57
					Last_Time_Played: mercoledì luglio 1, 2020 07:53:46
					Average_Time_Played: 36
					Total_Time_Played: 2080
					System_Total_Played_Time: 8236
					Total_Global_Played_Time: 482999
12:53:02:738 | MD |     DEBUG  | +0     | UpdateStatistics - Updated Statistics: Number_of_Times_Played: 58
					Last_Time_Played: mercoledì luglio 1, 2020 12:52:29
					Average_Time_Played: 36
					Total_Time_Played: 2112
					System_Total_Played_Time: 8268
					Total_Global_Played_Time: 483031
12:53:02:776 | MD |      INFO  | +31    | UpdateStatistics - Game section statistics updated.
12:53:02:794 | MD |      INFO  | +32    | RunKeymapper - Started, using method "unload"
12:53:02:794 | MD |      INFO  | +0     | GetJoystickArray - Started
12:53:02:801 | MD |     TRACE  | +0     | GetJoystickArray - Joysticks Detected: 1100000000000000
12:53:02:803 | MD |      INFO  | +0     | GetJoystickGUID - Started
12:53:02:804 | MD |      INFO  | +0     | GetJoystickGUID - Ended and found GUID: 50D87579C61CEA118001444553540000
12:53:02:804 | MD |     TRACE  | +0     | GetJoystickArray - ID: 1 | Port: 0 | Name: Generic   USB  Joystick   | MID: 0079 | PID: 0006 | GUID: 50D87579C61CEA118001444553540000
12:53:02:806 | MD |      INFO  | +0     | GetJoystickGUID - Started
12:53:02:806 | MD |      INFO  | +0     | GetJoystickGUID - Ended and found GUID: D0107779C61CEA118002444553540000
12:53:02:806 | MD |     TRACE  | +0     | GetJoystickArray - ID: 2 | Port: 1 | Name: Generic   USB  Joystick   | MID: 0079 | PID: 0006 | GUID: D0107779C61CEA118002444553540000
12:53:02:806 | MD |      INFO  | +0     | GetJoystickArray - Ended
12:53:02:806 | MD |     TRACE  | +0     | RunKeymapper - Looping through controllers to find xpadder profiles for each one
12:53:02:807 | MD |     TRACE  | +0     | RunKeymapper - ID: 1 Now searching for a matching profile for this controller: "Generic   USB  Joystick"
12:53:02:807 | MD |     TRACE  | +0     | GetProfile - Searching for these profiles (| delimited): D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank
12:53:02:807 | MD |     TRACE  | +0     | GetProfile - Searching -> D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile
12:53:02:807 | MD |      INFO  | +0     | GetProfile - Loading Profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile
12:53:02:832 | MD |     TRACE  | +31    | RunKeymapper - ID: 2 Now searching for a matching profile for this controller: "Generic   USB  Joystick"
12:53:02:832 | MD |     TRACE  | +0     | GetProfile - Searching for these profiles (| delimited): D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank
12:53:02:832 | MD |     TRACE  | +0     | GetProfile - Searching -> D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile
12:53:02:833 | MD |      INFO  | +0     | GetProfile - Loading Profile -> D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile
12:53:02:833 | MD |      INFO  | +0     | RunXpadder - Started
12:53:02:833 | MD |      INFO  | +0     | Process - Exist VJoy.exe 
12:53:02:835 | MD |     TRACE  | +0     | RunXpadder - Closing xpadder to refresh controllers seen by xpadder
12:53:02:835 | MD |      INFO  | +0     | Run - Running: D:\Arcade\Utilities\Xpadder\Xpadder.exe /C
12:53:02:859 | MD |     DEBUG  | +31    | Run - "Xpadder.exe /C" Process ID: 5976
12:53:02:859 | MD |     TRACE  | +0     | RunXpadder - Creating an array of connected controllers and profiles to arrange according to the order found in D:\Arcade\Utilities\Xpadder\xpadder.ini
12:53:02:859 | MD |      INFO  | +0     | Process - WaitClose Xpadder.exe 2
12:53:02:967 | MD |     TRACE  | +109   | RunXpadder - Reading the order in D:\Arcade\Utilities\Xpadder\xpadder.ini and arranging profiles found to match that order
12:53:02:969 | MD |     TRACE  | +0     | RunXpadder - No more controllers to be found
12:53:02:970 | MD |      INFO  | +0     | Run - Running: D:\Arcade\Utilities\Xpadder\Xpadder.exe "D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile" "D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile" /M
12:53:02:997 | MD |     DEBUG  | +31    | Run - "Xpadder.exe "D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile" "D:\Arcade\RocketLauncher\Profiles\xpadder\_Default\blank.xpadderprofile" /M" Process ID: 1288
12:53:02:997 | MD |      INFO  | +0     | RunXpadder - Ended
12:53:02:998 | MD |      INFO  | +0     | RunKeymapper - Ended
12:53:02:998 | MD |     TRACE  | +0     | CustomFunction.PostExit - Starting
12:53:02:999 | MD |     TRACE  | +0     | CustomFunction.PostExit - Ending
12:53:02:999 | MD |      INFO  | +0     | ServoStik - Started
12:53:02:007 | MD |   WARNING  | +0     | ServoStik - No devices found on system
12:53:03:007 | MD |      INFO  | +0     | ServoStik - Ended
12:53:03:008 | MD |      INFO  | +0     | ExitModule - Ended
End of Module Logs
12:53:03:125 | RL |      INFO  | +33821 | Main - Module ended, exiting RocketLauncher normally
12:53:03:125 | RL |      INFO  | +0     | ExitScript - Started
12:53:03:142 | RL |     DEBUG  | +16    | Registry.Read - Reading from Registry : RootKey=HKEY_LOCAL_MACHINE, SubKey=System\CurrentControlSet\Control\Windows, ValueName=ErrorMode,RegistryVersion=32
12:53:03:142 | RL |     DEBUG  | +0     | Registry.Read - Registry Read finished, returning 0
12:53:03:142 | RL |     TRACE  | +0     | StringUtils.Contains - "false" does not contain "true|kill"
12:53:03:143 | RL |      INFO  | +0     | ExitScript - Restoring taskbar
12:53:03:143 | RL |     TRACE  | +0     | Window.__New - Created: "ahk_class Shell_TrayWnd"
12:53:03:143 | RL |     TRACE  | +0     | Window.__New - Created: "ahk_class Button"
12:53:03:144 | RL |     TRACE  | +0     | Window.Show - Unhiding window "ahk_class Shell_TrayWnd"
12:53:03:249 | RL |     TRACE  | +109   | Window.Show - Unhiding window "ahk_class Button"
12:53:03:360 | RL |      INFO  | +109   | SystemCursor - Restoring mouse cursor
12:53:03:362 | RL |      INFO  | +0     | ExitScript - Restored cursor
12:53:03:362 | RL |      INFO  | +0     | ExitScript - Ended
[/CODE]
 

mrchrister

New member
RL Member
Hey guys,

trying to run Flycast libretro core to play Naomi Games through Hyperspin.
Retroarch is setup correctly and games launch within retroarch
Naomi roms are in Mame format, bios is in the right place


Added Sega Naomi to Module Retroarch.ahk:

No matter what I try, Rocketlauncher just boots into retroarch and not the game. Dreamcast works great through flycast.
Is my module incorrect?

Code:
MEmu := "RetroArch"
MEmuV := "v1.3.6"
MURL := ["http://themaister.net/retroarch.html"]
MAuthor := ["djvj","zerojay","SweatyPickle"]
MVersion := "2.4.3"
MCRC := "699AB8F7"
iCRC := "FB2DB971"
MID := "635038268922229162"
MSystem := ["Sega Naomi","Acorn BBC Micro","AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Applied Technology MicroBee","Apple IIGS","Arcade Classics","Atari 2600","Atari 5200","Atari 7800","Atari 8-Bit","Atari Classics","Atari Jaguar","Atari Lynx","Atari ST","Atari XEGS","Bally Astrocade","Bandai Gundam RX-78","Bandai Super Vision 8000","Bandai Wonderswan","Bandai Wonderswan Color","Canon X07","Capcom Classics","Capcom Play System","Capcom Play System II","Capcom Play System III","Casio PV-1000","Casio PV-2000","Cave","Coleco ADAM","ColecoVision","Commodore MAX Machine","Commodore Amiga","Creatronic Mega Duck","Data East Classics","Dragon Data Dragon","Emerson Arcadia 2001","Entex Adventure Vision","Elektronika BK","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Final Burn Alpha","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","Interton VC 4000","Irem Classics","JungleTac Sport Vii","Konami Classics","MAME","Magnavox Odyssey 2","Microsoft MSX","Microsoft MSX2","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","Midway Classics","Namco Classics","Namco System 22","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC TurboGrafx-16","NEC SuperGrafx","NEC TurboGrafx-CD","Nintendo 64","Nintendo 64DD","Nintendo Arcade Systems","Nintendo Classics","Nintendo DS","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Color","Nintendo Game Boy Japan","Nintendo Game Boy Advance","Nintendo Game & Watch","Nintendo Super Game Boy","Nintendo Pokemon Mini","Nintendo Virtual Boy","Nintendo Super Famicom","Nintendo Satellaview","Nintendo SuFami Turbo","Panasonic 3DO","Elektronska Industrija Pecom 64","Philips CD-i","Philips Videopac","RCA Studio II","ScummVM","Sega 32X","Sega Classics","Sega Mega Drive 32X","Sega Mark III","Sega SC-3000","Sega SG-1000","Sega CD","Sega Dreamcast","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Meganet","Sega Nomad","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sharp X1","Sharp X68000","Sinclair ZX Spectrum","Sinclair ZX81","Sony PlayStation","Sony PlayStation Minis","Sony PocketStation","Sony PSP","Sony PSP Minis","Sord M5","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo MVS","SNK Neo Geo Pocket","SNK Neo Geo CD","SNK Neo Geo Pocket Color","Spectravideo","Super Nintendo Entertainment System","Taito Classics","Tandy TRS-80 Color Computer","Technos","Texas Instruments TI 99-4A","Thomson MO5","Thomson TO7","Tiger Game.com","Tiki-100","Tomy Tutor","VTech CreatiVision","Watara Supervision","Williams Classics"]
;----------------------------------------------------------------------------
; Notes:
; If the emu doesn't load and you get no error, usually this means the LibRetro DLL is not working!
; Devs stated they will never add support for mounted images (like via DT)
; Fullscreen is controlled via the module setting in RocketLauncherUI
; This module uses the CLI version of RetroArch (retroarch.exe), not the GUI (retroarch-phoenix.exe).
; The emu may make a mouse cursor appear momentarily during launch, MouseMove and hide_cursor seem to have no effect
; Enable 7z support for archived roms
; Available CLI options: https://github.com/PyroFilmsFX/iOS/blob/master/docs/retroarch.1
;
; LibRetro DLLs:
; LibRetro DLLs come with the emu, but here is another source for them: http://forum.themaister.net/
; Whatever cores you decide to use, make sure they are extracted anywhere in your Emu_Path\cores folder. The module will find and load the default core unless you choose a custom one for each system.
; You can find supported cores that Retroarch supports simply by downloading them from the "retroarch-phoenix.exe" or by visiting here: https://github.com/libretro/libretro.github.com/wiki/Supported-cores
; Some good discussion on cores and filters: http://forum.themaister.net/viewtopic.php?id=270
;
; SRM files:
; The srm files location is determined by the configuration file used (savefile_directory = ":\whatever") The default RetroArch srm directory is ":\saves" You can select to sort into core folders (ie: :/saves/Mednafen PSX) by changing sort_savefiles_enable = "true" in the configuration file.
;
; Save states:
; The save state files location is determined by the configuration file used (savestate_directory = ":\whatever") The default RetroArch savestate directory is ":\states" You can select to sort into core folders (ie: :/states/Mednafen PSX) by changing sort_savestates_enable = "true" in the configuration file.
;
; Config files:
; By default, the module looks for config files in a folder called config in the RetroArch folder. Example: C:\emus\RetroArch\config. You can change this folder to anything you like by changing the module's ConfigFolder setting in RocketLauncherUI.  This will be the config folder for the module and will NOT change the location of RetroArch's own /config directory.
; RetroArch's global config file is called "retroarch.cfg". RetroArch will use a system cfg file named to match your System Name (example: Nintendo Entertainment System.cfg).
; RetroArch will also load core config files named after the core name. Example: nestopia_libretro.cfg
; This allows different settings globally, for each system, and for each core. If you want all systems to use the same retroarch.cfg, do not have any system or core cfg files, only have the retroarch.cfg.
; If a core config exists, it takes precedence over the global config. And if a system config exists, it takes precedence over the core config.
;
; Core Options:
; By default, RetroArch creates a retroarch-core-options.cfg in it's root directory.  Example: C:\emus\RetroArch\retroarch-core-options.cfg.  This will always be used if the default RetroArch.cfg is loaded.  If a configuration file from any other location is used, RetroArch will create a retroarch-core-options.cfg file in the root of that directory.  The module has an option to have RetroArch use only the default retroarch-core-options.cfg file no matter the path of the config directory or location of the configuiration file being used.  To enable this option set Single_Core_Options to true.

; MultiGame:
; MultiGame support is currently only available for the Mednafen PSX core. Retroarch uses the same method as Mednafen to load multi-disc games. This method involves m3u playlists which are commonly used for music. The m3u files needed to load multi-disc games are generated for you by the module when you launch a multi-disc game and are saved to your corresponding rom directory. Due to m3u limitations, your multi-disc roms/images cannot be archived -- they must be unzipped. All single disc games can remain archived and you can still enable 7z under system settings. If you do not wish to use MultiGame support you can archive your roms/images and m3u generation will be skipped on launch. 
; The m3u files generated by the module contain a list of paths to all roms/images in the multi-disc set. Retroarch automatically loads the first path in the m3u so the first path will always be the disc you are loading. For example, Final Fantasy VII has 3 discs and if you load Disc 2 first, the order of the paths in the m3u will be disc 2, disc 3, disc 1. If you load Disc 3 first, the order will be disc 3, disc 1, disc 2. The module anticipates this and will load the correct disk, selected from the Pause/MultiDisk menus. However if you choose to manually use Retroarch's UI or disk swap keys to change discs, you will need to keep this in mind.
; In order for RocketLauncher's MultiGame UI to swap discs, you must define Eject_Toggle_Key, Next_Disk_Key, and Previous_Disk_Key under global settings for the emulator in RocketLauncher. Because AHK and Retroarch use different naming conventions for some keyboard keys, it is best to use a letter, a number, or F1-F12.
;
; MAME:
; MAME BIOS roms should be placed in Rom Path's directory. Some systems require the BIOS roms be placed in the MAME internal name directory. (Example: :\Rom Folder\a5200). The MAME BIOS_Roms_Folder option will have no effect unless you are using an older version of the mess core. 
;
; System Specific Notes:
; Microsoft MSX/MSX2: Launch an MSX game and in the core options, set the console to be an MSX2 and it will play both just fine.
; Nintendo Famicom Disk System - Requires disksys.rom be placed in the folder you define as system_directory in the RetroArch's cfg.
; Sega CD - Requires "bios_CD_E.bin", "bios_CD_J.bin", "bios_CD_U.bin" all be placed in the folder you define as system_directory in the RetroArch's cfg.
; Super Nintendo Entertainment System - requires split all 10 dsp# & st### roms all be placed in the folder you define as system_directory in the RetroArch's cfg. Many games, like Super Mario Kart require these.
; NEC TurboGrafx-CD (using pce fast core) - Requires "syscard3.pce" be placed in the folder you define as system_directory in the RetroArch's cfg.
; NEC TurboGrafx-CD (using MAME core)
;   - You'll need to update a couple mame specific options in the Retroarch core options file to get it to boot from the cli. These should probably be updated automagically by the module. Turning softlists off, but might not need to.
;       mame_boot_from_cli = "enabled"
;       mame_softlists_enable = "disabled"
;       mame_softlists_auto_media = "disabled"
;	- Requires hash folder from MAME/MESS/UME, either from the source or release package. Save this in the system_directory you've defined for RetroArch. Something like \RetroArch\system\mame\hash\
;	- Requires the CD bios file(s) saved in the mame bios folder you've defined. Usually \RetroArch\system\mame\bios\
;		For PC Engine-CD you'll need the file "[cd] cd-rom system (japan) (v2.1).pce" zipped as cdsys.zip and saved in a pce subfolder in your bios path, so \RetroArch\system\mame\bios\pce\cdsys.zip
;		For PC Engine SuperGrafx-CD you'll need the file "[cd] super cd-rom system (japan) (v3.0).pce" zipped as scdsys.zip and saved in a pce subfolder in your bios path, so \RetroArch\system\mame\bios\pce\scdsys.zip
;		For TurboGrafx-CD you'll need the file "[cd] turbografx cd system card (usa) (v2.0).pce" zipped as cdsys.zip and saved in a tg16 subfolder in your bios path, so \RetroArch\system\mame\bios\tg16\cdsys.zip
;		For TurboDuo you'll need the file "[cd] turbografx cd super system card (usa) (v3.0).pce" zipped as scdsys.zip and saved in a tg16 subfolder in your bios path, so \RetroArch\system\mame\bios\tg16\scdsys.zip
; Nintendo Super Game Boy - Set the Module setting in RocketLauncherUI SuperGameBoy to true to enable a system or only a rom to use SGB mode. This is not needed if your systemName is set to the official name of "Nintendo Super Game Boy". Requires "sgb.boot.rom" and "Super Game Boy (World).sfc" to be placed in the folder you define as system_directory in the RetroArch's cfg. This is needed if you want to use Super game boy mode and color palettes. Also requires using the latest bsnes core. Not all games support SGB mode.
; Sony PSP/PlayStation Minis: To avoid the dialog box complaining about ppge_atlas.zim, download it from https://github.com/libretro/libretro-ppsspp/blob/master/assets/ppge_atlas.zim and place it in your Retroarch/system/PPSSPP/ directory.
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()

primaryExe := new Emulator(emuPath . "\" . executable)	; instantiate emulator executable object
emuPrimaryWindow := new Window(new WindowTitle("RetroArch","RetroArch"))	; instantiate primary emulator window object
emuConsoleWindow := new Window(new WindowTitle("","ConsoleWindowClass"))	; instantiate emulator console window object

; Here we define all supported systems for this module. This object controls how the module reacts to different systems. RetroArch can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.
; 1 - Official System Name in RocketLauncher
; 2 - Short name used only for easy referencing within module
; 3 - Default core
; 4 - The system ID MAME core recognizes
RLLog.Debug("Module - Started building the " . MEmu . " object")
mTypeVar:="
	( LTrim
	AAE|LibRetro_AAE|mame_libretro
	Acorn BBC Micro|LibRetro_BBCB|mame_libretro|bbcb
	Amstrad CPC|LibRetro_CPC|mame_libretro|cpc464
	Amstrad GX4000|LibRetro_GX4K|mame_libretro|gx4000
	APF Imagination Machine|LibRetro_APF|mame_libretro|apfimag
	Apple IIGS|LibRetro_AIIGS|mame_libretro|apple2gs
	Applied Technology MicroBee|LibRetro_MBEE|mame_libretro|mbeeic
	Arcade Classics|LibRetro_ARCADE|mame_libretro
	Atari 2600|LibRetro_2600|stella_libretro|a2600
	Atari 5200|LibRetro_5200|mame_libretro|a5200
	Atari 7800|LibRetro_7800|prosystem_libretro|a7800
	Atari 8-Bit|LibRetro_ATARI8|mame_libretro|a800
	Atari Classics|LibRetro_ACLS|mame_libretro
	Atari Jaguar|LibRetro_JAG|virtualjaguar_libretro|jaguar
	Atari Lynx|LibRetro_LYNX|handy_libretro|lynx
	Atari ST|LibRetro_ST|hatari_libretro
	Atari XEGS|LibRetro_XEGS|mame_libretro|xegs
	Bally Astrocade|LibRetro_BAST|mame_libretro|astrocde
	Bandai Gundam RX-78|LibRetro_BGRX|mame_libretro|rx78
	Bandai Super Vision 8000|LibRetro_SV8K|mame_libretro|sv8000
	Bandai Wonderswan|LibRetro_WSAN|mednafen_wswan_libretro|wswan
	Bandai Wonderswan Color|LibRetro_WSANC|mednafen_wswan_libretro|wscolor
	Canon X07|LibRetro_CX07|mame_libretro|x07
	Capcom Classics|LibRetro_CAPC|mame_libretro
	Capcom Play System|LibRetro_CPS1|fbalpha_libretro
	Capcom Play System II|LibRetro_CPS2|fbalpha_libretro
	Capcom Play System III|LibRetro_CPS3|mame_libretro
	Casio PV-1000|LibRetro_CAS1K|mame_libretro|pv1000
	Casio PV-2000|LibRetro_CAS2K|mame_libretro|pv2000
	Cave|LibRetro_CAVE|mame_libretro
	Coleco ADAM|LibRetro_ADAM|mame_libretro|adam
	ColecoVision|LibRetro_COLEC|mame_libretro|coleco
	Commodore Amiga|LibRetro_PUAE|puae_libretro
	Commodore Max Machine|LibRetro_CMAX|mame_libretro|vic10
	Creatronic Mega Duck|LibRetro_DUCK|mame_libretro|megaduck
	Data East Classics|LibRetro_DATA|mame_libretro
	Dragon Data Dragon|LibRetro_DRAG64|mame_libretro|dragon64
	Elektronika BK|LibRetro_EBK|mame_libretro|bk0010
	Elektronska Industrija Pecom 64|LibRetro_P64|mame_libretro|pecom64
	Emerson Arcadia 2001|LibRetro_A2001|mame_libretro|arcadia
	Entex Adventure Vision|LibRetro_AVISION|mame_libretro|advision
	Epoch Game Pocket Computer|LibRetro_GPCKET|mame_libretro|gamepock
	Epoch Super Cassette Vision|LibRetro_SCV|mame_libretro|scv
	Exidy Sorcerer|LibRetro_SORCR|mame_libretro|sorcerer
	Fairchild Channel F|LibRetro_CHANF|mame_libretro|channelf
	Final Burn Alpha|LibRetro_FBA|fbalpha_libretro
	Funtech Super Acan|LibRetro_SACAN|mame_libretro|supracan
	GamePark 32|LibRetro_GP32|mame_libretro|gp32
	GCE Vectrex|LibRetro_VECTX|mame_libretro|vectrex
	Hartung Game Master|LibRetro_GMASTR|mame_libretro|gmaster
	Interton VC 4000|LibRetro_VC4K|mame_libretro|vc4000
	Irem Classics|LibRetro_IREM|mame_libretro
	JungleTac Sport Vii|LibRetro_SPORTV|mame_libretro|vii
	Konami Classics|LibRetro_KONC|mame_libretro
	Magnavox Odyssey 2|LibRetro_ODYS2|mame_libretro|odyssey2
	MAME|LibRetro_MAME|mame_libretro|mame
	Matra & Hachette Alice|LibRetro_ALICE|mame_libretro|alice32
	Mattel Aquarius|LibRetro_AQUA|mame_libretro|aquarius
	Mattel Intellivision|LibRetro_INTV|mame_libretro|intv
	MGT Sam Coupe|LibRetro_SAMCP|mame_libretro|
	Microsoft MS-DOS|LibRetro_MSDOS|dosbox_libretro
	Microsoft MSX|LibRetro_MSX|bluemsx_libretro
	Microsoft MSX2|LibRetro_MSX2|bluemsx_libretro
	Microsoft Windows 3.x|LibRetro_WIN3X|dosbox_libretro
	Midway Classics|LibRetro_MIDC|mame_libretro
	Namco Classics|LibRetro_NAMC|mame_libretro
	Namco System 22|LibRetro_NAM2|mame_libretro
	NEC PC Engine|LibRetro_PCE|mednafen_pce_fast_libretro|pce,cart
	NEC PC Engine-CD|LibRetro_PCECD|mednafen_pce_fast_libretro|pce,cdrom
	NEC PC-FX|LibRetro_PCFX|mednafen_pcfx_libretro
	NEC SuperGrafx|LibRetro_SGFX|mednafen_supergrafx_libretro|sgx,cart
	NEC TurboGrafx-16|LibRetro_TG16|mednafen_pce_fast_libretro|tg16,cart
	NEC TurboGrafx-CD|LibRetro_TGCD|mednafen_pce_fast_libretro|tg16,cdrom
	Nintendo 64|LibRetro_N64|mupen64plus_libretro|n64
	Nintendo 64DD|LibRetro_N64|mupen64plus_libretro
	Nintendo Arcade Systems|LibRetro_NINARC|mame_libretro
	Nintendo Classics|LibRetro_NINC|mame_libretro
	Nintendo DS|LibRetro_DS|desmume_libretro
	Nintendo Entertainment System|LibRetro_NES|nestopia_libretro|nes
	Nintendo Famicom|LibRetro_NFAM|nestopia_libretro
	Nintendo Famicom Disk System|LibRetro_NFDS|nestopia_libretro|famicom
	Nintendo Game Boy|LibRetro_GB|gambatte_libretro|gameboy
	Nintendo Game Boy Advance|LibRetro_GBA|vba_next_libretro|gba
	Nintendo Game Boy Color|LibRetro_GBC|gambatte_libretro|gbcolor
	Nintendo Game Boy Japan|LibRetro_GBJ|gambatte_libretro|gameboy
	Nintendo Game & Watch|LibRetro_GW|gw_libretro
	Nintendo Pokemon Mini|LibRetro_POKE|mame_libretro|pokemini
	Nintendo Satellaview|LibRetro_NSFS|snes9x_libretro
	Nintendo SuFami Turbo|LibRetro_NSFST|snes9x_libretro
	Nintendo Super Famicom|LibRetro_NSF|bsnes_balanced_libretro
	Nintendo Super Game Boy|LibRetro_SGB|bsnes_balanced_libretro
	Nintendo Virtual Boy|LibRetro_NVB|mednafen_vb_libretro|vboy
	Othello Multivision|LibRetro_OTHO|genesis_plus_gx_libretro
	Panasonic 3DO|LibRetro_3DO|4do_libretro
	Philips CD-i|LibRetro_CDI|mame_libretro|cdimono1
	Philips Videopac|LibRetro_PVID|mame_libretro|videopac
	RCA Studio II|LibRetro_STUD2|mame_libretro|studio2
	SCUMMVM|LibRetro_SCUMM|scummvm_libretro
	Sega 32X|LibRetro_32X|picodrive_libretro|32x
	Sega CD|LibRetro_SCD|genesis_plus_gx_libretro|segacd
	Sega Classics|LibRetro_SEGC|mame_libretro
	Sega Naomi|LibRetro_NAOMI|flycast_libretro
	Sega Dreamcast|LibRetro_DCAST|reicast_libretro
	Sega Game Gear|LibRetro_GG|genesis_plus_gx_libretro|gamegear
	Sega Genesis|LibRetro_GEN|genesis_plus_gx_libretro|genesis
	Sega Mark III|Libretro_SM3|genesis_plus_gx_libretro
	Sega Master System|LibRetro_SMS|genesis_plus_gx_libretro|sms
	Sega Mega Drive|LibRetro_GEN|genesis_plus_gx_libretro|megadriv
	Sega Mega Drive 32X|LibRetro_MD32X|picodrive_libretro
	Sega Meganet|LibRetro_GEN|genesis_plus_gx_libretro|genesis
	Sega Nomad|LibRetro_GEN|genesis_plus_gx_libretro|genesis
	Sega Pico|LibRetro_PICO|picodrive_libretro
	Sega Saturn|LibRetro_SAT|yabause_libretro|saturn
	Sega Saturn Japan|LibRetro_SAT|yabause_libretro|saturnjp
	Sega SC-3000|LibRetro_SC3K|mame_libretro|sc3000
	Sega SG-1000|LibRetro_SG1K|genesis_plus_gx_libretro
	Sega ST-V|LibRetro_STV|mame_libretro
	Sega VMU|LibRetro_SVMU|mame_libretro|svmu
	Sharp X1|LibRetro_SX1|mame_libretro|x1
	Sharp X68000|LibRetro_SX68000|mame_libretro|x68000
	Sinclair ZX Spectrum|LibRetro_SPECZX|mame_libretro|spectrum
	Sinclair ZX81|LibRetro_ZX81|81_libretro|zx81
	SNK Classics|LibRetro_SNKC|mame_libretro
	SNK Neo Geo|LibRetro_NEO|fbalpha_libretro
	SNK Neo Geo AES|LibRetro_NEOAES|mame_libretro|aes
	SNK Neo Geo CD|LibRetro_NEOCD|mame_libretro|neocdz
	SNK Neo Geo MVS|LibRetro_NEOMVS|mame_libretro
	SNK Neo Geo Pocket|LibRetro_NGP|mednafen_ngp_libretro|ngp
	SNK Neo Geo Pocket Color|LibRetro_NGPC|mednafen_ngp_libretro|ngpc
	Sony PlayStation|LibRetro_PSX|mednafen_psx_libretro|psu
	Sony PlayStation Minis|LibRetro_PSXMIN|ppsspp_libretro
	Sony PocketStation|LibRetro_POCKS|mame_libretro|pockstat
	Sony PSP|LibRetro_PSP|ppsspp_libretro
	Sony PSP Minis|LibRetro_PSP|ppsspp_libretro
	Sord M5|LibRetro_SORD|mame_libretro|m5
	Spectravideo|LibRetro_SV328|mame_libretro|svi328n
	Super Nintendo Entertainment System|LibRetro_SNES|bsnes_balanced_libretro|snes
	Taito Classics|LibRetro_TAIC|mame_libretro
	Tandy TRS-80 Color Computer|LibRetro_TRS80|mame_libretro|coco3
	Technos|LibRetro_TECHN|mame_libretro
	Texas Instruments TI 99-4A|LibRetro_TI99|mame_libretro|ti99_4a
	Thomson MO5|LibRetro_MO5|mame_libretro|mo5
	Thomson TO7|LibRetro_TO7|mame_libretro|to7
	Tiger Game.com|LibRetro_TCOM|mame_libretro|gamecom
	Tiki-100|LibRetro_TIKI|mame_libretro|kontiki
	Tomy Tutor|LibRetro_TOMY|mame_libretro|tutor
	VTech CreatiVision|LibRetro_VTECH|mame_libretro|crvision
	Watara Supervision|LibRetro_SUPRV|mame_libretro|svision
	Williams Classics|LibRetro_WILLS|mame_libretro
	)"
mType := Object()
Loop, Parse, mTypeVar, `n, `r
{
	obj := {}
	Loop, Parse, A_LoopField, |
	{
		If (A_Index = 1)
			obj.System := A_LoopField
		Else If (A_Index = 2)
			obj.ID := A_LoopField
		Else If (A_Index = 3)
			obj.Core := A_LoopField
		Else {	; 4
			StringSplit, tmp, A_LoopField, `,
			obj.MAMEID := tmp1
			obj.MAMEMedia := tmp2
		}
	}
	mType.Insert(obj["System"], obj)
}
RLLog.Debug("Module - Finished building the " . MEmu . " object")
; For easier use throughout the module
retroSystem := mType[systemName].System
retroID := mType[systemName].ID
retroCore := mType[systemName].Core
retroMAMEID := mType[systemName].MAMEID
retroMAMEMedia := mType[systemName].MAMEMedia
RLLog.Info("Module - Using these system variables:")
RLLog.Info("Module - retroSystem: " . retroSystem)
RLLog.Info("Module - retroID: " . retroID)
RLLog.Info("Module - retroCore: " . retroCore)
RLLog.Info("Module - retroMAMEID: " . retroMAMEID)
RLLog.Info("Module - retroMAMEMedia: " . retroMAMEMedia)
If !retroSystem
	ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this " . MEmu . " module: " . moduleName)
If !retroCore
	ScriptError("Your Core ID is: " . retroID . "`nCould not find a default core to use. Please update the module with a default core.")

Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
configFolder := moduleIni.Read("Settings", "ConfigFolder",emuPath . "\config",,1)
singlecoreoptions := moduleIni.Read("Settings", "single_core_options","false",,1) = "true" ? ":\retroarch-core-options.cfg" : """"
mameRomPath := moduleIni.Read("MAME", "BIOS_Roms_Folder",,,1)
mameHideNag := If moduleIni.Read("MAME", "Hide_Nag_Screen","false",,1) = "true" ? "enabled" : "disabled"
mameHideInfo := If moduleIni.Read("MAME", "Hide_Info_Screen","false",,1) = "true" ? "enabled" : "disabled"
mameHideWarn := If moduleIni.Read("MAME", "Hide_Warning_Screen","false",,1) = "true" ? "enabled" : "disabled"
hideConsole := moduleIni.Read("Settings", "HideConsole","true",,1)
ejectToggleKey := moduleIni.Read("Settings", "Eject_Toggle_Key",,,1)
nextDiskKey := moduleIni.Read("Settings", "Next_Disk_Key",,,1)
prevDiskKey := moduleIni.Read("Settings", "Previous_Disk_Key",,,1)
core := moduleIni.Read(romName . "|" . systemName, "LibRetro_Core",retroCore,,1)
superGB := moduleIni.Read(romName . "|" . systemName, "SuperGameBoy","false",,1)
enableNetworkPlay := moduleIni.Read(romName . "|Network", "Enable_Network_Play","false",,1)
overlay := moduleIni.Read(romName . "|" . systemName, "Overlay",,,1)
videoShader := moduleIni.Read(romName . "|" . systemName, "VideoShader",,,1)
aspectRatioIndex := moduleIni.Read(romName . "|" . systemName, "AspectRatioIndex",,,1)
customViewportWidth := moduleIni.Read(romName . "|" . systemName, "CustomViewportWidth",,,1)
customViewportHeight := moduleIni.Read(romName . "|" . systemName, "CustomViewportHeight",,,1)
customViewportX := moduleIni.Read(romName . "|" . systemName, "CustomViewportX",,,1)
customViewportY := moduleIni.Read(romName . "|" . systemName, "CustomViewportY",,,1)
stretchToFillBezel := moduleIni.Read(romName . "|" . systemName, "StretchToFillBezel","false",,1)
rotation := moduleIni.Read(romName . "|" . systemName, "Rotation",0,,1)
cropOverscan := moduleIni.Read(romName . "|" . systemName, "CropOverscan",,,1)
threadedVideo := moduleIni.Read(romName . "|" . systemName, "ThreadedVideo",,,1)
vSync := moduleIni.Read(romName . "|" . systemName, "VSync",,,1)
integerScale := moduleIni.Read(romName . "|" . systemName, "IntegerScale",,,1)
configurationPerCore := moduleIni.Read(romName . "|" . systemName, "ConfigurationPerCore","false",,1)

If (StringUtils.Contains(core, "^(mame|mess|ume)") && !retroMAMEID) {
	retroMAMEID := "mame"	; set all systems that use a mame core to the default mame ID so any system name is supported
	RLLog.Warning("Module - Setting MAMEID to default ""mame"" for """ . retroSystem . """")
}

configFolder := RLObject.getFullPathFromRelative(rlPath,configFolder)
mameRomPath := If mameRomPath ? RLObject.getFullPathFromRelative(rlPath,mameRomPath) : romPath
overlay := RLObject.getFullPathFromRelative(rlPath,overlay)
videoShader := RLObject.getFullPathFromRelative(rlPath,videoShader)
rotateBezel := false

configFolder := new Folder(configFolder)

If (retroID = "LibRetro_SGB" || superGB = "true")	; if system or rom is set to use Super Game Boy
{	superGB := "true"	; setting this just in case it's false and the system is Nintendo Super Game Boy
	sgbRomPath := CheckFile(emuPath . "\system\Super Game Boy (World).sfc","Could not find the rom required for Super Game Boy support. Make sure the rom ""Super Game Boy (World).sfc"" is located in: " . emuPath . "\system")
	CheckFile(emuPath . "\system\sgb.boot.rom","Could not find the bios required for Super Game Boy support. Make sure the bios ""sgb.boot.rom"" is located in: " . emuPath . "\system")
	retroID := "LibRetro_SGB"	; switching to Super Game Boy mode
	retroSystem := "Nintendo Super Game Boy"
}

; Find the dll for this system
libDll := CheckFile(emuPath . "\cores\" . core . ".dll", "Your " . retroID . " dll is set to " . core . " but could not locate this file:`n" . emuPath . "\cores\" . core . ".dll")

; Find the cfg file to use
If !configFolder.Exist()
	ScriptError("You need to make sure ""ConfigFolder"" is pointing to your RetroArch config folder. By default it is looking here: """ . configFolder.FilePath . """")
globalRetroCfg := emuPath . "\retroarch.cfg"
systemRetroCfg := configFolder.FilePath . "\" . retroSystem . ".cfg"
coreRetroCfg := configFolder.FilePath . "\" . core . ".cfg"
RLLog.Info("Module - Global cfg should be: " . globalRetroCfg)
RLLog.Info("Module - System cfg should be: " . systemRetroCfg)
RLLog.Info("Module - Core cfg should be: " . coreRetroCfg)
foundCfg := ""

systemRetroCfg := new File(systemRetroCfg)
coreRetroCfg := new File(coreRetroCfg)
globalRetroCfg := new File(globalRetroCfg)

If systemRetroCfg.Exist() {	; check for system cfg first
	retroCFGFile := systemRetroCfg
	foundCfg := 1
	RLLog.Info("Module - Found a System cfg!")
} Else If coreRetroCfg.Exist() {	; 2nd option is a core config
	retroCFGFile := coreRetroCfg
	foundCfg := 1
	RLLog.Info("Module - Found a Core cfg!")
} Else If globalRetroCfg.Exist() {	; 3rd is global cfg
	retroCFGFile := globalRetroCfg
	foundCfg := 1
	RLLog.Info("Module - Found a Global cfg!")
}
If foundCfg {
	RLLog.Info("Module - " . MEmu . " is using " . retroCFGFile.FileFullPath . " as its config file.")
	retroCFG := LoadProperties(retroCFGFile.FileFullPath)
} Else
	RLLog.Warning("Module - Could not find a cfg file to update settings. RetroArch will make one for you.")

If StringUtils.Contains(rotation,"1|3") ; use vertical bezel if RA rotation is set to 90 or 270 degrees
	rotateBezel := true

If StringUtils.Contains(retroID, "LibRetro_NFDS|LibRetro_SCD|LibRetro_TGCD|LibRetro_PCECD|LibRetro_PCFX") {		; these systems require the retroarch settings to be read
	retroSysDir := ReadProperty(retroCFG,"system_directory")	; read value
	retroSysDir := ConvertRetroCFGKey(retroSysDir)	; remove dbl quotes
	retroSysDirLeft := StringUtils.Left(retroSysDir, 2)
	If (retroSysDirLeft = ":\") {	; if retroarch is set to use a default folder
		retroSysDir := StringUtils.TrimLeft(retroSysDir, 1)
		RLLog.Info("Module - RetroArch is using a relative system path: """ . retroSysDir . """")
		retroSysDir := emuPath . retroSysDir
	}
	If !retroSysDir
		ScriptError("RetroArch requires you to set your system_directory and place bios rom(s) in there for """ . retroSystem . """ to function. Please do this first by running ""retroarch-phoenix.exe"" manually.")
	checkForSlash := StringUtils.Right(retroSysDir, 1)
	If (checkForSlash = "\")	; check if a backslash is the last character. If it is, remove it, as this is non-standard method to define folders
		retroSysDir := StringUtils.TrimRight(retroSysDir, 1)
}

If (StringUtils.Contains(core, "^(mame|mess|ume)")) || (StringUtils.Contains(retroID, "LibRetro_N64|LibRetro_NES|LibRetro_LYNX|LibRetro_PSX")) || (StringUtils.Contains(retroID, "LibRetro_NES") && (StringUtils.Contains(core, "nestopia_libretro"))) {	; these systems will use an ini to store game specific settings
	RLLog.Info("Module - Reading / creating system ini for specific settings.")
	If !StringUtils.Contains(core, "^(mame|mess|ume)") {
		If !SystemModuleIni.Exist()
			SystemModuleIni.Append		; create a new blank ini file if one does not exist
	}

	coreOptionsCFG := LoadProperties(coreOptionsCFGFile.FileFullPath)
	
	If StringUtils.Contains(core, "^(mame|mess|ume)") {	; Set some MAME/MESS/UME core options.
		tmpCore := If StringUtils.Contains(core, "mame") ? "mame" : "mess"
		WriteProperty(coreOptionsCFG, tmpCore . "_read_config", """enabled""", 1)
		WriteProperty(coreOptionsCFG, tmpCore . "_boot_from_cli", """enabled""", 1)				; This needs to be enabled in order to run games with RLauncher
		WriteProperty(coreOptionsCFG, tmpCore . "_hide_nagscreen", "" . mameHideNag . "", 1)
		WriteProperty(coreOptionsCFG, tmpCore . "_hide_infoscreen", "" . mameHideInfo . "", 1)
		WriteProperty(coreOptionsCFG, tmpCore . "_hide_warnings", "" . mameHideWarn . "", 1)
	} Else If StringUtils.Contains(retroID, "LibRetro_N64") {	; Nintendo 64
		mupenGfx := moduleIni.Read(romName . "|" . systemName, "Mupen_Gfx_Plugin", "auto",,1)
		mupenRsp := moduleIni.Read(romName . "|" . systemName, "Mupen_RSP_Plugin", "auto",,1)
		mupenCpu := moduleIni.Read(romName . "|" . systemName, "Mupen_CPU_Core", "dynamic_recompiler",,1)
		mupenPak1 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_1", "memory",,1)
		mupenPak2 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_2", "memory",,1)
		mupenPak3 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_3", "memory",,1)
		mupenPak4 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_4", "memory",,1)
		mupenGfxAccur := moduleIni.Read(romName . "|" . systemName, "Mupen_Gfx_Accuracy", "high",,1)
		mupenExpMem := moduleIni.Read(romName . "|" . systemName, "Mupen_Disable_Exp_Memory", "no",,1)
		mupenTexturFilt := moduleIni.Read(romName . "|" . systemName, "Mupen_Texture_Filtering", "nearest",,1)
		mupenViRefresh := moduleIni.Read(romName . "|" . systemName, "Mupen_VI_Refresh", "2200",,1)
		mupenFramerate := moduleIni.Read(romName . "|" . systemName, "Mupen_Framerate", "fullspeed",,1)
		mupenResolution := moduleIni.Read(romName . "|" . systemName, "Mupen_Resolution", "640x480",,1)
		mupenPolyOffstFctr := moduleIni.Read(romName . "|" . systemName, "Mupen_Polygon_Offset_Factor", "-3.0",,1)
		mupenPolyOffstUnts := moduleIni.Read(romName . "|" . systemName, "Mupen_Polygon_Offset_Units", "-3.0",,1)
		mupenViOverlay := moduleIni.Read(romName . "|" . systemName, "Mupen_VI_Overlay", "disabled",,1)
		mupenAnalogDzone := moduleIni.Read(romName . "|" . systemName, "Mupen_Analog_Deadzone", "15",,1)

		WriteProperty(coreOptionsCFG, "mupen64-gfxplugin", mupenGfx, 1)
		WriteProperty(coreOptionsCFG, "mupen64-rspplugin", mupenRsp, 1)
		WriteProperty(coreOptionsCFG, "mupen64-cpucore", mupenCpu, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak1", mupenPak1, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak2", mupenPak2, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak3", mupenPak3, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak4", mupenPak4, 1)
		WriteProperty(coreOptionsCFG, "mupen64-gfxplugin-accuracy", mupenGfxAccur, 1)
		WriteProperty(coreOptionsCFG, "mupen64-disableexpmem", mupenExpMem, 1)
		WriteProperty(coreOptionsCFG, "mupen64-filtering", mupenTexturFilt, 1)
		WriteProperty(coreOptionsCFG, "mupen64-virefresh", mupenViRefresh, 1)
		WriteProperty(coreOptionsCFG, "mupen64-framerate", mupenFramerate, 1)
		WriteProperty(coreOptionsCFG, "mupen64-screensize", mupenResolution, 1)
		WriteProperty(coreOptionsCFG, "mupen64-polyoffset-factor", mupenPolyOffstFctr, 1)
		WriteProperty(coreOptionsCFG, "mupen64-polyoffset-units", mupenPolyOffstUnts, 1)
		WriteProperty(coreOptionsCFG, "mupen64-angrylion-vioverlay", mupenViOverlay, 1)
		WriteProperty(coreOptionsCFG, "mupen64-astick-deadzone", mupenAnalogDzone, 1)
	} Else If StringUtils.Contains(retroID, "LibRetro_NES") {		; these systems will use an ini to store game specific settings
		If StringUtils.Contains(core, "nestopia_libretro") {	; Nestopia
			nestopiaBlargg := moduleIni.Read(romName . "|Nestopia", "Nestopia_Blargg_NTSC_Filter", "disabled",,1)
			nestopiaPalette := moduleIni.Read(romName . "|Nestopia", "Nestopia_Palette", "canonical",,1)
			nestopiaNoSprteLimit := moduleIni.Read(romName . "|Nestopia", "Nestopia_Remove_Sprites_Limit", "disabled",,1)
			
			WriteProperty(coreOptionsCFG, "nestopia_blargg_ntsc_filter", nestopiaBlargg, 1)
			WriteProperty(coreOptionsCFG, "nestopia_palette", nestopiaPalette, 1)
			WriteProperty(coreOptionsCFG, "nestopia_nospritelimit", nestopiaNoSprteLimit, 1)
		}
	} Else If StringUtils.Contains(retroID, "LibRetro_LYNX") {	; Atari Lynx
		If StringUtils.Contains(core, "handy_libretro") {   ; Handy
			handyRotate := moduleIni.Read(romName . "|" . systemName, "Handy_Rotation", "None",,1)
			If StringUtils.Contains(handyRotate, "240") or StringUtils.Contains(handyRotate, "90")
				rotateBezel := true
			WriteProperty(coreOptionsCFG, "handy_rot", handyRotate, 1)
		}
	} Else If StringUtils.Contains(retroID, "LibRetro_PSX") {	; Sony PlayStation
		psxCdImageCache := moduleIni.Read(romName . "|" . systemName, "PSX_CD_Image_Cache", """enabled""",,1)
		psxMemcardHandling := moduleIni.Read(romName . "|" . systemName, "PSX_Memcard_Handling", """libretro""",,1)
		psxDualshockAnalogToggle := moduleIni.Read(romName . "|" . systemName, "PSX_Dualshock_Analog_Toggle", """enabled""",,1)
		
		WriteProperty(coreOptionsCFG, "beetle_psx_cdimagecache", psxCdImageCache, 1)
		WriteProperty(coreOptionsCFG, "beetle_psx_use_mednafen_memcard0_method", psxMemcardHandling, 1)
		WriteProperty(coreOptionsCFG, "beetle_psx_analog_toggle", psxDualshockAnalogToggle, 1)
	}
	SaveProperties(coreOptionsCFGFile.FileFullPath, coreOptionsCFG)
}

hideEmuObj := Object(emuConsoleWindow,0,emuPrimaryWindow,1)
7z(romPath, romName, romExtension, sevenZExtractPath)

mgM3UFile := new File(romPath . "\" . romTable[1,4] . ".m3u")

mgRomExtensions := "cue|iso|ccd"
mgValidExtension := false

Loop, Parse, mgRomExtensions, |
	If (romExtension = "." . A_LoopField)
		mgValidExtension := true

If (StringUtils.Contains(retroID, "LibRetro_PSX") && romTable.MaxIndex() && mgValidExtension) { ; See if MultiGame table is populated	
	m3uRomIndex := Object()
	mgType := romTable[1,6] . " "
	mgMaxIndex := romTable.MaxIndex()
	mgRomIndex := 0

	If mgM3UFile.Exist()
		mgM3UFile.Delete()

	Loop % mgMaxIndex
	{
		If (romTable[A_Index, 3] = romName) {
			tempType := romTable[A_Index, 5]
			mgRomIndex := StringUtils.TrimLeft(tempType, StringUtils.StringLength(mgType))
			RLLog.Info("Found rom index in rom set in romTable: " . mgRomIndex)
			Break
		}
	}

	If (mgRomIndex > 0) {
		tempRomIndex := mgRomIndex
		Loop % mgMaxIndex
		{
			mgTypeIndex := mgType . tempRomIndex
			m3uRomIndex.Insert(tempRomIndex)

			Loop % mgMaxIndex
			{
				If (romTable[A_Index, 5] = mgTypeIndex) {
					tempRomPath := romTable[A_Index, 1]
					mgM3UFile.Append(tempRomPath . "`n")
					RLLog.Info("Module - Appending rom path to m3u: " . tempRomPath)
					Break
				}
			}

			If (tempRomIndex < mgMaxIndex)
				tempRomIndex++
			Else
				tempRomIndex := 1
		}
	}
}

; MAME/MESS/UME core options
MAMEParam1 := ""
MAMEParam2 := ""
MAMEParam3 := ""
If StringUtils.Contains(core, "^(mame|mess|ume)") {	; if a MAME/MESS/UME core is used
	If !retroMAMEID
		ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for the MAME/MESS/UME LibRetro core")
	Else
		RLLog.Info("Module - MAME/MESS/UME mode using a known ident: " . retroMAMEID)

	If !mameRomPath
		ScriptError("Please set the RetroArch module setting ""BIOS_Roms_Folder"" to the folder that contains your MAME/MESS/UME BIOS roms to use with RetroArch.")
	
	If (retroMAMEID = "mame") {		; want this for arcade mame only
		RLLog.Info("Module - Retroarch MAME/MESS/UME Arcade mode enabled")
		fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
	} Else {
		RLLog.Info("Module - Retroarch MAME/MESS/UME Console/PC mode enabled")
		MAMEParam1 := ""
		MAMEParam2 := " -rompath \""" . mameRomPath . "\"""

		; If we already have a media type, then use it.
		If (StringUtils.Contains(retroMAMEID, "tg16|pce") && retroMAMEMedia = "cart") {
			;MAMEParam3 := " -cart \" . """" . romPath . "\" . romName . romExtension . "\" . """"
			MAMEParam3 := " -cart \""" . romPath . "\" . romName . romExtension . "\"""""
		; TODO: This needs a better way to handle the cdrom bios files, in my opinion. As it is, there's no clean way to pick between the v2.00 or v3.00 bios.
		;       Defaulting to the TurboDuo cdrom bios since it will play 2.00 or 3.00 games.
		} Else If (StringUtils.Contains(retroMAMEID, "tg16|pce") && retroMAMEMedia = "cdrom") {
			;MAMEParam3 := " -cart cdsys -cdrm \" . """" . romPath . "\" . romName . romExtension . "\" . """"
			MAMEParam3 := " -cart scdsys -cdrm \""" . romPath . "\" . romName . romExtension . "\"""""
		} Else {
			; Build a key/value object containing the different MAMEParam3 choices
			MAMEP3 := Object("alice32","cass1","gp32","memc","cpc464","cass","spectrum","cass","dragon64","cass","cdimono1","cdrom","bk0010","cass","neocd","cdrom","neocdz","cdrom","saturn","cdrm","saturnjp","cdrm","svi328n","cass","pecom64","cass","psu","cdrm","svmu","quik","gamecom","cart1","mbeeic","quik1")
			MAMEParam3 := MAMEP3[retroMAMEID]	; search object for the retroMAMEID pair
			MAMEParam3 := " -" . (If MAMEParam3 ? MAMEParam3 : "cart") . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
		}

		If (retroMAMEID = "mbeeic") ; Applied Technology MicroBee
		{	microbeeModel := IniReadCheck(MAMESysINI, romName, "MicroBee_Model","mbeeic",,1)
			If microbeeModel not in mbee,mbeeic,mbeepc,mbeepc85,mbee56
				ScriptError("This is not a known MicroBee model value: " . microbeeModel)
			Else If (microbeeModel != "mbeeic")
				retroMAMEID := microbeeModel
			If romExtension in .mwb,.com,.bee
				mediaDeviceType := "quik1"
			Else If romExtension in .wav,.tap
				mediaDeviceType := "cass"
			Else If romExtension in .rom
				mediaDeviceType := "cart"
			Else If romExtension in .dsk
				mediaDeviceType := "flop1"
			Else	; .bin format
				mediaDeviceType := "quik2"
			MAMEParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
		}
		
		If (retroMAMEID = "x68000") ; Sharp X68000
		{	
			If romExtension in .xdf,.hdm,.2hd,.dim,.d77,.d88,.1dd,.dfi,.imd,.ipf,.mfi,.mfm,.td0,.cqm,.cqi,.dsk
				mediaDeviceType := "flop1"
			Else	; .bin format
				mediaDeviceType := "sasi"
			MAMEParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
		}
		
		fullRomPath := MAMEParam1 . MAMEParam2 . MAMEParam3
	}
} Else If (superGB = "true") {
	RLLog.Info("Module - Retroarch Super Game Boy mode enabled")
	fullRomPath := " """ . sgbRomPath . """ --subsystem sgb """ . romPath . "\" . romName . romExtension . """"
} Else {
	RLLog.Info("Module - Retroarch standard mode enabled")
	fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
}

If (retroID = "LibRetro_NFDS")	; Nintendo Famicom Disk System
{	disksysRom := new File(retroSysDir . "\disksys.rom")
	If !disksysRom.Exist()
		ScriptError("RetroArch requires ""disksys.rom"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If (retroID = "LibRetro_SCD")	; Sega CD
{	If !StringUtils.Contains(romExtension, "\.bin|\.cue|\.iso")
		ScriptError("RetroArch only supports Sega CD games in bin|cue|iso format. It does not support:`n" . romExtension)
	biosCDEBin := new File(retroSysDir . "\bios_CD_E.bin")
	biosCDUBin := new File(retroSysDir . "\bios_CD_U.bin")
	biosCDJBin := new File(retroSysDir . "\bios_CD_J.bin")
	If !biosCDEBin.Exist()
		ScriptError("RetroArch requires ""bios_CD_E.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
	If !biosCDUBin.Exist()
		ScriptError("RetroArch requires ""bios_CD_U.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
	If !biosCDJBin.Exist()
		ScriptError("RetroArch requires ""bios_CD_J.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If StringUtils.Contains(retroID,"LibRetro_PCECD|LibRetro_TGCD")	; NEC PC Engine-CD and NEC TurboGrafx-CD
{	If !StringUtils.Contains(romExtension,"\.ccd|\.cue")
		ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
	sysCard3Pce := new File(retroSysDir . "\syscard3.pce")
	If !sysCard3Pce.Exist()
		ScriptError("RetroArch requires ""syscard3.pce"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If (retroID = "LibRetro_PCFX")
{	If !StringUtils.Contains(romExtension,"\.ccd|\.cue")
		ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
	pcfxBios := new File(retroSysDir . "\pcfx.bios")
	If !pcfxBios.Exist()
		ScriptError("RetroArch requires ""pcfx.bios"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If (retroID = "LibRetro_SCUMM")
{
	scummFile := new File(romPath . "\" . romName . ".scummvm")
	If !scummFile.Exist()
		scummFile.Append("""" . romName . """")
}

networkSession := ""
If (enableNetworkPlay = "true") {
	RLLog.Info("Module - Network Multi-Player is an available option for " . dbName)

	netplayNickname := moduleIni.Read("Network", "NetPlay_Nickname","Player",,1)
	getWANIP := moduleIni.Read("Network", "Get_WAN_IP","false",,1)

	If (getWANIP = "true")
		myPublicIP := GetPublicIP()

	RLLog.Warning("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE")
	defaultServerIP := moduleIni.Read("Network", "Default_Server_IP", myPublicIP,,1)
	defaultServerPort := moduleIni.Read("Network", "Default_Server_Port",,,1)
	lastIP := moduleIni.Read("Network", "Last_IP", defaultServerIP,,1)	; does not need to be on the ISD
	lastPort := moduleIni.Read("Network", "Last_Port", defaultServerPort,,1)	; does not need to be on the ISD

	mpMenuStatus := MultiPlayerMenu(lastIP,lastPort,networkType,,0)
	If (mpMenuStatus = -1) {	; if user exited menu early
		RLLog.Warning("Module - Cancelled MultiPlayer Menu. Exiting module.")
		ExitModule()
	}
	If networkSession {
		RLLog.Info("Module - Using a Network for " . dbName)
		moduleIni.Write(networkPort, "GlobalModuleIni", "Network", "Last_Port")
		; msgbox lastIP: %lastIP%`nlastPort: %lastPort%`nnetworkIP: %networkIP%`nnetworkPort: %networkPort%
		If (networkType = "client") {
			moduleIni.Write(networkIP, "GlobalModuleIni", "Network", "Last_IP")	; Save last used IP and Port for quicker launching next time
			netCommand := " -C " . networkIP . " --port " . networkPort . " --nick """ . netplayNickname . """"	; -C = connect as client
		} Else {	; server
			netCommand := " -H --port " . networkPort . " --nick """ . netplayNickname . """"	; -H = host as server
		}
		RLLog.Warning("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE")
		RLLog.Info("Module - Starting a network session using the IP """ . networkIP . """ and PORT """ . networkPort . """")
	} Else
		RLLog.Info("Module - User chose Single Player mode for this session")
}

BezelStart(,,(If rotateBezel ? 1:""))

If foundCfg {
	If (stretchToFillBezel = "true" and bezelEnabled = "true" and bezelPath)
	{
		customViewportWidth := bezelScreenWidth
		customViewportHeight := bezelScreenHeight
		customViewportX := 0
		customViewportY := 0
		aspectRatioIndex := 22
		RLLog.Info("Stretching viewport to fit bezel")
	}

	raCfgHasChanges := ""
	WriteRetroProperty("core_options_path", singlecoreoptions)
	WriteRetroProperty("input_overlay", overlay)
	WriteRetroProperty("video_shader", videoShader)
	WriteRetroProperty("aspect_ratio_index", aspectRatioIndex)
	WriteRetroProperty("custom_viewport_width", customViewportWidth)
	WriteRetroProperty("custom_viewport_height", customViewportHeight)
	WriteRetroProperty("custom_viewport_x", customViewportX)
	WriteRetroProperty("custom_viewport_y", customViewportY)
	WriteRetroProperty("video_rotation", rotation)
	WriteRetroProperty("video_crop_overscan", cropOverscan)
	WriteRetroProperty("video_threaded", threadedVideo)
	WriteRetroProperty("video_vsync", vSync)
	WriteRetroProperty("video_scale_integer", integerScale)
	WriteRetroProperty("input_disk_eject_toggle", ejectToggleKey)
	WriteRetroProperty("input_disk_next", nextDiskKey)
	WriteRetroProperty("input_disk_prev", prevDiskKey)
	If StringUtils.Contains(retroID, "LibRetro_PSX") {
		Loop, 8	; Loop 8 times for 8 controllers
		{	p%A_Index%ControllerType := moduleIni.Read(romName . "|" . systemName, "P" . A_Index . "_Controller_Type", 517,,1)
			WriteRetroProperty("input_libretro_device_p" . A_Index, p%A_Index%ControllerType)
		}
	}

	If raCfgHasChanges {
		RLLog.Info("Module - Saving changed settings to: """ . retroCFGFile.FileFullPath . """")
		SaveProperties(retroCFGFile.FileFullPath, retroCFG)
	}
}

fullscreen := If fullscreen = "true" ? " -f" : ""
retroCFGFileCLI := If foundCfg ? " -c """ . retroCFGFile.FileFullPath . """" : ""



HideAppStart(hideEmuObj,hideEmu)

If (StringUtils.Contains(core, "^(mame|mess|ume)") && (retroMAMEID != "mame")) {    ; if a MAME/MESS/UME core is used
	primaryExe.Run(" """ . (retroMAMEID ? retroMAMEID : "") . fullRomPath . """ " . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
} Else If (retroID = "LibRetro_SCUMM") {
	primaryExe.Run(" """ . scummFile . """" . fullscreen . retroCFGFileCLI . " -L """ . libDll . "" . netCommand, "Hide")
} Else If (retroID = "LibRetro_SGB" || If superGB = "true") { ; For some reason, the order of our command line matters in this particular case.
	primaryExe.Run(fullscreen . retroCFGFileCLI . " -L """ . libDll . fullRomPath . netCommand, "Hide")
} Else If mgM3UFile.Exist() {
	primaryExe.Run(" """ . mgM3UFile.FileFullPath . """" . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
} Else {
	primaryExe.Run(" " . fullRomPath . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
}

mpMenuStatus := ""
If networkSession {
	canceledServerWait := false
	multiplayerMenuExit := false
	TimerUtils.SetTimer("NetworkConnectedCheck", 500)

	If (networkType = "server") {
		RLLog.Info("Module - Waiting for a client to connect to your server")
		mpMenuStatus := MultiPlayerMenu(,,,,,,,,"You are the server. Please wait for your client to connect.")
	} Else {	; client
		RLLog.Info("Module - Trying to contact the server to establish a connection.")
		mpMenuStatus := MultiPlayerMenu(,,,,,,,,"Attempting to connect to the server...")
	}

	If (mpMenuStatus = -1) {	; if user exited menu early before a client connected
		RLLog.Warning("Module - Cancelled waiting for the " . If (networkType = "server") ? "client to connect" : "server to respond" . ". Exiting module.")
		If primaryExe.Process("Exist")
			primaryExe.Process("Close")	; must close process as the exe is waiting for a client to connect and no window was drawn yet
		ExitModule()
	} Else {	; blank response from MultiPlayerMenu, exited properly
		RLLog.Info("Module - " . If (networkType = "server") ? "Client has connected" : "Connected to the server")
		emuPrimaryWindow.Wait()
		emuPrimaryWindow.WaitActive()
	}
	TimerUtils.SetTimer("NetworkConnectedCheck", "Off")
} Else {	; single player
	emuPrimaryWindow.Wait()
	emuPrimaryWindow.WaitActive()
}

If (hideConsole = "true")
	emuConsoleWindow.Set("Transparent", "On")	; makes the console window transparent so you don't see it on exit

BezelDraw()
HideAppEnd(hideEmuObj,hideEmu)
FadeInExit()
primaryExe.Process("WaitClose")
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()


; Writes new properties into the retroCFG if defined by user
WriteRetroProperty(key,value="") {
	If (value != "") {
		Global retroCFG,raCfgHasChanges
		WriteProperty(retroCFG, key, value,1,1)
		raCfgHasChanges := 1
	}
}

; Used to convert between RetroArch keys and usable data
ConvertRetroCFGKey(txt,direction="read"){
	Global emuPath,RLLog
	If (direction = "read")
	{	newtxt := StringUtils.TrimLeft(txt,1,0)	; removes the " from the left of the txt
		newtxt := StringUtils.TrimRight(newtxt,1,0)	; removes the " from the right of the txt
		relativeCheck := StringUtils.SubStr(newtxt,1,1,0)
		If StringUtils.Contains(relativeCheck,":",0) {	; if the path contains a ":" then it is a relative path
			RLLog.Debug("ConvertRetroCFGKey - " . newtxt . " is a relative path")
			newtxt := StringUtils.TrimLeft(newtxt,1,0)	; removes the : from the left of the txt
			newtxt := AbsoluteFromRelative(emuPath, "." . newtxt)	; convert relative to absolute
		}
		If StringUtils.Contains(newtxt,"/",0)
			newtxt := StringUtils.Replace(newtxt,"/","\",1,,0)	; replaces all forward slashes with backslashes
	} Else If (direction = "write")
	{	newtxt := """" . txt . """"	; wraps the txt with ""
		If StringUtils.Contains(newtxt,"\\",0)
			newtxt := StringUtils.Replace(newtxt,"\","/",1,,0)	; replaces all backslashes with forward slashes
	} Else
		ScriptError("Not a valid use of ConvertRetroCFGKey. Only ""read"" or ""write"" are supported.")
	RLLog.Debug("ConvertRetroCFGKey - Converted " . txt . " to " . newtxt)
	Return newtxt
}

MultiGame:
	KeyUtils.SetKeyDelay(100)
	emuPrimaryWindow.Activate()
	KeyUtils.Send("{" . ejectToggleKey . " down}{" . ejectToggleKey . " up}")	; eject disc in Retroarch
	If (!mgLastRomIndex) {
		mgLastRomIndex := mgRomIndex
	}
	selectedRomIndex := 0
	selectedRomIndex := StringUtils.TrimLeft(selectedRomNum, StringUtils.StringLength(mgType,0))
	
	Loop % mgMaxIndex
	{
		If (m3uRomIndex[A_index] = mgLastRomIndex) {
			tempLastRomIndex := A_index
			RLLog.Debug("Module - Last index: " . tempLastRomIndex)
		}
		If (m3uRomIndex[A_index] = selectedRomIndex) {
			tempSelectedRomIndex := A_index
			RLLog.Debug("Module - Selected index: " . tempSelectedRomIndex)
		}
	}
	
	mgNewIndex := tempLastRomIndex - tempSelectedRomIndex
	
	If (mgNewIndex < 0) {
		mgNewIndex := mgNewIndex * -1
		Loop % mgNewIndexhere is 
		{
			RLLog.Debug("Module - Sending the next disk key: " . nextDiskKey)
			KeyUtils.Send("{" . nextDiskKey . " down}{" . nextDiskKey . " up}")
		}
	} Else If (mgNewIndex > 0) {
		Loop % mgNewIndex
		{
			RLLog.Debug("Module - Sending the previous disk key: " . mgNewIndex)
			KeyUtils.Send("{" . prevDiskKey . " down}{" . prevDiskKey . " up}")
		}
	}
	
	KeyUtils.Send("{" . ejectToggleKey . " down}{" . ejectToggleKey . " up}")	; close disc in Retroarch
	mgLastRomIndex := selectedRomIndex
Return

NetworkConnectedCheck:
	If clientConnected
		multiplayerMenuExit := true
	Else If emuPrimaryWindow.Exist() {
		RLLog.Info("Module - RetroArch session started, closing the MultiPlayer menu")
		multiplayerMenuExit := true
	}
Return

CloseProcess:
	FadeOutStart()
	emuPrimaryWindow.Close()
Return


cmd of rocketlauncher launching a dreamcast game successfully



Code:
| Process.Run - Running: H:\Emulators\RetroArch\retroarch.exe   "H:\Games\Sega Dreamcast\Crazy Taxi (USA).chd" -f -c "H:\Emulators\RetroArch\retroarch.cfg" -L "H:\Emulators\RetroArch\cores\flycast_libretro.dll

cmd of rocketlauncher launching a naomi game unsuccessfully

Code:
Process.Run - Running: H:\Emulators\RetroArch\retroarch.exe   "H:\Games\Sega Naomi\cspike.zip" -f -c "H:\Emulators\RetroArch\retroarch.cfg" -L "H:\Emulators\RetroArch\cores\flycast_libretro.dll

what i dont get is launching through cmd directly works!
 
Last edited:

ArcherDusk

New member
Hello, I've just been among you. I have a problem . I want to run Final Burn Neo emulator in RocketLauncher. Of course via Retroarch. but I can't do that just stuck on the screen that appears in the screenshots. I managed to add Final Burn Neo to the Retroarch module, but I cannot open games. Please help me !!
 
Last edited:

ArcherDusk

New member
Yes. It works outside of the RocketLauncher. but when i add it to RocketLauncher i get this error. Normally FBNEo was not supported in the Retorarch module. I edited the Retroarch module and made it see FBNEO but I encountered this error.
 
Last edited:

Ryosuke

New member
Hello everyone, I hope that austin or djvj will go through this quickly because I have an error that I cannot explain.
I added the Playstation 1 system and chose Retroarch.
In RocketLauncher, the whole list of games is green, but not all of them work.
Some launch perfectly from Hyperspin, some give me the ahk error but launch anyway, and others give me the ahk error and don't work.
I am using Retroarch 1.9.0 and games that don't work with Hyperspin / RocketLauncher work fine with Retroarch alone.
So if you know how to fix this, I'll be thrilled.
Thanks in advance for any help.
 

agent47

Super Moderator
Staff member
Supporter
RL Member
Hello everyone, I hope that austin or djvj will go through this quickly because I have an error that I cannot explain.
I added the Playstation 1 system and chose Retroarch.
In RocketLauncher, the whole list of games is green, but not all of them work.
Some launch perfectly from Hyperspin, some give me the ahk error but launch anyway, and others give me the ahk error and don't work.
I am using Retroarch 1.9.0 and games that don't work with Hyperspin / RocketLauncher work fine with Retroarch alone.
So if you know how to fix this, I'll be thrilled.
Thanks in advance for any help.

austin nor djvj will help you as they've been gone for years. If you want help, post a troubleshooting log. Otherwise nobody will help because there's zero information for them to help you.
 

Ryosuke

New member
Thank you Agent47 (I love your nickname ^^) in fact I found the solution to my problem.
I don't know why Retroarch manages to read them when the files are wrong, by editing the .cue I see that they do not have the correct name, once modified, no more errors.
But it's impossible to say why Retroarch read them without going through rocketlauncher or hyperspin and why he doesn't read them anymore.
 

aorin1

Member
RL Member
I have played with the Fade In delays, but there's no way to make it work so it can keep on until the Retroarch is fully loaded. It seems it's almost useless in RL itself, so I believe there's something in the module that could do it.
Basically keeping the fade screen on until RA loads completely, specially because RA takes different duration to load, like after the PC boots, or a heavier core like MAME and even if the user set CD games systems like PS or SAT to cache the game into the RAM.
Can someone tell how it could be achieved in the module?
 

ci2own

Member
RL Member
I'm trying to setup vertical bezels with Retroarch and fbneo core but there's no way. I have two separate folders called "Vertical" and "Horizontal" folders with its respective bezels inside in RocketLauncher\Media\Bezels\Final Burn Alpha\_Default\

Does someone know how to solve this? Thanks.
 

t824601

Member
RL Member
where do I get latest from, cannot see it in this thread ?>

Was wondering the same. I use this version

Code:
MEmu := "RetroArch"
MEmuV := "v1.3.6"
MURL := ["http://themaister.net/retroarch.html"]
MAuthor := ["djvj","zerojay","SweatyPickle"]
MVersion := "2.4.3"
MCRC := "699AB8F7"
iCRC := "FB2DB971"
MID := "635038268922229162"
MSystem := ["Acorn BBC Micro","AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Applied Technology MicroBee","Apple IIGS","Arcade Classics","Atari 2600","Atari 5200","Atari 7800","Atari 8-Bit","Atari Classics","Atari Jaguar","Atari Lynx","Atari ST","Atari XEGS","Bally Astrocade","Bandai Gundam RX-78","Bandai Super Vision 8000","Bandai Wonderswan","Bandai Wonderswan Color","Canon X07","Capcom Classics","Capcom Play System","Capcom Play System II","Capcom Play System III","Casio PV-1000","Casio PV-2000","Cave","Coleco ADAM","ColecoVision","Commodore MAX Machine","Commodore Amiga","Creatronic Mega Duck","Data East Classics","Dragon Data Dragon","Emerson Arcadia 2001","Entex Adventure Vision","Elektronika BK","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Final Burn Alpha","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","Interton VC 4000","Irem Classics","JungleTac Sport Vii","Konami Classics","MAME","Magnavox Odyssey 2","Microsoft MSX","Microsoft MSX2","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","Midway Classics","Namco Classics","Namco System 22","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC TurboGrafx-16","NEC SuperGrafx","NEC TurboGrafx-CD","Nintendo 64","Nintendo 64DD","Nintendo Arcade Systems","Nintendo Classics","Nintendo DS","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Color","Nintendo Game Boy Japan","Nintendo Game Boy Advance","Nintendo Game & Watch","Nintendo Super Game Boy","Nintendo Pokemon Mini","Nintendo Virtual Boy","Nintendo Super Famicom","Nintendo Satellaview","Nintendo SuFami Turbo","Panasonic 3DO","Elektronska Industrija Pecom 64","Philips CD-i","Philips Videopac","RCA Studio II","ScummVM","Sega 32X","Sega Classics","Sega Mega Drive 32X","Sega Mark III","Sega SC-3000","Sega SG-1000","Sega CD","Sega Dreamcast","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Meganet","Sega Nomad","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sharp X1","Sharp X68000","Sinclair ZX Spectrum","Sinclair ZX81","Sony PlayStation","Sony PlayStation Minis","Sony PocketStation","Sony PSP","Sony PSP Minis","Sord M5","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo MVS","SNK Neo Geo Pocket","SNK Neo Geo CD","SNK Neo Geo Pocket Color","Spectravideo","Super Nintendo Entertainment System","Taito Classics","Tandy TRS-80 Color Computer","Technos","Texas Instruments TI 99-4A","Thomson MO5","Thomson TO7","Tiger Game.com","Tiki-100","Tomy Tutor","VTech CreatiVision","Watara Supervision","Williams Classics","Sammy Atomiswave", "Sega Naomi", "Sega Naomi 2", "Sega Naomi GD", "Sega Naomi 2 GD"]
;----------------------------------------------------------------------------
; Notes:
; If the emu doesn't load and you get no error, usually this means the LibRetro DLL is not working!
; Devs stated they will never add support for mounted images (like via DT)
; Fullscreen is controlled via the module setting in RocketLauncherUI
; This module uses the CLI version of RetroArch (retroarch.exe), not the GUI (retroarch-phoenix.exe).
; The emu may make a mouse cursor appear momentarily during launch, MouseMove and hide_cursor seem to have no effect
; Enable 7z support for archived roms
; Available CLI options: https://github.com/PyroFilmsFX/iOS/blob/master/docs/retroarch.1
;
; LibRetro DLLs:
; LibRetro DLLs come with the emu, but here is another source for them: http://forum.themaister.net/
; Whatever cores you decide to use, make sure they are extracted anywhere in your Emu_Path\cores folder. The module will find and load the default core unless you choose a custom one for each system.
; You can find supported cores that Retroarch supports simply by downloading them from the "retroarch-phoenix.exe" or by visiting here: https://github.com/libretro/libretro.github.com/wiki/Supported-cores
; Some good discussion on cores and filters: http://forum.themaister.net/viewtopic.php?id=270
;
; SRM files:
; The srm files location is determined by the configuration file used (savefile_directory = ":\whatever") The default RetroArch srm directory is ":\saves" You can select to sort into core folders (ie: :/saves/Mednafen PSX) by changing sort_savefiles_enable = "true" in the configuration file.
;
; Save states:
; The save state files location is determined by the configuration file used (savestate_directory = ":\whatever") The default RetroArch savestate directory is ":\states" You can select to sort into core folders (ie: :/states/Mednafen PSX) by changing sort_savestates_enable = "true" in the configuration file.
;
; Config files:
; By default, the module looks for config files in a folder called config in the RetroArch folder. Example: C:\emus\RetroArch\config. You can change this folder to anything you like by changing the module's ConfigFolder setting in RocketLauncherUI.  This will be the config folder for the module and will NOT change the location of RetroArch's own /config directory.
; RetroArch's global config file is called "retroarch.cfg". RetroArch will use a system cfg file named to match your System Name (example: Nintendo Entertainment System.cfg).
; RetroArch will also load core config files named after the core name. Example: nestopia_libretro.cfg
; This allows different settings globally, for each system, and for each core. If you want all systems to use the same retroarch.cfg, do not have any system or core cfg files, only have the retroarch.cfg.
; If a core config exists, it takes precedence over the global config. And if a system config exists, it takes precedence over the core config.
;
; Core Options:
; By default, RetroArch creates a retroarch-core-options.cfg in it's root directory.  Example: C:\emus\RetroArch\retroarch-core-options.cfg.  This will always be used if the default RetroArch.cfg is loaded.  If a configuration file from any other location is used, RetroArch will create a retroarch-core-options.cfg file in the root of that directory.  The module has an option to have RetroArch use only the default retroarch-core-options.cfg file no matter the path of the config directory or location of the configuiration file being used.  To enable this option set Single_Core_Options to true.
 
; MultiGame:
; MultiGame support is currently only available for the Mednafen PSX core. Retroarch uses the same method as Mednafen to load multi-disc games. This method involves m3u playlists which are commonly used for music. The m3u files needed to load multi-disc games are generated for you by the module when you launch a multi-disc game and are saved to your corresponding rom directory. Due to m3u limitations, your multi-disc roms/images cannot be archived -- they must be unzipped. All single disc games can remain archived and you can still enable 7z under system settings. If you do not wish to use MultiGame support you can archive your roms/images and m3u generation will be skipped on launch. 
; The m3u files generated by the module contain a list of paths to all roms/images in the multi-disc set. Retroarch automatically loads the first path in the m3u so the first path will always be the disc you are loading. For example, Final Fantasy VII has 3 discs and if you load Disc 2 first, the order of the paths in the m3u will be disc 2, disc 3, disc 1. If you load Disc 3 first, the order will be disc 3, disc 1, disc 2. The module anticipates this and will load the correct disk, selected from the Pause/MultiDisk menus. However if you choose to manually use Retroarch's UI or disk swap keys to change discs, you will need to keep this in mind.
; In order for RocketLauncher's MultiGame UI to swap discs, you must define Eject_Toggle_Key, Next_Disk_Key, and Previous_Disk_Key under global settings for the emulator in RocketLauncher. Because AHK and Retroarch use different naming conventions for some keyboard keys, it is best to use a letter, a number, or F1-F12.
;
; MAME:
; MAME BIOS roms should be placed in Rom Path's directory. Some systems require the BIOS roms be placed in the MAME internal name directory. (Example: :\Rom Folder\a5200). The MAME BIOS_Roms_Folder option will have no effect unless you are using an older version of the mess core. 
;
; System Specific Notes:
; Microsoft MSX/MSX2: Launch an MSX game and in the core options, set the console to be an MSX2 and it will play both just fine.
; Nintendo Famicom Disk System - Requires disksys.rom be placed in the folder you define as system_directory in the RetroArch's cfg.
; Sega CD - Requires "bios_CD_E.bin", "bios_CD_J.bin", "bios_CD_U.bin" all be placed in the folder you define as system_directory in the RetroArch's cfg.
; Super Nintendo Entertainment System - requires split all 10 dsp# & st### roms all be placed in the folder you define as system_directory in the RetroArch's cfg. Many games, like Super Mario Kart require these.
; NEC TurboGrafx-CD (using pce fast core) - Requires "syscard3.pce" be placed in the folder you define as system_directory in the RetroArch's cfg.
; NEC TurboGrafx-CD (using MAME core)
;   - You'll need to update a couple mame specific options in the Retroarch core options file to get it to boot from the cli. These should probably be updated automagically by the module. Turning softlists off, but might not need to.
;       mame_boot_from_cli = "enabled"
;       mame_softlists_enable = "disabled"
;       mame_softlists_auto_media = "disabled"
;	- Requires hash folder from MAME/MESS/UME, either from the source or release package. Save this in the system_directory you've defined for RetroArch. Something like \RetroArch\system\mame\hash\
;	- Requires the CD bios file(s) saved in the mame bios folder you've defined. Usually \RetroArch\system\mame\bios\
;		For PC Engine-CD you'll need the file "[cd] cd-rom system (japan) (v2.1).pce" zipped as cdsys.zip and saved in a pce subfolder in your bios path, so \RetroArch\system\mame\bios\pce\cdsys.zip
;		For PC Engine SuperGrafx-CD you'll need the file "[cd] super cd-rom system (japan) (v3.0).pce" zipped as scdsys.zip and saved in a pce subfolder in your bios path, so \RetroArch\system\mame\bios\pce\scdsys.zip
;		For TurboGrafx-CD you'll need the file "[cd] turbografx cd system card (usa) (v2.0).pce" zipped as cdsys.zip and saved in a tg16 subfolder in your bios path, so \RetroArch\system\mame\bios\tg16\cdsys.zip
;		For TurboDuo you'll need the file "[cd] turbografx cd super system card (usa) (v3.0).pce" zipped as scdsys.zip and saved in a tg16 subfolder in your bios path, so \RetroArch\system\mame\bios\tg16\scdsys.zip
; Nintendo Super Game Boy - Set the Module setting in RocketLauncherUI SuperGameBoy to true to enable a system or only a rom to use SGB mode. This is not needed if your systemName is set to the official name of "Nintendo Super Game Boy". Requires "sgb.boot.rom" and "Super Game Boy (World).sfc" to be placed in the folder you define as system_directory in the RetroArch's cfg. This is needed if you want to use Super game boy mode and color palettes. Also requires using the latest bsnes core. Not all games support SGB mode.
; Sony PSP/PlayStation Minis: To avoid the dialog box complaining about ppge_atlas.zim, download it from https://github.com/libretro/libretro-ppsspp/blob/master/assets/ppge_atlas.zim and place it in your Retroarch/system/PPSSPP/ directory.
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()
 
primaryExe := new Emulator(emuPath . "\" . executable)	; instantiate emulator executable object
emuPrimaryWindow := new Window(new WindowTitle("RetroArch","RetroArch"))	; instantiate primary emulator window object
emuConsoleWindow := new Window(new WindowTitle("","ConsoleWindowClass"))	; instantiate emulator console window object
 
; Here we define all supported systems for this module. This object controls how the module reacts to different systems. RetroArch can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.
; 1 - Official System Name in RocketLauncher
; 2 - Short name used only for easy referencing within module
; 3 - Default core
; 4 - The system ID MAME core recognizes
RLLog.Debug("Module - Started building the " . MEmu . " object")
mTypeVar:="
	( LTrim
	AAE|LibRetro_AAE|mame_libretro
	Acorn BBC Micro|LibRetro_BBCB|mame_libretro|bbcb
	Amstrad CPC|LibRetro_CPC|mame_libretro|cpc464
	Amstrad GX4000|LibRetro_GX4K|mame_libretro|gx4000
	APF Imagination Machine|LibRetro_APF|mame_libretro|apfimag
	Apple IIGS|LibRetro_AIIGS|mame_libretro|apple2gs
	Applied Technology MicroBee|LibRetro_MBEE|mame_libretro|mbeeic
	Arcade Classics|LibRetro_ARCADE|mame_libretro
	Atari 2600|LibRetro_2600|stella_libretro|a2600
	Atari 5200|LibRetro_5200|mame_libretro|a5200
	Atari 7800|LibRetro_7800|prosystem_libretro|a7800
	Atari 8-Bit|LibRetro_ATARI8|mame_libretro|a800
	Atari Classics|LibRetro_ACLS|mame_libretro
	Atari Jaguar|LibRetro_JAG|virtualjaguar_libretro|jaguar
	Atari Lynx|LibRetro_LYNX|handy_libretro|lynx
	Atari ST|LibRetro_ST|hatari_libretro
	Atari XEGS|LibRetro_XEGS|mame_libretro|xegs
	Bally Astrocade|LibRetro_BAST|mame_libretro|astrocde
	Bandai Gundam RX-78|LibRetro_BGRX|mame_libretro|rx78
	Bandai Super Vision 8000|LibRetro_SV8K|mame_libretro|sv8000
	Bandai Wonderswan|LibRetro_WSAN|mednafen_wswan_libretro|wswan
	Bandai Wonderswan Color|LibRetro_WSANC|mednafen_wswan_libretro|wscolor
	Canon X07|LibRetro_CX07|mame_libretro|x07
	Capcom Classics|LibRetro_CAPC|mame_libretro
	Capcom Play System|LibRetro_CPS1|fbalpha_libretro
	Capcom Play System II|LibRetro_CPS2|fbalpha_libretro
	Capcom Play System III|LibRetro_CPS3|mame_libretro
	Casio PV-1000|LibRetro_CAS1K|mame_libretro|pv1000
	Casio PV-2000|LibRetro_CAS2K|mame_libretro|pv2000
	Cave|LibRetro_CAVE|mame_libretro
	Coleco ADAM|LibRetro_ADAM|mame_libretro|adam
	ColecoVision|LibRetro_COLEC|mame_libretro|coleco
	Commodore Amiga|LibRetro_PUAE|puae_libretro
	Commodore Max Machine|LibRetro_CMAX|mame_libretro|vic10
	Creatronic Mega Duck|LibRetro_DUCK|mame_libretro|megaduck
	Data East Classics|LibRetro_DATA|mame_libretro
	Dragon Data Dragon|LibRetro_DRAG64|mame_libretro|dragon64
	Elektronika BK|LibRetro_EBK|mame_libretro|bk0010
	Elektronska Industrija Pecom 64|LibRetro_P64|mame_libretro|pecom64
	Emerson Arcadia 2001|LibRetro_A2001|mame_libretro|arcadia
	Entex Adventure Vision|LibRetro_AVISION|mame_libretro|advision
	Epoch Game Pocket Computer|LibRetro_GPCKET|mame_libretro|gamepock
	Epoch Super Cassette Vision|LibRetro_SCV|mame_libretro|scv
	Exidy Sorcerer|LibRetro_SORCR|mame_libretro|sorcerer
	Fairchild Channel F|LibRetro_CHANF|mame_libretro|channelf
	Final Burn Alpha|LibRetro_FBA|fbalpha_libretro
	Funtech Super Acan|LibRetro_SACAN|mame_libretro|supracan
	GamePark 32|LibRetro_GP32|mame_libretro|gp32
	GCE Vectrex|LibRetro_VECTX|mame_libretro|vectrex
	Hartung Game Master|LibRetro_GMASTR|mame_libretro|gmaster
	Interton VC 4000|LibRetro_VC4K|mame_libretro|vc4000
	Irem Classics|LibRetro_IREM|mame_libretro
	JungleTac Sport Vii|LibRetro_SPORTV|mame_libretro|vii
	Konami Classics|LibRetro_KONC|mame_libretro
	Magnavox Odyssey 2|LibRetro_ODYS2|mame_libretro|odyssey2
	MAME|LibRetro_MAME|mame_libretro|mame
	Matra & Hachette Alice|LibRetro_ALICE|mame_libretro|alice32
	Mattel Aquarius|LibRetro_AQUA|mame_libretro|aquarius
	Mattel Intellivision|LibRetro_INTV|mame_libretro|intv
	MGT Sam Coupe|LibRetro_SAMCP|mame_libretro|
	Microsoft MS-DOS|LibRetro_MSDOS|dosbox_libretro
	Microsoft MSX|LibRetro_MSX|bluemsx_libretro
	Microsoft MSX2|LibRetro_MSX2|bluemsx_libretro
	Microsoft Windows 3.x|LibRetro_WIN3X|dosbox_libretro
	Midway Classics|LibRetro_MIDC|mame_libretro
	Namco Classics|LibRetro_NAMC|mame_libretro
	Namco System 22|LibRetro_NAM2|mame_libretro
	NEC PC Engine|LibRetro_PCE|mednafen_supergrafx_libretro|pce,cart
	NEC PC Engine-CD|LibRetro_PCECD|mednafen_pce_fast_libretro|pce,cdrom
	NEC PC-FX|LibRetro_PCFX|mednafen_pcfx_libretro
	NEC SuperGrafx|LibRetro_SGFX|mednafen_supergrafx_libretro|sgx,cart
	NEC TurboGrafx-16|LibRetro_TG16|mednafen_pce_fast_libretro|tg16,cart
	NEC TurboGrafx-CD|LibRetro_TGCD|mednafen_pce_fast_libretro|tg16,cdrom
	Nintendo 64|LibRetro_N64|mupen64plus_next_libretro|n64
	Nintendo 64DD|LibRetro_N64|mupen64plus_next_libretro|n64
    Nintendo 64 Import|LibRetro_N64|mupen64plus_next_libretro|n64
    Nintendo 64 DD|LibRetro_N64|mupen64plus_next_libretro|n64
	Nintendo Arcade Systems|LibRetro_NINARC|mame_libretro
	Nintendo Classics|LibRetro_NINC|mame_libretro
	Nintendo DS|LibRetro_DS|desmume_libretro
	Nintendo Entertainment System|LibRetro_NES|nestopia_libretro|nes
    Nintendo Entertainment System System Hacks|LibRetro_NES|nestopia_libretro|nes
	Nintendo Famicom|LibRetro_NFAM|nestopia_libretro
    Nintendo Famicom Translated|LibRetro_NFAM|nestopia_libretro
	Nintendo Famicom Disk System|LibRetro_NFDS|nestopia_libretro|famicom
	Nintendo Game Boy|LibRetro_GB|gambatte_libretro|gameboy
	Nintendo Game Boy Advance|LibRetro_GBA|vba_next_libretro|gba
	Nintendo Game Boy Color|LibRetro_GBC|gambatte_libretro|gbcolor
	Nintendo Game Boy Japan|LibRetro_GBJ|gambatte_libretro|gameboy
	Nintendo Game & Watch|LibRetro_GW|gw_libretro
	Nintendo Pokemon Mini|LibRetro_POKE|mame_libretro|pokemini
	Nintendo Satellaview|LibRetro_NSFS|snes9x_libretro
	Nintendo SuFami Turbo|LibRetro_NSFST|snes9x_libretro
	Nintendo Super Famicom|LibRetro_NSF|snes9x_libretro
	Nintendo Super Game Boy|LibRetro_SGB|snes9x_libretro
	Nintendo Virtual Boy|mednafen_vb_libretro|mednafen_vb_libretro
	Othello Multivision|LibRetro_OTHO|genesis_plus_gx_libretro
	Panasonic 3DO|LibRetro_3DO|4do_libretro
	Philips CD-i|LibRetro_CDI|mame_libretro|cdimono1
	Philips Videopac|LibRetro_PVID|mame_libretro|videopac
	RCA Studio II|LibRetro_STUD2|mame_libretro|studio2
	SCUMMVM|LibRetro_SCUMM|scummvm_libretro
	Sega 32X|LibRetro_32X|picodrive_libretro|32x
	Sega CD|LibRetro_SCD|genesis_plus_gx_libretro|segacd
	Sega Classics|LibRetro_SEGC|mame_libretro
	Sega Dreamcast|flycast_libretro|flycast_libretro
    Sega Dreamcast Import|flycast_libretro|flycast_libretro
    Sega Dreamcast Indies|flycast_libretro|flycast_libretro
	Sega Game Gear|LibRetro_GG|genesis_plus_gx_libretro|gamegear
	Sega Genesis|LibRetro_GEN|genesis_plus_gx_libretro|genesis
	Sega Mark III|Libretro_SM3|genesis_plus_gx_libretro
	Sega Master System|LibRetro_SMS|genesis_plus_gx_libretro|sms
    Sega Master System Imports|LibRetro_SMS|genesis_plus_gx_libretro|sms
	Sega Mega Drive|LibRetro_GEN|genesis_plus_gx_libretro|megadriv
	Sega Mega Drive 32X|LibRetro_MD32X|picodrive_libretro
    Sega Mega CD|LibRetro_SCD|genesis_plus_gx_libretro|segacd
	Sega Meganet|LibRetro_GEN|genesis_plus_gx_libretro|genesis
	Sega Nomad|LibRetro_GEN|genesis_plus_gx_libretro|genesis
	Sega Pico|LibRetro_PICO|picodrive_libretro
	Sega Saturn|LibRetro_SAT|mednafen_saturn_libretro|saturn
	Sega Saturn Japan|LibRetro_SAT|mednafen_saturn_libretro|saturnjp
	Sega SC-3000|LibRetro_SC3K|mame_libretro|sc3000
	Sega SG-1000|LibRetro_SG1K|genesis_plus_gx_libretro
	Sega ST-V|LibRetro_STV|mame_libretro
	Sega VMU|LibRetro_SVMU|mame_libretro|svmu
	Sharp X1|LibRetro_SX1|mame_libretro|x1
	Sharp X68000|LibRetro_SX68000|mame_libretro|x68000
	Sinclair ZX Spectrum|LibRetro_SPECZX|mame_libretro|spectrum
	Sinclair ZX81|LibRetro_ZX81|81_libretro|zx81
	SNK Classics|LibRetro_SNKC|mame_libretro
	SNK Neo Geo|mame_libretro|mame_libretro
	SNK Neo Geo AES|LibRetro_NEOAES|mame_libretro|aes
	SNK Neo Geo CD|LibRetro_NEOCD|neocd_libretro|neocdz
	SNK Neo Geo MVS|LibRetro_NEOMVS|mame_libretro
	SNK Neo Geo Pocket|LibRetro_NGP|mednafen_ngp_libretro|ngp
	SNK Neo Geo Pocket Color|LibRetro_NGPC|mednafen_ngp_libretro|ngpc
	Sony PlayStation|LibRetro_PSX|mednafen_psx_libretro|psu
	Sony PlayStation Asia|LibRetro_PSX|mednafen_psx_libretro|psu
	Sony PlayStation Minis|LibRetro_PSXMIN|ppsspp_libretro
	Sony PocketStation|LibRetro_POCKS|mame_libretro|pockstat
	Sony PSP|LibRetro_PSP|ppsspp_libretro
	Sony PSP Minis|LibRetro_PSP|ppsspp_libretro
	Sord M5|LibRetro_SORD|mame_libretro|m5
	Spectravideo|LibRetro_SV328|mame_libretro|svi328n
	Super Nintendo Entertainment System|LibRetro_SNES|snes9x_libretro|snes
        SNES CD|LibRetro_SNES|snes9x_libretro|snes
	Taito Classics|LibRetro_TAIC|mame_libretro
	Tandy TRS-80 Color Computer|LibRetro_TRS80|mame_libretro|coco3
	Technos|LibRetro_TECHN|mame_libretro
	Texas Instruments TI 99-4A|LibRetro_TI99|mame_libretro|ti99_4a
	Thomson MO5|LibRetro_MO5|mame_libretro|mo5
	Thomson TO7|LibRetro_TO7|mame_libretro|to7
	Tiger Game.com|LibRetro_TCOM|mame_libretro|gamecom
	Tiki-100|LibRetro_TIKI|mame_libretro|kontiki
	Tomy Tutor|LibRetro_TOMY|mame_libretro|tutor
	VTech CreatiVision|LibRetro_VTECH|mame_libretro|crvision
	Watara Supervision|LibRetro_SUPRV|mame_libretro|svision
	Williams Classics|LibRetro_WILLS|mame_libretro
	Sammy Atomiswave|LibRetro_SAMMY|flycast_libretro
	Sega Naomi|LibRetro_NAOMI|flycast_libretro
	Sega Naomi 2|LibRetro_NAOMI|flycast_libretro
	Sega Naomi GD|LibRetro_NAOMI|flycast_libretro
	Sega Naomi 2 GD|LibRetro_NAOMI|flycast_libretro
	)"
mType := Object()
Loop, Parse, mTypeVar, `n, `r
{
	obj := {}
	Loop, Parse, A_LoopField, |
	{
		If (A_Index = 1)
			obj.System := A_LoopField
		Else If (A_Index = 2)
			obj.ID := A_LoopField
		Else If (A_Index = 3)
			obj.Core := A_LoopField
		Else {	; 4
			StringSplit, tmp, A_LoopField, `,
			obj.MAMEID := tmp1
			obj.MAMEMedia := tmp2
		}
	}
	mType.Insert(obj["System"], obj)
}
RLLog.Debug("Module - Finished building the " . MEmu . " object")
; For easier use throughout the module
retroSystem := mType[systemName].System
retroID := mType[systemName].ID
retroCore := mType[systemName].Core
retroMAMEID := mType[systemName].MAMEID
retroMAMEMedia := mType[systemName].MAMEMedia
RLLog.Info("Module - Using these system variables:")
RLLog.Info("Module - retroSystem: " . retroSystem)
RLLog.Info("Module - retroID: " . retroID)
RLLog.Info("Module - retroCore: " . retroCore)
RLLog.Info("Module - retroMAMEID: " . retroMAMEID)
RLLog.Info("Module - retroMAMEMedia: " . retroMAMEMedia)
If !retroSystem
	ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this " . MEmu . " module: " . moduleName)
If !retroCore
	ScriptError("Your Core ID is: " . retroID . "`nCould not find a default core to use. Please update the module with a default core.")
 
Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
configFolder := moduleIni.Read("Settings", "ConfigFolder",emuPath . "\config",,1)
singlecoreoptions := moduleIni.Read("Settings", "single_core_options","false",,1) = "true" ? ":\retroarch-core-options.cfg" : """"
mameRomPath := moduleIni.Read("MAME", "BIOS_Roms_Folder",,,1)
mameHideNag := If moduleIni.Read("MAME", "Hide_Nag_Screen","false",,1) = "true" ? "enabled" : "disabled"
mameHideInfo := If moduleIni.Read("MAME", "Hide_Info_Screen","false",,1) = "true" ? "enabled" : "disabled"
mameHideWarn := If moduleIni.Read("MAME", "Hide_Warning_Screen","false",,1) = "true" ? "enabled" : "disabled"
hideConsole := moduleIni.Read("Settings", "HideConsole","true",,1)
ejectToggleKey := moduleIni.Read("Settings", "Eject_Toggle_Key",,,1)
nextDiskKey := moduleIni.Read("Settings", "Next_Disk_Key",,,1)
prevDiskKey := moduleIni.Read("Settings", "Previous_Disk_Key",,,1)
core := moduleIni.Read(romName . "|" . systemName, "LibRetro_Core",retroCore,,1)
superGB := moduleIni.Read(romName . "|" . systemName, "SuperGameBoy","false",,1)
enableNetworkPlay := moduleIni.Read(romName . "|Network", "Enable_Network_Play","false",,1)
overlay := moduleIni.Read(romName . "|" . systemName, "Overlay",,,1)
videoShader := moduleIni.Read(romName . "|" . systemName, "VideoShader",,,1)
aspectRatioIndex := moduleIni.Read(romName . "|" . systemName, "AspectRatioIndex",,,1)
customViewportWidth := moduleIni.Read(romName . "|" . systemName, "CustomViewportWidth",,,1)
customViewportHeight := moduleIni.Read(romName . "|" . systemName, "CustomViewportHeight",,,1)
customViewportX := moduleIni.Read(romName . "|" . systemName, "CustomViewportX",,,1)
customViewportY := moduleIni.Read(romName . "|" . systemName, "CustomViewportY",,,1)
stretchToFillBezel := moduleIni.Read(romName . "|" . systemName, "StretchToFillBezel","false",,1)
rotation := moduleIni.Read(romName . "|" . systemName, "Rotation",0,,1)
cropOverscan := moduleIni.Read(romName . "|" . systemName, "CropOverscan",,,1)
threadedVideo := moduleIni.Read(romName . "|" . systemName, "ThreadedVideo",,,1)
vSync := moduleIni.Read(romName . "|" . systemName, "VSync",,,1)
integerScale := moduleIni.Read(romName . "|" . systemName, "IntegerScale",,,1)
configurationPerCore := moduleIni.Read(romName . "|" . systemName, "ConfigurationPerCore","false",,1)
 
If (StringUtils.Contains(core, "^(mame|mess|ume)") && !retroMAMEID) {
	retroMAMEID := "mame"	; set all systems that use a mame core to the default mame ID so any system name is supported
	RLLog.Warning("Module - Setting MAMEID to default ""mame"" for """ . retroSystem . """")
}
 
configFolder := RLObject.getFullPathFromRelative(rlPath,configFolder)
mameRomPath := If mameRomPath ? RLObject.getFullPathFromRelative(rlPath,mameRomPath) : romPath
overlay := RLObject.getFullPathFromRelative(rlPath,overlay)
videoShader := RLObject.getFullPathFromRelative(rlPath,videoShader)
rotateBezel := false
 
configFolder := new Folder(configFolder)
 
If (retroID = "LibRetro_SGB" || superGB = "true")	; if system or rom is set to use Super Game Boy
{	superGB := "true"	; setting this just in case it's false and the system is Nintendo Super Game Boy
	sgbRomPath := CheckFile(emuPath . "\system\Super Game Boy (World).sfc","Could not find the rom required for Super Game Boy support. Make sure the rom ""Super Game Boy (World).sfc"" is located in: " . emuPath . "\system")
	CheckFile(emuPath . "\system\sgb.boot.rom","Could not find the bios required for Super Game Boy support. Make sure the bios ""sgb.boot.rom"" is located in: " . emuPath . "\system")
	retroID := "LibRetro_SGB"	; switching to Super Game Boy mode
	retroSystem := "Nintendo Super Game Boy"
}
 
; Find the dll for this system
libDll := CheckFile(emuPath . "\cores\" . core . ".dll", "Your " . retroID . " dll is set to " . core . " but could not locate this file:`n" . emuPath . "\cores\" . core . ".dll")
 
; Find the cfg file to use
If !configFolder.Exist()
	ScriptError("You need to make sure ""ConfigFolder"" is pointing to your RetroArch config folder. By default it is looking here: """ . configFolder.FilePath . """")
globalRetroCfg := emuPath . "\retroarch.cfg"
systemRetroCfg := configFolder.FilePath . "\" . retroSystem . ".cfg"
coreRetroCfg := configFolder.FilePath . "\" . core . ".cfg"
RLLog.Info("Module - Global cfg should be: " . globalRetroCfg)
RLLog.Info("Module - System cfg should be: " . systemRetroCfg)
RLLog.Info("Module - Core cfg should be: " . coreRetroCfg)
foundCfg := ""
 
systemRetroCfg := new File(systemRetroCfg)
coreRetroCfg := new File(coreRetroCfg)
globalRetroCfg := new File(globalRetroCfg)
 
If systemRetroCfg.Exist() {	; check for system cfg first
	retroCFGFile := systemRetroCfg
	foundCfg := 1
	RLLog.Info("Module - Found a System cfg!")
} Else If coreRetroCfg.Exist() {	; 2nd option is a core config
	retroCFGFile := coreRetroCfg
	foundCfg := 1
	RLLog.Info("Module - Found a Core cfg!")
} Else If globalRetroCfg.Exist() {	; 3rd is global cfg
	retroCFGFile := globalRetroCfg
	foundCfg := 1
	RLLog.Info("Module - Found a Global cfg!")
}
If foundCfg {
	RLLog.Info("Module - " . MEmu . " is using " . retroCFGFile.FileFullPath . " as its config file.")
	retroCFG := LoadProperties(retroCFGFile.FileFullPath)
} Else
	RLLog.Warning("Module - Could not find a cfg file to update settings. RetroArch will make one for you.")
 
If StringUtils.Contains(rotation,"1|3") ; use vertical bezel if RA rotation is set to 90 or 270 degrees
	rotateBezel := true
 
If StringUtils.Contains(retroID, "LibRetro_NFDS|LibRetro_SCD|LibRetro_TGCD|LibRetro_PCECD|LibRetro_PCFX") {		; these systems require the retroarch settings to be read
	retroSysDir := ReadProperty(retroCFG,"system_directory")	; read value
	retroSysDir := ConvertRetroCFGKey(retroSysDir)	; remove dbl quotes
	retroSysDirLeft := StringUtils.Left(retroSysDir, 2)
	If (retroSysDirLeft = ":\") {	; if retroarch is set to use a default folder
		retroSysDir := StringUtils.TrimLeft(retroSysDir, 1)
		RLLog.Info("Module - RetroArch is using a relative system path: """ . retroSysDir . """")
		retroSysDir := emuPath . retroSysDir
	}
	If !retroSysDir
		ScriptError("RetroArch requires you to set your system_directory and place bios rom(s) in there for """ . retroSystem . """ to function. Please do this first by running ""retroarch-phoenix.exe"" manually.")
	checkForSlash := StringUtils.Right(retroSysDir, 1)
	If (checkForSlash = "\")	; check if a backslash is the last character. If it is, remove it, as this is non-standard method to define folders
		retroSysDir := StringUtils.TrimRight(retroSysDir, 1)
}
 
If (StringUtils.Contains(core, "^(mame|mess|ume)")) || (StringUtils.Contains(retroID, "LibRetro_N64|LibRetro_NES|LibRetro_LYNX|LibRetro_PSX")) || (StringUtils.Contains(retroID, "LibRetro_NES") && (StringUtils.Contains(core, "nestopia_libretro"))) {	; these systems will use an ini to store game specific settings
	RLLog.Info("Module - Reading / creating system ini for specific settings.")
	If !StringUtils.Contains(core, "^(mame|mess|ume)") {
		If !SystemModuleIni.Exist()
			SystemModuleIni.Append		; create a new blank ini file if one does not exist
	}
 
	coreOptionsCFG := LoadProperties(coreOptionsCFGFile.FileFullPath)
 
	If StringUtils.Contains(core, "^(mame|mess|ume)") {	; Set some MAME/MESS/UME core options.
		tmpCore := If StringUtils.Contains(core, "mame") ? "mame" : "mess"
		WriteProperty(coreOptionsCFG, tmpCore . "_read_config", """enabled""", 1)
		WriteProperty(coreOptionsCFG, tmpCore . "_boot_from_cli", """enabled""", 1)				; This needs to be enabled in order to run games with RLauncher
		WriteProperty(coreOptionsCFG, tmpCore . "_hide_nagscreen", "" . mameHideNag . "", 1)
		WriteProperty(coreOptionsCFG, tmpCore . "_hide_infoscreen", "" . mameHideInfo . "", 1)
		WriteProperty(coreOptionsCFG, tmpCore . "_hide_warnings", "" . mameHideWarn . "", 1)
	} Else If StringUtils.Contains(retroID, "LibRetro_N64") {	; Nintendo 64
		mupenGfx := moduleIni.Read(romName . "|" . systemName, "Mupen_Gfx_Plugin", "auto",,1)
		mupenRsp := moduleIni.Read(romName . "|" . systemName, "Mupen_RSP_Plugin", "auto",,1)
		mupenCpu := moduleIni.Read(romName . "|" . systemName, "Mupen_CPU_Core", "dynamic_recompiler",,1)
		mupenPak1 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_1", "memory",,1)
		mupenPak2 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_2", "memory",,1)
		mupenPak3 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_3", "memory",,1)
		mupenPak4 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_4", "memory",,1)
		mupenGfxAccur := moduleIni.Read(romName . "|" . systemName, "Mupen_Gfx_Accuracy", "high",,1)
		mupenExpMem := moduleIni.Read(romName . "|" . systemName, "Mupen_Disable_Exp_Memory", "no",,1)
		mupenTexturFilt := moduleIni.Read(romName . "|" . systemName, "Mupen_Texture_Filtering", "nearest",,1)
		mupenViRefresh := moduleIni.Read(romName . "|" . systemName, "Mupen_VI_Refresh", "2200",,1)
		mupenFramerate := moduleIni.Read(romName . "|" . systemName, "Mupen_Framerate", "fullspeed",,1)
		mupenResolution := moduleIni.Read(romName . "|" . systemName, "Mupen_Resolution", "640x480",,1)
		mupenPolyOffstFctr := moduleIni.Read(romName . "|" . systemName, "Mupen_Polygon_Offset_Factor", "-3.0",,1)
		mupenPolyOffstUnts := moduleIni.Read(romName . "|" . systemName, "Mupen_Polygon_Offset_Units", "-3.0",,1)
		mupenViOverlay := moduleIni.Read(romName . "|" . systemName, "Mupen_VI_Overlay", "disabled",,1)
		mupenAnalogDzone := moduleIni.Read(romName . "|" . systemName, "Mupen_Analog_Deadzone", "15",,1)
 
		WriteProperty(coreOptionsCFG, "mupen64-gfxplugin", mupenGfx, 1)
		WriteProperty(coreOptionsCFG, "mupen64-rspplugin", mupenRsp, 1)
		WriteProperty(coreOptionsCFG, "mupen64-cpucore", mupenCpu, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak1", mupenPak1, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak2", mupenPak2, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak3", mupenPak3, 1)
		WriteProperty(coreOptionsCFG, "mupen64-pak4", mupenPak4, 1)
		WriteProperty(coreOptionsCFG, "mupen64-gfxplugin-accuracy", mupenGfxAccur, 1)
		WriteProperty(coreOptionsCFG, "mupen64-disableexpmem", mupenExpMem, 1)
		WriteProperty(coreOptionsCFG, "mupen64-filtering", mupenTexturFilt, 1)
		WriteProperty(coreOptionsCFG, "mupen64-virefresh", mupenViRefresh, 1)
		WriteProperty(coreOptionsCFG, "mupen64-framerate", mupenFramerate, 1)
		WriteProperty(coreOptionsCFG, "mupen64-screensize", mupenResolution, 1)
		WriteProperty(coreOptionsCFG, "mupen64-polyoffset-factor", mupenPolyOffstFctr, 1)
		WriteProperty(coreOptionsCFG, "mupen64-polyoffset-units", mupenPolyOffstUnts, 1)
		WriteProperty(coreOptionsCFG, "mupen64-angrylion-vioverlay", mupenViOverlay, 1)
		WriteProperty(coreOptionsCFG, "mupen64-astick-deadzone", mupenAnalogDzone, 1)
	} Else If StringUtils.Contains(retroID, "LibRetro_NES") {		; these systems will use an ini to store game specific settings
		If StringUtils.Contains(core, "nestopia_libretro") {	; Nestopia
			nestopiaBlargg := moduleIni.Read(romName . "|Nestopia", "Nestopia_Blargg_NTSC_Filter", "disabled",,1)
			nestopiaPalette := moduleIni.Read(romName . "|Nestopia", "Nestopia_Palette", "canonical",,1)
			nestopiaNoSprteLimit := moduleIni.Read(romName . "|Nestopia", "Nestopia_Remove_Sprites_Limit", "disabled",,1)
 
			WriteProperty(coreOptionsCFG, "nestopia_blargg_ntsc_filter", nestopiaBlargg, 1)
			WriteProperty(coreOptionsCFG, "nestopia_palette", nestopiaPalette, 1)
			WriteProperty(coreOptionsCFG, "nestopia_nospritelimit", nestopiaNoSprteLimit, 1)
		}
	} Else If StringUtils.Contains(retroID, "LibRetro_LYNX") {	; Atari Lynx
		If StringUtils.Contains(core, "handy_libretro") {   ; Handy
			handyRotate := moduleIni.Read(romName . "|" . systemName, "Handy_Rotation", "None",,1)
			If StringUtils.Contains(handyRotate, "240") or StringUtils.Contains(handyRotate, "90")
				rotateBezel := true
			WriteProperty(coreOptionsCFG, "handy_rot", handyRotate, 1)
		}
	} Else If StringUtils.Contains(retroID, "LibRetro_PSX") {	; Sony PlayStation
		psxCdImageCache := moduleIni.Read(romName . "|" . systemName, "PSX_CD_Image_Cache", """enabled""",,1)
		psxMemcardHandling := moduleIni.Read(romName . "|" . systemName, "PSX_Memcard_Handling", """libretro""",,1)
		psxDualshockAnalogToggle := moduleIni.Read(romName . "|" . systemName, "PSX_Dualshock_Analog_Toggle", """enabled""",,1)
 
		WriteProperty(coreOptionsCFG, "beetle_psx_cdimagecache", psxCdImageCache, 1)
		WriteProperty(coreOptionsCFG, "beetle_psx_use_mednafen_memcard0_method", psxMemcardHandling, 1)
		WriteProperty(coreOptionsCFG, "beetle_psx_analog_toggle", psxDualshockAnalogToggle, 1)
	}
	SaveProperties(coreOptionsCFGFile.FileFullPath, coreOptionsCFG)
}
 
hideEmuObj := Object(emuConsoleWindow,0,emuPrimaryWindow,1)
7z(romPath, romName, romExtension, sevenZExtractPath)
 
mgM3UFile := new File(romPath . "\" . romTable[1,4] . ".m3u")
 
mgRomExtensions := "cue|iso|ccd|chd"
mgValidExtension := false
 
Loop, Parse, mgRomExtensions, |
	If (romExtension = "." . A_LoopField)
		mgValidExtension := true
 
If (StringUtils.Contains(retroID, "LibRetro_PSX") && romTable.MaxIndex() && mgValidExtension) { ; See if MultiGame table is populated	
	m3uRomIndex := Object()
	mgType := romTable[1,6] . " "
	mgMaxIndex := romTable.MaxIndex()
	mgRomIndex := 0
 
	If mgM3UFile.Exist()
		mgM3UFile.Delete()
 
	Loop % mgMaxIndex
	{
		If (romTable[A_Index, 3] = romName) {
			tempType := romTable[A_Index, 5]
			mgRomIndex := StringUtils.TrimLeft(tempType, StringUtils.StringLength(mgType))
			RLLog.Info("Found rom index in rom set in romTable: " . mgRomIndex)
			Break
		}
	}
 
	If (mgRomIndex > 0) {
		tempRomIndex := mgRomIndex
		Loop % mgMaxIndex
		{
			mgTypeIndex := mgType . tempRomIndex
			m3uRomIndex.Insert(tempRomIndex)
 
			Loop % mgMaxIndex
			{
				If (romTable[A_Index, 5] = mgTypeIndex) {
					tempRomPath := romTable[A_Index, 1]
					mgM3UFile.Append(tempRomPath . "`n")
					RLLog.Info("Module - Appending rom path to m3u: " . tempRomPath)
					Break
				}
			}
 
			If (tempRomIndex < mgMaxIndex)
				tempRomIndex++
			Else
				tempRomIndex := 1
		}
	}
}
 
; MAME/MESS/UME core options
MAMEParam1 := ""
MAMEParam2 := ""
MAMEParam3 := ""
If StringUtils.Contains(core, "^(mame|mess|ume)") {	; if a MAME/MESS/UME core is used
	If !retroMAMEID
		ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for the MAME/MESS/UME LibRetro core")
	Else
		RLLog.Info("Module - MAME/MESS/UME mode using a known ident: " . retroMAMEID)
 
	If !mameRomPath
		ScriptError("Please set the RetroArch module setting ""BIOS_Roms_Folder"" to the folder that contains your MAME/MESS/UME BIOS roms to use with RetroArch.")
 
	If (retroMAMEID = "mame") {		; want this for arcade mame only
		RLLog.Info("Module - Retroarch MAME/MESS/UME Arcade mode enabled")
		fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
	} Else {
		RLLog.Info("Module - Retroarch MAME/MESS/UME Console/PC mode enabled")
		MAMEParam1 := ""
		MAMEParam2 := " -rompath \""" . mameRomPath . "\"""
 
		; If we already have a media type, then use it.
		If (StringUtils.Contains(retroMAMEID, "tg16|pce") && retroMAMEMedia = "cart") {
			;MAMEParam3 := " -cart \" . """" . romPath . "\" . romName . romExtension . "\" . """"
			MAMEParam3 := " -cart \""" . romPath . "\" . romName . romExtension . "\"""""
		; TODO: This needs a better way to handle the cdrom bios files, in my opinion. As it is, there's no clean way to pick between the v2.00 or v3.00 bios.
		;       Defaulting to the TurboDuo cdrom bios since it will play 2.00 or 3.00 games.
		} Else If (StringUtils.Contains(retroMAMEID, "tg16|pce") && retroMAMEMedia = "cdrom") {
			;MAMEParam3 := " -cart cdsys -cdrm \" . """" . romPath . "\" . romName . romExtension . "\" . """"
			MAMEParam3 := " -cart scdsys -cdrm \""" . romPath . "\" . romName . romExtension . "\"""""
		} Else {
			; Build a key/value object containing the different MAMEParam3 choices
			MAMEP3 := Object("alice32","cass1","gp32","memc","cpc464","cass","spectrum","cass","dragon64","cass","cdimono1","cdrom","bk0010","cass","neocd","cdrom","neocdz","cdrom","saturn","cdrm","saturnjp","cdrm","svi328n","cass","pecom64","cass","psu","cdrm","svmu","quik","gamecom","cart1","mbeeic","quik1")
			MAMEParam3 := MAMEP3[retroMAMEID]	; search object for the retroMAMEID pair
			MAMEParam3 := " -" . (If MAMEParam3 ? MAMEParam3 : "cart") . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
		}
 
		If (retroMAMEID = "mbeeic") ; Applied Technology MicroBee
		{	microbeeModel := IniReadCheck(MAMESysINI, romName, "MicroBee_Model","mbeeic",,1)
			If microbeeModel not in mbee,mbeeic,mbeepc,mbeepc85,mbee56
				ScriptError("This is not a known MicroBee model value: " . microbeeModel)
			Else If (microbeeModel != "mbeeic")
				retroMAMEID := microbeeModel
			If romExtension in .mwb,.com,.bee
				mediaDeviceType := "quik1"
			Else If romExtension in .wav,.tap
				mediaDeviceType := "cass"
			Else If romExtension in .rom
				mediaDeviceType := "cart"
			Else If romExtension in .dsk
				mediaDeviceType := "flop1"
			Else	; .bin format
				mediaDeviceType := "quik2"
			MAMEParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
		}
 
		If (retroMAMEID = "x68000") ; Sharp X68000
		{	
			If romExtension in .xdf,.hdm,.2hd,.dim,.d77,.d88,.1dd,.dfi,.imd,.ipf,.mfi,.mfm,.td0,.cqm,.cqi,.dsk
				mediaDeviceType := "flop1"
			Else	; .bin format
				mediaDeviceType := "sasi"
			MAMEParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
		}
 
		fullRomPath := MAMEParam1 . MAMEParam2 . MAMEParam3
	}
} Else If (superGB = "true") {
	RLLog.Info("Module - Retroarch Super Game Boy mode enabled")
	fullRomPath := " """ . sgbRomPath . """ --subsystem sgb """ . romPath . "\" . romName . romExtension . """"
} Else {
	RLLog.Info("Module - Retroarch standard mode enabled")
	fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
}
 
If (retroID = "LibRetro_NFDS")	; Nintendo Famicom Disk System
{	disksysRom := new File(retroSysDir . "\disksys.rom")
	If !disksysRom.Exist()
		ScriptError("RetroArch requires ""disksys.rom"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If (retroID = "LibRetro_SCD")	; Sega CD
{	If !StringUtils.Contains(romExtension, "\.bin|\.cue|\.iso")
		ScriptError("RetroArch only supports Sega CD games in bin|cue|iso format. It does not support:`n" . romExtension)
	biosCDEBin := new File(retroSysDir . "\bios_CD_E.bin")
	biosCDUBin := new File(retroSysDir . "\bios_CD_U.bin")
	biosCDJBin := new File(retroSysDir . "\bios_CD_J.bin")
	If !biosCDEBin.Exist()
		ScriptError("RetroArch requires ""bios_CD_E.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
	If !biosCDUBin.Exist()
		ScriptError("RetroArch requires ""bios_CD_U.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
	If !biosCDJBin.Exist()
		ScriptError("RetroArch requires ""bios_CD_J.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If StringUtils.Contains(retroID,"LibRetro_PCECD|LibRetro_TGCD")	; NEC PC Engine-CD and NEC TurboGrafx-CD
{	If !StringUtils.Contains(romExtension,"\.ccd|\.cue")
		ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
	sysCard3Pce := new File(retroSysDir . "\syscard3.pce")
	If !sysCard3Pce.Exist()
		ScriptError("RetroArch requires ""syscard3.pce"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If (retroID = "LibRetro_PCFX")
{	If !StringUtils.Contains(romExtension,"\.ccd|\.cue")
		ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
	pcfxBios := new File(retroSysDir . "\pcfx.bios")
	If !pcfxBios.Exist()
		ScriptError("RetroArch requires ""pcfx.bios"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
} Else If (retroID = "LibRetro_SCUMM")
{
	scummFile := new File(romPath . "\" . romName . ".scummvm")
	If !scummFile.Exist()
		scummFile.Append("""" . romName . """")
}
 
networkSession := ""
If (enableNetworkPlay = "true") {
	RLLog.Info("Module - Network Multi-Player is an available option for " . dbName)
 
	netplayNickname := moduleIni.Read("Network", "NetPlay_Nickname","Player",,1)
	getWANIP := moduleIni.Read("Network", "Get_WAN_IP","false",,1)
 
	If (getWANIP = "true")
		myPublicIP := GetPublicIP()
 
	RLLog.Warning("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE")
	defaultServerIP := moduleIni.Read("Network", "Default_Server_IP", myPublicIP,,1)
	defaultServerPort := moduleIni.Read("Network", "Default_Server_Port",,,1)
	lastIP := moduleIni.Read("Network", "Last_IP", defaultServerIP,,1)	; does not need to be on the ISD
	lastPort := moduleIni.Read("Network", "Last_Port", defaultServerPort,,1)	; does not need to be on the ISD
 
	mpMenuStatus := MultiPlayerMenu(lastIP,lastPort,networkType,,0)
	If (mpMenuStatus = -1) {	; if user exited menu early
		RLLog.Warning("Module - Cancelled MultiPlayer Menu. Exiting module.")
		ExitModule()
	}
	If networkSession {
		RLLog.Info("Module - Using a Network for " . dbName)
		moduleIni.Write(networkPort, "GlobalModuleIni", "Network", "Last_Port")
		; msgbox lastIP: %lastIP%`nlastPort: %lastPort%`nnetworkIP: %networkIP%`nnetworkPort: %networkPort%
		If (networkType = "client") {
			moduleIni.Write(networkIP, "GlobalModuleIni", "Network", "Last_IP")	; Save last used IP and Port for quicker launching next time
			netCommand := " -C " . networkIP . " --port " . networkPort . " --nick """ . netplayNickname . """"	; -C = connect as client
		} Else {	; server
			netCommand := " -H --port " . networkPort . " --nick """ . netplayNickname . """"	; -H = host as server
		}
		RLLog.Warning("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE")
		RLLog.Info("Module - Starting a network session using the IP """ . networkIP . """ and PORT """ . networkPort . """")
	} Else
		RLLog.Info("Module - User chose Single Player mode for this session")
}
 
BezelStart(,,(If rotateBezel ? 1:""))
 
If foundCfg {
	If (stretchToFillBezel = "true" and bezelEnabled = "true" and bezelPath)
	{
		customViewportWidth := bezelScreenWidth
		customViewportHeight := bezelScreenHeight
		customViewportX := 0
		customViewportY := 0
		aspectRatioIndex := 22
		RLLog.Info("Stretching viewport to fit bezel")
	}
 
	raCfgHasChanges := ""
	WriteRetroProperty("core_options_path", singlecoreoptions)
	WriteRetroProperty("input_overlay", overlay)
	WriteRetroProperty("video_shader", videoShader)
	WriteRetroProperty("aspect_ratio_index", aspectRatioIndex)
	WriteRetroProperty("custom_viewport_width", customViewportWidth)
	WriteRetroProperty("custom_viewport_height", customViewportHeight)
	WriteRetroProperty("custom_viewport_x", customViewportX)
	WriteRetroProperty("custom_viewport_y", customViewportY)
	WriteRetroProperty("video_rotation", rotation)
	WriteRetroProperty("video_crop_overscan", cropOverscan)
	WriteRetroProperty("video_threaded", threadedVideo)
	WriteRetroProperty("video_vsync", vSync)
	WriteRetroProperty("video_scale_integer", integerScale)
	WriteRetroProperty("input_disk_eject_toggle", ejectToggleKey)
	WriteRetroProperty("input_disk_next", nextDiskKey)
	WriteRetroProperty("input_disk_prev", prevDiskKey)
	If StringUtils.Contains(retroID, "LibRetro_PSX") {
		Loop, 8	; Loop 8 times for 8 controllers
		{	p%A_Index%ControllerType := moduleIni.Read(romName . "|" . systemName, "P" . A_Index . "_Controller_Type", 517,,1)
			WriteRetroProperty("input_libretro_device_p" . A_Index, p%A_Index%ControllerType)
		}
	}
 
	If raCfgHasChanges {
		RLLog.Info("Module - Saving changed settings to: """ . retroCFGFile.FileFullPath . """")
		SaveProperties(retroCFGFile.FileFullPath, retroCFG)
	}
}
 
fullscreen := If fullscreen = "true" ? " -f" : ""
retroCFGFileCLI := If foundCfg ? " -c """ . retroCFGFile.FileFullPath . """" : ""
 
 
 
HideAppStart(hideEmuObj,hideEmu)
 
If (StringUtils.Contains(core, "^(mame|mess|ume)") && (retroMAMEID != "mame")) {    ; if a MAME/MESS/UME core is used
	primaryExe.Run(" """ . (retroMAMEID ? retroMAMEID : "") . fullRomPath . """ " . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
} Else If (retroID = "LibRetro_SCUMM") {
	primaryExe.Run(" """ . scummFile . """" . fullscreen . retroCFGFileCLI . " -L """ . libDll . "" . netCommand, "Hide")
} Else If (retroID = "LibRetro_SGB" || If superGB = "true") { ; For some reason, the order of our command line matters in this particular case.
	primaryExe.Run(fullscreen . retroCFGFileCLI . " -L """ . libDll . fullRomPath . netCommand, "Hide")
} Else If mgM3UFile.Exist() {
	primaryExe.Run(" """ . mgM3UFile.FileFullPath . """" . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
} Else If (videoShader != "") {
	primaryExe.Run(" " . fullRomPath . fullscreen . retroCFGFileCLI . " --set-shader """ . videoShader . """ -L """ . libDll . """" . netCommand, "Hide")
} Else {
	primaryExe.Run(" " . fullRomPath . fullscreen . retroCFGFileCLI . " -L """ . libDll . """" . netCommand, "Hide")
}
 
mpMenuStatus := ""
If networkSession {
	canceledServerWait := false
	multiplayerMenuExit := false
	TimerUtils.SetTimer("NetworkConnectedCheck", 500)
 
	If (networkType = "server") {
		RLLog.Info("Module - Waiting for a client to connect to your server")
		mpMenuStatus := MultiPlayerMenu(,,,,,,,,"You are the server. Please wait for your client to connect.")
	} Else {	; client
		RLLog.Info("Module - Trying to contact the server to establish a connection.")
		mpMenuStatus := MultiPlayerMenu(,,,,,,,,"Attempting to connect to the server...")
	}
 
	If (mpMenuStatus = -1) {	; if user exited menu early before a client connected
		RLLog.Warning("Module - Cancelled waiting for the " . If (networkType = "server") ? "client to connect" : "server to respond" . ". Exiting module.")
		If primaryExe.Process("Exist")
			primaryExe.Process("Close")	; must close process as the exe is waiting for a client to connect and no window was drawn yet
		ExitModule()
	} Else {	; blank response from MultiPlayerMenu, exited properly
		RLLog.Info("Module - " . If (networkType = "server") ? "Client has connected" : "Connected to the server")
		emuPrimaryWindow.Wait()
		emuPrimaryWindow.WaitActive()
	}
	TimerUtils.SetTimer("NetworkConnectedCheck", "Off")
} Else {	; single player
	emuPrimaryWindow.Wait()
	emuPrimaryWindow.WaitActive()
}
 
If (hideConsole = "true")
	emuConsoleWindow.Set("Transparent", "On")	; makes the console window transparent so you don't see it on exit
 
BezelDraw()
HideAppEnd(hideEmuObj,hideEmu)
FadeInExit()
primaryExe.Process("WaitClose")
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()
 
 
; Writes new properties into the retroCFG if defined by user
WriteRetroProperty(key,value="") {
	If (value != "") {
		Global retroCFG,raCfgHasChanges
		WriteProperty(retroCFG, key, value,1,1)
		raCfgHasChanges := 1
	}
}
 
; Used to convert between RetroArch keys and usable data
ConvertRetroCFGKey(txt,direction="read"){
	Global emuPath,RLLog
	If (direction = "read")
	{	newtxt := StringUtils.TrimLeft(txt,1,0)	; removes the " from the left of the txt
		newtxt := StringUtils.TrimRight(newtxt,1,0)	; removes the " from the right of the txt
		relativeCheck := StringUtils.SubStr(newtxt,1,1,0)
		If StringUtils.Contains(relativeCheck,":",0) {	; if the path contains a ":" then it is a relative path
			RLLog.Debug("ConvertRetroCFGKey - " . newtxt . " is a relative path")
			newtxt := StringUtils.TrimLeft(newtxt,1,0)	; removes the : from the left of the txt
			newtxt := AbsoluteFromRelative(emuPath, "." . newtxt)	; convert relative to absolute
		}
		If StringUtils.Contains(newtxt,"/",0)
			newtxt := StringUtils.Replace(newtxt,"/","\",1,,0)	; replaces all forward slashes with backslashes
	} Else If (direction = "write")
	{	newtxt := """" . txt . """"	; wraps the txt with ""
		If StringUtils.Contains(newtxt,"\\",0)
			newtxt := StringUtils.Replace(newtxt,"\","/",1,,0)	; replaces all backslashes with forward slashes
	} Else
		ScriptError("Not a valid use of ConvertRetroCFGKey. Only ""read"" or ""write"" are supported.")
	RLLog.Debug("ConvertRetroCFGKey - Converted " . txt . " to " . newtxt)
	Return newtxt
}
 
MultiGame:
	KeyUtils.SetKeyDelay(100)
	emuPrimaryWindow.Activate()
	KeyUtils.Send("{" . ejectToggleKey . " down}{" . ejectToggleKey . " up}")	; eject disc in Retroarch
	If (!mgLastRomIndex) {
		mgLastRomIndex := mgRomIndex
	}
	selectedRomIndex := 0
	selectedRomIndex := StringUtils.TrimLeft(selectedRomNum, StringUtils.StringLength(mgType,0))
 
	Loop % mgMaxIndex
	{
		If (m3uRomIndex[A_index] = mgLastRomIndex) {
			tempLastRomIndex := A_index
			RLLog.Debug("Module - Last index: " . tempLastRomIndex)
		}
		If (m3uRomIndex[A_index] = selectedRomIndex) {
			tempSelectedRomIndex := A_index
			RLLog.Debug("Module - Selected index: " . tempSelectedRomIndex)
		}
	}
 
	mgNewIndex := tempLastRomIndex - tempSelectedRomIndex
 
	If (mgNewIndex < 0) {
		mgNewIndex := mgNewIndex * -1
		Loop % mgNewIndex
		{
			RLLog.Debug("Module - Sending the next disk key: " . nextDiskKey)
			KeyUtils.Send("{" . nextDiskKey . " down}{" . nextDiskKey . " up}")
		}
	} Else If (mgNewIndex > 0) {
		Loop % mgNewIndex
		{
			RLLog.Debug("Module - Sending the previous disk key: " . mgNewIndex)
			KeyUtils.Send("{" . prevDiskKey . " down}{" . prevDiskKey . " up}")
		}
	}
 
	KeyUtils.Send("{" . ejectToggleKey . " down}{" . ejectToggleKey . " up}")	; close disc in Retroarch
	mgLastRomIndex := selectedRomIndex
Return
 
NetworkConnectedCheck:
	If clientConnected
		multiplayerMenuExit := true
	Else If emuPrimaryWindow.Exist() {
		RLLog.Info("Module - RetroArch session started, closing the MultiPlayer menu")
		multiplayerMenuExit := true
	}
Return
 
CloseProcess:
	FadeOutStart()
	emuPrimaryWindow.Close()
Return

However keep getting some issues, load the game once and then there is some ahk issue preventing me from loading another game. If anyone could post the latest official AHK for retroarch it would really be appreciated. Thank you!
 
Top