Front End Support > MaLa Frontend

Mala Help needed - CLViewer and game lists

<< < (5/5)

loadman:

--- Quote from: SGT on April 23, 2007, 08:10:17 pm ---
--- Quote ---Yep...You Launch With another Key  ...  See Pic.
--- End quote ---
Thanks loadman.  If I had a decent memory that would work.  Doubt I would remember which games used which key. Also hoping for something more seamless to work well in a cab.

I am thinking about delving into writing a plugin.  I am thinking that upon the game_selected event, have the plugin check for the existence of a config file with the same name as the rom.  If it does not exist, do nothing.
If it does exist, get the emulator command line from this config file and give it to Mala.  That is if Mala allows the "emulator command line" for a specific game to be changed when the "game selected" event occurs.

Loadman,  Can the "emulator command line" be changed during an event in a plug-in?


--- End quote ---

Great Idea...  You can get a Plug-in to change mame.ini [Edit mala.ini settings (for the emu command- line)
so that may be a solution....  I would have to experiment  ;)

SGT:

--- Quote ---Great Idea...  You can get a Plug-in to change mame.ini settings (for the emu command- line)
so that may be a solution....  I would have to experiment 
--- End quote ---

Did you mean the mala.ini instead of the mame.ini?  Seems Mala loads the mala.ini when Mala first starts.  If you change the contents of mala.ini while Mala is running, there is no effect.

Looking at the help file for the Mala API, it mentions a variable called:
commandline which it describes at the "emulator commandline".  Can this variable's contents only be read from or can it also be written to, during an event?

loadman:

--- Quote from: SGT on April 23, 2007, 09:31:43 pm ---Did you mean the mala.ini instead of the mame.ini?  Seems Mala loads the mala.ini when Mala first starts.  If you change the contents of mala.ini while Mala is running, there is no effect.?
--- End quote ---
yes I did... shame


--- Quote ---Looking at the help file for the Mala API, it mentions a variable called:
commandline which it describes at the "emulator commandline".  Can this variable's contents only be read from or can it also be written to, during an event?
--- End quote ---
Dunno  :dunno  I will have a play when I get home from work

SGT:

--- Quote ---Looking at the help file for the Mala API, it mentions a variable called:
commandline which it describes at the "emulator commandline".  Can this variable's contents only be read from or can it also be written to, during an event?
--- End quote ---

Looking more closely, the Mala variable "FileName" holds the path and the name of the Mame executable.  I am so ignorant of the way this plugin thing works.  I cannot figure out if Mala only provides read-only access to these variables or if the plugin can actually change them.

I would hate to go to the trouble of learning Delphi only to find out what I want to do cannot be done. :cry:

Thanks loadman for any information you can give me later on this subject.  :cheers:

loadman:

--- Quote from: SGT on April 23, 2007, 11:18:07 pm ---
--- Quote ---Looking at the help file for the Mala API, it mentions a variable called:
commandline which it describes at the "emulator commandline".  Can this variable's contents only be read from or can it also be written to, during an event?
--- End quote ---

Looking more closely, the Mala variable "FileName" holds the path and the name of the Mame executable.  I am so ignorant of the way this plugin thing works.  I cannot figure out if Mala only provides read-only access to these variables or if the plugin can actually change them.

I would hate to go to the trouble of learning Delphi only to find out what I want to do cannot be done. :cry:

Thanks loadman for any information you can give me later on this subject.  :cheers:


--- End quote ---

You are right...You can't change it... But

Thinking outside the box:  you could have your two versions (or more) of mame
eg mame89 and mame104  and have the plug-in copy the version of mame you need as mame.exe
So then MaLa will always be launching mame.exe but Your sneaky plug-in is changing what version mame.exe is before launch (if the game is on the list to use the other version).... 
Hey.... it's not sexy but it will work and be invisible to the user. So who cares?   8)

Welcome to the fun world of MaLa dev   ;D Let us know if you need help (probably better via the MaLa Forum )

Navigation

[0] Message Index

[*] Previous page

Go to full version