Butter100fly (talk | contribs) (even more of mame rom path type ui description) |
Butter100fly (talk | contribs) mNo edit summary |
||
(19 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
== How MAME in QuickPlay works == | == How MAME in QuickPlay works == | ||
First you scan a MAME XML as a one-off thing into QuickPlay, creating a subset of that massive file (plus info from any ini files in your mame extras folder) that QuickPlay uses to print things with. You then tell QuickPlay to print a set of Arcade Romdata files and/or a set of Software List Romdata files, and QuickPlay uses that file it made when it scanned the MAME XML. These romdatas are 'printed', once, in | First you scan a MAME XML as a one-off thing into QuickPlay, creating a subset of that massive file (plus info from any ini files in your mame extras folder) that QuickPlay uses to print things with. You then tell QuickPlay to print a set of Arcade Romdata files and/or a set of Software List Romdata files, and QuickPlay uses that file it made when it scanned the MAME XML. These romdatas are 'printed', once, in QuickPlay's data folder as romdata.dat files and displayed in QuickPlay. If you want to change anything in them, its easiest to just delete them, change some option, and print all of them again (you will lose any customisations you made to the romdatas though, if in doubt, diff them) | ||
So once these romdata files are printed, no more interaction with MAME happens until you actually play games. | So once these romdata files are printed, no more interaction with MAME happens until you actually play games. | ||
Line 29: | Line 29: | ||
=== Using mame.ini's rompath variable === | === Using mame.ini's rompath variable === | ||
One final thing | One final thing it's important to understand is MAME's rompath and MAME's ROM types. Since you have setup MAME so that it works outside of QuickPlay, you'll be aware of MAME's configuration file: Mame.ini. QuickPlay needs to read this Mame.ini - This currently works if you have a mame.ini/mess.ini in the same directory as the mame executable QuickPlay found in an EFind (or if the ini file is in system/mame/ or system/mess realtive to the RetroArch executable, in the case of RetroArch). One of the first settings in Mame.ini is 'rompath' - that's the setting this is ALL about: | ||
[[File:Mame_ini.png|500px]] | [[File:Mame_ini.png|500px]] | ||
MAME is pretty flexible in how you organise your rompaths, a bit too flexible really. So in here you've specified all the paths to all your MAME roms, if you didn't alter this setting then you have a relative path 'roms' to the 'roms' folder in your MAME install folder, and that's the only place your MAME roms can be. But you might have set all sorts of other folders that MAME roms live in.....more on that in a bit. | MAME is pretty flexible in how you organise your rompaths, a bit too flexible really. So in here you've specified all the paths to all your MAME roms, if you didn't alter this setting then you have a relative path 'roms' to the 'roms' folder in your MAME install folder, and that's the only place your MAME roms can be. But you might have set all sorts of other folders that MAME roms live in.....(I did a lot of online research when adjusting this feature for what users have as their mame rompath paths, and the results shocked me - I found 'everything but the kitchen sink' as we say in England) - more on that in a bit. | ||
Next, let's talk about MAME rom types: we deal with four types of ROM here: ROMS (arcade and system bios roms), CHDs (arcade discs), Software List Roms (Console/Home Computer roms) and Software List CHDs (CD and DVD roms for Consoles/Home Computers). These might all be in your MAME roms folder, that's quite valid, but its probably more likely you have them in separate folders. | Next, let's talk about MAME rom types: we deal with four types of ROM here: ROMS (arcade and system bios roms), CHDs (arcade discs), Software List Roms (Console/Home Computer roms) and Software List CHDs (CD and DVD roms for Consoles/Home Computers). These might all be in your MAME roms folder, that's quite valid, but its probably more likely you have them in separate folders. | ||
Line 43: | Line 43: | ||
<ul> | <ul> | ||
<li> '''Print MAME Filepaths''' - If you want gain the benefits described above, turn it on! However, there are reasons you might not want to have filepath's in your romdata: we require that you setup your MAME Rompaths in a certain way to print them (see below | <li> '''Print MAME Filepaths''' - If you want gain the benefits described above, turn it on! However, there are reasons you might not want to have filepath's in your romdata: we require that you setup your MAME Rompaths in a certain way to print them (see below that you can't have more than one path for a single rom type, which means if you do something like splitting 'roms' into arcade roms and bios roms in two folders, you'll have to symlink or change stuff to fit in with our convention here - this will work for most people, but as ever, not all), RetroArch has complex MAME requirements so it might be difficult (never impossible!) to get ROM files in the right place and BIOS files in the right place to do what you want, or you might care about only having MAME emulators and not use any non-MAME emulators at all (entirely possible and awesome in QuickPlay) so you don't want or need any filePaths checked at any point. So the filepaths functionality is off by default, just enable it and save if you want to use it when printing romdata files </li> | ||
<li> '''Mame Rompath''' - this is just a read-only field showing you a (non-relative version of) the rompath setting in your MAME installation's ini file. The paths in here will be used by the dropdowns that follow</li> | <li> '''Mame Rompath''' - this is just a read-only field showing you a (non-relative version of) the rompath setting in your MAME installation's ini file. The paths in here will be used by the dropdowns that follow. If there's an erroro displayed here then I'm not sure how your MAME installation is working at all, since it appears to have no config file at all?</li> | ||
<li> '''ROM type dropdowns (x4)''' - filling these in is the main point of this: for us to print valid filepaths for each game in MAME, we need to know, for each of these four romtypes, which folder you've | <li> '''ROM type dropdowns (x4)''' - filling these in '''is the main point''' of this functionality, and makes all the filepaths print correctly in QuickPlay's MAME RomData files: for us to print valid filepaths for each game in MAME, we need to know, for each of these four romtypes, which folder you've specified that they live in. So if you've ticked that you want rompaths to be printed, for the MAME Emulator you tell QuickPlay to use in your MAME Options, we read the rompath from its Mame.ini and ask you to fill in the folder that each of the four romtypes is in. If you really do have all of these in the 'roms' folder in your MAME installation, set all four of the dropdowns to 'roms'. Otherwise set each type to the folder that type lives in. (I'm afraid we only support one folder for each type, so if you've got more than one folder for each type you'll have to use symlinks so they all appear to QuickPlay as one folder)</li> | ||
</ul> | </ul> | ||
hope you're still getting all this so far ;-)....now there's just a couple of other things to consider here before every filepath for all your MAME Roms will print exactly right, take a look at the two settings you can find on the second tab of the filepaths : | |||
[[File:mame_options_2.png|500px]] | [[File:mame_options_2.png|500px]] | ||
<ul> | <ul> | ||
<li> '''Mame Roms Filetype''' - Usually mame roms are zipped. But its also possible to 7zip your romsets (this saves a bit of space). Altering this setting will literally print either '*.zip' or '*.7z' at the end of each filepath recorded against a MAME Romdata in QuickPlay, so set it to the same format as your roms </li> | <li> '''Mame Roms Filetype''' - Usually mame roms are zipped. But its also possible to 7zip your romsets (this saves a bit of space). Altering this setting will literally print either '*.zip' or '*.7z' at the end of each filepath recorded against a MAME Romdata in QuickPlay, so set it to the same format as your roms (most people will have the default *.zip roms) </li> | ||
<li> '''Mame Roms Merge Type''' - You can read about this elsewhere: its a fundamental choice for MAME Roms of all kinds (including CHDs) and what type of Roms you have WILL affect what the filepaths are. If you have merged roms your filepaths will always be 'parent' names, if you don't you will first look to load 'child' names. You have to know which you have in order for filePath printing to work. (note 'fully-merged' is the same as 'merged' and any other option name probably means you do not have merged roms). Set this to match the Roms you have on disk</li> | <li> '''Mame Roms Merge Type''' - You can read about this elsewhere: its a fundamental choice for MAME Roms of all kinds (including CHDs) and what type of Roms you have WILL affect what the filepaths are. If you have merged roms your filepaths will always be 'parent' names, if you don't you will first look to load 'child' names. You have to know which you have in order for filePath printing to work. (note 'fully-merged' is the same as 'merged' and any other option name probably means you do not have merged roms). Set this to match the Roms you have on disk</li> | ||
</ul> | </ul> | ||
== tips == | == tips == | ||
<ul> | <ul> | ||
<li>If | <li>If after all this, QuickPlay STILL can't work out what a rompath is going to be, it will fallback to not really printing a rompath and instead printing './qp.exe' as the filepath, the reason for that is that QuickPlay does need a valid file in the filepath column in a RomData line, so its own file is the one file we know will definitely exist on your filesystem - it means QuickPlay doesn't know a filepath for this rom (bear in mind some arcade roms actually have no file of their own as they are embedded, so even if you have turned on the printing of filepaths here, you still may see this sometimes in the path column)</li> | ||
<li>Whatever you do for naming your rompaths, be aware that some chd names, particularly Software List CHD names, can be very long. Minimise your path name length to allow for these (e.g.: prefer 'D:/Mame/Roms' over 'D:/OldGames/AllIndividualEmulators/MAME Assets/Content Files/MAME Gamefiles/MAME ROMS' or you will blow Window's MAX_PATH limit)</li> | <li>Whatever you do for naming your rompaths, be aware that some chd names, particularly Software List CHD names, can be very long. Minimise your path name length to allow for these (e.g.: prefer 'D:/Mame/Roms' over 'D:/OldGames/AllIndividualEmulators/MAME Assets/Content Files/MAME Gamefiles/MAME ROMS' or you will blow Window's MAX_PATH limit)</li> | ||
<li> Filepath printing is supported for RetroArch but there are a large number of factors and potential setups going on (in particular RetroArch require that the bios file for a non-arcade system always can be found in the parent folder of a softlist ROM), so unless you have all your ROMS and in a single folder, you might want to disable filepath printing for Mame-In-Retroarch, or design yourself some symlink mechanism that satisfies that rule. But as long as you follow [[RetroarchMameMod | the guide on how to setup RetroArch for MAME In QuickPlay]] you should have a mame.ini file that QuickPlay will read, so you might have luck!</li> | <li> Filepath printing is supported for RetroArch but there are a large number of factors and potential setups going on (in particular RetroArch require that the bios file for a non-arcade system always can be found in the parent folder of a softlist ROM), so unless you have all your ROMS and in a single folder, you might want to disable filepath printing for Mame-In-Retroarch, or design yourself some symlink mechanism that satisfies that rule. But as long as you follow [[RetroarchMameMod | the guide on how to setup RetroArch for MAME In QuickPlay]] you should have a mame.ini file that QuickPlay will read, so you might have luck!</li> | ||
Line 73: | Line 70: | ||
[[File:mametool_arcade_cli_reminders.PNG|200px|thumb|left|arcade is printing]] | [[File:mametool_arcade_cli_reminders.PNG|200px|thumb|left|arcade is printing]] | ||
[[File:mametool_softlist_cli_reminders.PNG|200px|thumb|right|softlists are printing]] | [[File:mametool_softlist_cli_reminders.PNG|200px|thumb|right|softlists are printing]] | ||
One point of printing filepaths is so we have named files to pass to QuickPlay's Synctool, but consider this: a romdata entry can contain only one filepath, and so Synctool only syncs one file, which isn't how MAME really works. With Mame there can also be: | One point of printing filepaths is so we have named files to pass to QuickPlay's [[Synctool_Guide | Synctool]], but consider this: a romdata entry can contain only one filepath, and so Synctool only syncs one file, which isn't how MAME really works. With Mame there can also be: | ||
<ol> | <ol> | ||
<li> BIOS files / device files / parent files - needed for the rom to run</li> | <li> BIOS files / device files / parent files - needed for the rom to run</li> | ||
Line 79: | Line 76: | ||
</ol> | </ol> | ||
So when there's some helpful info about other files you could download in order for the romdata item we just printed to run or be fully played, at the moment the best we can do is print that to the console, | So when there's some helpful info about other files you could download in order for the romdata item we just printed to run or be fully played, at the moment the best we can do is print that to the console when printing a RomData file, if you are able you can open your mametool_logfile.txt and scrape that info out after doing a print and work out some way to copy the necessary files locally so that synctool will work for you (for BIOS files, just making sure you have the full 'MAME Roms' on your hard-disk if at all possible will mean that SyncTool will have all the other files it needs to just pull down the CD/DVD images on their own and work fine) . | ||
[[File:mametool_softlist_log_reminders.PNG|300px|center|border]] | [[File:mametool_softlist_log_reminders.PNG|300px|center|border]] | ||
Line 87: | Line 84: | ||
=== I tried to run a MAME romdata game with 'parameters to run' in a non-MAME Emulator, but it didn't like the command-line args passed === | === I tried to run a MAME romdata game with 'parameters to run' in a non-MAME Emulator, but it didn't like the command-line args passed === | ||
There is a small conflict with the 'other-game-name' functionality: mame has a problem where the same 'mamename' has been used on, effectively, more than one game for the same system, so if we call a game by its softlist 'mamename' only, we might run the wrong rom (eg: the disk Famicom version of Super Mario 2 instead of the NES cart version). in order to fix this, I hardcoded further loading | There is a small conflict with the 'other-game-name' functionality: mame has a problem where the same 'mamename' has been used on, effectively, more than one game for the same system, so if we call a game by its softlist 'mamename' only, we might run the wrong rom (eg: the disk Famicom version of Super Mario 2 instead of the NES cart version). in order to fix this, I hardcoded further loading instructions (namely which device to load from) in the 'parameters to run' against only those items which conflict. However the 'parameters to run' in QuickPlay run irrespective of which emulator you choose to run a Romdata item with. Now if you want to run it with a different MAME system, which is entirely valid, you might want this, but if you want to run it outside of MAME, you definitely dont. | ||
So if you want to run a game that has mame calls in the 'parameters' in the romdata, change its emulator to the one you want, and clear the parameters (or to do this temporarily: right click the rom and clear the parameters before running, and set the MAME emulator back afterwards). | So if you want to run a game that has mame calls in the 'parameters' in the romdata, change its emulator to the one you want, and clear the parameters (or to do this temporarily: right click the rom and clear the parameters before running, and set the MAME emulator back afterwards). | ||
In the long term, I have two potential fixes to this I might be able to make: either/or make these device calls at the emulator level (so we call the 'CART' version of the NES Softlist emulator in MAME) or make it so parameters don't carry over if you select a different emulator (there would probably have to be an exclusion for 'another mame emulator' though...) | |||
[[File:mametool_arcade_filepaths.PNG|1000px]] | [[File:mametool_arcade_filepaths.PNG|1000px]] |
Latest revision as of 09:27, 30 April 2024
Understanding the MAME Path printing option
In Mame Options, there's a section 'Arcade and Softlist Path Printing Options'. It is optional, you can just leave the filepath printing tickbox unticked and carry on. Read on for why you might want it:
Before we start, it helps to understand how the MAME functionality in QuickPlay works - so i'll try and explain how everything gets printed one-time upfront at first, and then remains static:
How MAME in QuickPlay works
First you scan a MAME XML as a one-off thing into QuickPlay, creating a subset of that massive file (plus info from any ini files in your mame extras folder) that QuickPlay uses to print things with. You then tell QuickPlay to print a set of Arcade Romdata files and/or a set of Software List Romdata files, and QuickPlay uses that file it made when it scanned the MAME XML. These romdatas are 'printed', once, in QuickPlay's data folder as romdata.dat files and displayed in QuickPlay. If you want to change anything in them, its easiest to just delete them, change some option, and print all of them again (you will lose any customisations you made to the romdatas though, if in doubt, diff them)
So once these romdata files are printed, no more interaction with MAME happens until you actually play games.
Launching a game
Now you understand how that works, let's think about what happens when you load a MAME game from QuickPlay
When QuickPlay calls MAME (or MAME-in-RetroArch), it doesn't 'need' filepaths: it calls 'mame.exe mamename' where mamename is a code the mame team made up to launch a particular game with ('bublbobl' for the game 'Bubble Bobble' for instance). This is the same for arcade or home computers/consoles. There's a mamename for everything. Of course we can use the (non-softlist) MAME Emulators we found during an EFind scan to try and run any Rom and any romdata in QuickPlay, so its entirely possible to pass MAME filepaths, but when we print off things from the MAME XML, every single game described by the MAME team is given a 'mamename', so we don't need this.
So, why might we want to also point to a filepath for these printed romdatas? There are two reasons:
- so that we might launch it with another emulator! If we try and launch a game with no filepath in an emulator that's not a MAME emulator, it will never work, yet there are many cases where we might want to open a rom the MAME team has collected with some other emulator. For instance the RetroArch team did some great work on a standlone Sharp x6800 emulator that's much faster than MAME's emulator, so if you have that EFind-ed with QuickPlay, a romdata with filepaths for each games makes it so you can right-click and launch any individual game with Retroarch's x6800 core
- So that we can do something with the filepath: in particular in QuickPlay now (after release 4.7.0) we can ask QuickPlay's Synctool to fetch the file specified at the filepath from some remote location. Now you don't need your whole MAME set and all those CHDs on your hard disk!
Like all other MAME functions in QuickPlay, the filePaths functionality doesn't ever inspect what romfiles you have on your disk, it just prints what the mame.xml says should be the paths. If you want to only print ROMS you have, then look at the MameFileManager option in the Arcade Roms menu.
Using mame.ini's rompath variable
One final thing it's important to understand is MAME's rompath and MAME's ROM types. Since you have setup MAME so that it works outside of QuickPlay, you'll be aware of MAME's configuration file: Mame.ini. QuickPlay needs to read this Mame.ini - This currently works if you have a mame.ini/mess.ini in the same directory as the mame executable QuickPlay found in an EFind (or if the ini file is in system/mame/ or system/mess realtive to the RetroArch executable, in the case of RetroArch). One of the first settings in Mame.ini is 'rompath' - that's the setting this is ALL about:
MAME is pretty flexible in how you organise your rompaths, a bit too flexible really. So in here you've specified all the paths to all your MAME roms, if you didn't alter this setting then you have a relative path 'roms' to the 'roms' folder in your MAME install folder, and that's the only place your MAME roms can be. But you might have set all sorts of other folders that MAME roms live in.....(I did a lot of online research when adjusting this feature for what users have as their mame rompath paths, and the results shocked me - I found 'everything but the kitchen sink' as we say in England) - more on that in a bit.
Next, let's talk about MAME rom types: we deal with four types of ROM here: ROMS (arcade and system bios roms), CHDs (arcade discs), Software List Roms (Console/Home Computer roms) and Software List CHDs (CD and DVD roms for Consoles/Home Computers). These might all be in your MAME roms folder, that's quite valid, but its probably more likely you have them in separate folders.
Understanding the MAME Printing Options settings
Now you understand how that works, let's look at the Arcade and Softlist Printing Options settings. The options apply the same to both Arcade and Softlist printing.
- Print MAME Filepaths - If you want gain the benefits described above, turn it on! However, there are reasons you might not want to have filepath's in your romdata: we require that you setup your MAME Rompaths in a certain way to print them (see below that you can't have more than one path for a single rom type, which means if you do something like splitting 'roms' into arcade roms and bios roms in two folders, you'll have to symlink or change stuff to fit in with our convention here - this will work for most people, but as ever, not all), RetroArch has complex MAME requirements so it might be difficult (never impossible!) to get ROM files in the right place and BIOS files in the right place to do what you want, or you might care about only having MAME emulators and not use any non-MAME emulators at all (entirely possible and awesome in QuickPlay) so you don't want or need any filePaths checked at any point. So the filepaths functionality is off by default, just enable it and save if you want to use it when printing romdata files
- Mame Rompath - this is just a read-only field showing you a (non-relative version of) the rompath setting in your MAME installation's ini file. The paths in here will be used by the dropdowns that follow. If there's an erroro displayed here then I'm not sure how your MAME installation is working at all, since it appears to have no config file at all?
- ROM type dropdowns (x4) - filling these in is the main point of this functionality, and makes all the filepaths print correctly in QuickPlay's MAME RomData files: for us to print valid filepaths for each game in MAME, we need to know, for each of these four romtypes, which folder you've specified that they live in. So if you've ticked that you want rompaths to be printed, for the MAME Emulator you tell QuickPlay to use in your MAME Options, we read the rompath from its Mame.ini and ask you to fill in the folder that each of the four romtypes is in. If you really do have all of these in the 'roms' folder in your MAME installation, set all four of the dropdowns to 'roms'. Otherwise set each type to the folder that type lives in. (I'm afraid we only support one folder for each type, so if you've got more than one folder for each type you'll have to use symlinks so they all appear to QuickPlay as one folder)
hope you're still getting all this so far ;-)....now there's just a couple of other things to consider here before every filepath for all your MAME Roms will print exactly right, take a look at the two settings you can find on the second tab of the filepaths :
- Mame Roms Filetype - Usually mame roms are zipped. But its also possible to 7zip your romsets (this saves a bit of space). Altering this setting will literally print either '*.zip' or '*.7z' at the end of each filepath recorded against a MAME Romdata in QuickPlay, so set it to the same format as your roms (most people will have the default *.zip roms)
- Mame Roms Merge Type - You can read about this elsewhere: its a fundamental choice for MAME Roms of all kinds (including CHDs) and what type of Roms you have WILL affect what the filepaths are. If you have merged roms your filepaths will always be 'parent' names, if you don't you will first look to load 'child' names. You have to know which you have in order for filePath printing to work. (note 'fully-merged' is the same as 'merged' and any other option name probably means you do not have merged roms). Set this to match the Roms you have on disk
tips
- If after all this, QuickPlay STILL can't work out what a rompath is going to be, it will fallback to not really printing a rompath and instead printing './qp.exe' as the filepath, the reason for that is that QuickPlay does need a valid file in the filepath column in a RomData line, so its own file is the one file we know will definitely exist on your filesystem - it means QuickPlay doesn't know a filepath for this rom (bear in mind some arcade roms actually have no file of their own as they are embedded, so even if you have turned on the printing of filepaths here, you still may see this sometimes in the path column)
- Whatever you do for naming your rompaths, be aware that some chd names, particularly Software List CHD names, can be very long. Minimise your path name length to allow for these (e.g.: prefer 'D:/Mame/Roms' over 'D:/OldGames/AllIndividualEmulators/MAME Assets/Content Files/MAME Gamefiles/MAME ROMS' or you will blow Window's MAX_PATH limit)
- Filepath printing is supported for RetroArch but there are a large number of factors and potential setups going on (in particular RetroArch require that the bios file for a non-arcade system always can be found in the parent folder of a softlist ROM), so unless you have all your ROMS and in a single folder, you might want to disable filepath printing for Mame-In-Retroarch, or design yourself some symlink mechanism that satisfies that rule. But as long as you follow the guide on how to setup RetroArch for MAME In QuickPlay you should have a mame.ini file that QuickPlay will read, so you might have luck!
Known limitations
What is all that extra console output when the romdatas are printing if I choose to print filepaths?
One point of printing filepaths is so we have named files to pass to QuickPlay's Synctool, but consider this: a romdata entry can contain only one filepath, and so Synctool only syncs one file, which isn't how MAME really works. With Mame there can also be:
- BIOS files / device files / parent files - needed for the rom to run
- Other disks to a CHD package - we only print disk 1
So when there's some helpful info about other files you could download in order for the romdata item we just printed to run or be fully played, at the moment the best we can do is print that to the console when printing a RomData file, if you are able you can open your mametool_logfile.txt and scrape that info out after doing a print and work out some way to copy the necessary files locally so that synctool will work for you (for BIOS files, just making sure you have the full 'MAME Roms' on your hard-disk if at all possible will mean that SyncTool will have all the other files it needs to just pull down the CD/DVD images on their own and work fine) .
Generally if you have merged roms you just need to get your BIOS/device files onto your local pc somehow. Ultimately, file syncing is best for MAME CHDs because of this issue, you can try and fit your MAME and Softlist Roms on your local machine, and then sync the massively larger CHDs when needed.
I tried to run a MAME romdata game with 'parameters to run' in a non-MAME Emulator, but it didn't like the command-line args passed
There is a small conflict with the 'other-game-name' functionality: mame has a problem where the same 'mamename' has been used on, effectively, more than one game for the same system, so if we call a game by its softlist 'mamename' only, we might run the wrong rom (eg: the disk Famicom version of Super Mario 2 instead of the NES cart version). in order to fix this, I hardcoded further loading instructions (namely which device to load from) in the 'parameters to run' against only those items which conflict. However the 'parameters to run' in QuickPlay run irrespective of which emulator you choose to run a Romdata item with. Now if you want to run it with a different MAME system, which is entirely valid, you might want this, but if you want to run it outside of MAME, you definitely dont.
So if you want to run a game that has mame calls in the 'parameters' in the romdata, change its emulator to the one you want, and clear the parameters (or to do this temporarily: right click the rom and clear the parameters before running, and set the MAME emulator back afterwards).
In the long term, I have two potential fixes to this I might be able to make: either/or make these device calls at the emulator level (so we call the 'CART' version of the NES Softlist emulator in MAME) or make it so parameters don't carry over if you select a different emulator (there would probably have to be an exclusion for 'another mame emulator' though...)