|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.miami.romeo.xmame.Xmame
Xmame.
This class dialogs with the xmame executable. It can retrieve
data (ie list of games) and run a game.
Constructor Summary | |
Xmame(Romeo romeo)
Constructor |
Method Summary | |
java.lang.String[] |
getClones(java.lang.String[] romName,
java.lang.String[] listOfClones)
This method compares the list of games with the list of clones. |
java.lang.String[] |
getClonesOfGame(java.lang.String xmamePath,
java.lang.String gameName)
This method retrieves the clones of a given game. |
java.lang.String |
getDetailedInfo(java.lang.String xmamePath,
java.lang.String gameName)
This method retrieves detailed info for a given game running the command "xmame -ld gamename". |
java.lang.String[] |
getDigitalSoundPlugins(java.lang.String xmamePath)
This method removes all unuseful stuff (ie copyright lines (Open GL), etc.) from the list of the available sound-dsp plugins. |
java.lang.String[] |
getFavoriteRoms(java.lang.String[] romName,
java.lang.String listPath)
This method returns an array of favorite/non-favorite games. |
java.lang.String[] |
getGameSamples(java.lang.String xmamePath,
java.lang.String gameName)
This method lists used audio samples for a given game running the command "xmame -ls gamename". |
java.lang.String[] |
getNumberOfPlayedMatches(java.lang.String[] romName,
java.lang.String listPath)
This method returns an array with numbers of played matches for each game. |
java.lang.String |
getRealCommand(java.lang.String cmd)
|
java.lang.String |
getRomColors(java.lang.String xmamePath,
java.lang.String romName)
This method returns a string containing the number of colors used by a rom running the command "xmame -listcolors romname". |
java.lang.String[] |
getRomDescriptions(java.lang.String[] listFull)
This method retrieves game descriptions. |
java.lang.String[] |
getRomManufacturers(java.lang.String[] listOfGames)
This method retrieves the manufacturer for each game. |
java.lang.String[] |
getRomNames(java.lang.String[] listFull)
This method retrieves game names. |
java.lang.String[] |
getRomsUsingSamples(java.lang.String xmamePath,
java.lang.String[] romName)
This method retrieves the list of games that use audio samples. |
java.lang.String[] |
getRomYears(java.lang.String[] listOfGames)
This method retrieves the list of the production year for each game. |
java.lang.String[] |
getSoundMixerPlugins(java.lang.String xmamePath)
This method removes all unuseful stuff (ie copyright lines (Open GL), etc.) from the list of the available sound-mixer plugins. |
java.lang.String[] |
getSourceFiles(java.lang.String xmamePath)
This method retrieves list of source files running the command "xmame -lsf". |
java.lang.String |
getVersion(java.lang.String xmamePath)
This method retrieves xmame version running the command "xmame -V". |
int[] |
getVersionNumbers(java.lang.String xmamePath)
This method returns xmame version numbers. |
java.lang.String[] |
getWorkingRoms(java.lang.String xmamePath)
This method runs the command "xmame -listgamelist" that outputs a list with specialy formatted extra info for generating gamelist.mame. |
java.lang.String[] |
listClones(java.lang.String xmamePath)
This method retrieves the list of all clones running the command "xmame -listclones". |
java.lang.String[] |
listCpuUsage(java.lang.String xmamePath)
This method lists cpu usage statistics per year running the command "xmame -listcpu". |
java.lang.String[] |
listDigitalSoundPlugins(java.lang.String xmamePath)
This method lists available sound-dsp plugins running the command "xmame -ldp". |
java.lang.String[] |
listFull(java.lang.String xmamePath)
This method retrieves list of supported games with full description running the command "xmame -listfull". |
java.lang.String[] |
listGames(java.lang.String xmamePath)
This method retrieves the list of supported games with manufacturer and year running the command "xmame -listgames". |
java.lang.String[] |
listSamples(java.lang.String xmamePath)
This method lists used audio samples running the command "xmame -ls". |
java.lang.String[] |
listSoundMixerPlugins(java.lang.String xmamePath)
This method lists available sound-mixer plugins running the command "xmame -lmp -noloadconfig". |
java.lang.String |
parsePath(java.lang.String cmd)
|
boolean |
romIsCorrect(java.lang.String xmamePath,
java.lang.String romPath,
java.lang.String romName)
This method returns true if a rom is correct, false otherwise. |
static java.lang.String[] |
runCommand(java.lang.String cmd)
This method runs a given command, gets command' s output stream and puts a buffered reader input stream on it, then reads the output lines from command and put them into a list to pass to the caller. |
void |
runMame(java.lang.String xmamePath,
java.lang.String options)
This method runs a given game. |
void |
setDigitalSoundPlugins(java.lang.String xmamePath)
This method adds available sound-dsp plugins into a main window' s specific combo box. |
void |
setSoundMixerPlugins(java.lang.String xmamePath)
This method adds available sound mixer plugins into a main window' s specific combo box. |
java.lang.String |
verifyRom(java.lang.String xmamePath,
java.lang.String romPath,
java.lang.String romName)
This method runs the command "xmame -verifyroms" to verify a romset and gets the response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Xmame(Romeo romeo)
romeo
- The main classMethod Detail |
public java.lang.String[] listFull(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public java.lang.String[] getRomNames(java.lang.String[] listFull)
listFull
- The list of supported games with full description
listFull(String)
public java.lang.String[] getFavoriteRoms(java.lang.String[] romName, java.lang.String listPath)
romName
- The game nameslistPath
- The path to the list of games file
getRomNames(String[])
public java.lang.String[] getRomDescriptions(java.lang.String[] listFull)
listFull
- The list of supported games with full description
listFull(String)
public java.lang.String[] listGames(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public java.lang.String[] getRomYears(java.lang.String[] listOfGames)
listOfGames
- The list of supported games with
manufacturer and year.
listGames(String)
public java.lang.String[] getRomManufacturers(java.lang.String[] listOfGames)
listOfGames
- The list of supported games with
manufacturer and year.
listGames(String)
public java.lang.String[] getWorkingRoms(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public java.lang.String[] listClones(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public java.lang.String[] getClonesOfGame(java.lang.String xmamePath, java.lang.String gameName)
xmamePath
- The path to the xmame executablegameName
- The game name
runCommand(String)
public java.lang.String[] getClones(java.lang.String[] romName, java.lang.String[] listOfClones)
romName
- The game nameslistOfClones
- The clones
getRomNames(String[])
public java.lang.String[] getSourceFiles(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public java.lang.String[] getRomsUsingSamples(java.lang.String xmamePath, java.lang.String[] romName)
xmamePath
- The path to the xmame executableromName
- The list of rom names
listSamples(String)
public java.lang.String[] listSamples(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
public java.lang.String[] getGameSamples(java.lang.String xmamePath, java.lang.String gameName)
xmamePath
- The path to the xmame executablegameName
- The game name
runCommand(String)
public java.lang.String getDetailedInfo(java.lang.String xmamePath, java.lang.String gameName)
xmamePath
- The path to the xmame executablegameName
- The game name
runCommand(String)
public java.lang.String[] getNumberOfPlayedMatches(java.lang.String[] romName, java.lang.String listPath)
romName
- The list of gameslistPath
- The path to the list of games
public java.lang.String[] listCpuUsage(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public int[] getVersionNumbers(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
getVersion(String)
public java.lang.String getVersion(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public boolean romIsCorrect(java.lang.String xmamePath, java.lang.String romPath, java.lang.String romName)
xmamePath
- The path to the xmame executableromPath
- The path to the rom to verifyromName
- The name of the rom to verify
true
if the rom is correct,
false
otherwiseverifyRom(String, String, String)
public java.lang.String verifyRom(java.lang.String xmamePath, java.lang.String romPath, java.lang.String romName)
xmamePath
- The path to the xmame executableromPath
- The path to the rom to verifyromName
- The name of the rom to verify
output
of the command
"xmame -verifyroms rom name".runCommand(String)
public java.lang.String getRomColors(java.lang.String xmamePath, java.lang.String romName)
xmamePath
- The path to the xmame executableromName
- The name of the rom
String
containing the number
of colors used by a given romrunCommand(String)
public void setDigitalSoundPlugins(java.lang.String xmamePath)
xmamePath
- The path to the xmame executablegetDigitalSoundPlugins(String)
public java.lang.String[] getDigitalSoundPlugins(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
listDigitalSoundPlugins(String)
public java.lang.String[] listDigitalSoundPlugins(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public void setSoundMixerPlugins(java.lang.String xmamePath)
xmamePath
- The path to the xmame executablegetSoundMixerPlugins(String)
public java.lang.String[] getSoundMixerPlugins(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
listSoundMixerPlugins(String)
,
runCommand(String)
public java.lang.String[] listSoundMixerPlugins(java.lang.String xmamePath)
xmamePath
- The path to the xmame executable
runCommand(String)
public void runMame(java.lang.String xmamePath, java.lang.String options) throws java.io.IOException
xmamePath
- The path to the xmame executableoptions
- The options selected by the user to run the given game
java.io.IOException
runCommand(String)
public static java.lang.String[] runCommand(java.lang.String cmd) throws java.io.IOException
cmd
- The command to run
java.io.IOException
public java.lang.String getRealCommand(java.lang.String cmd)
public java.lang.String parsePath(java.lang.String cmd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |