[mythtv] mamehandler.cpp diff
DanM
dan at milkcarton.com
Sat Feb 22 10:50:01 EST 2003
Here's a diff for mythgame/mamehandler.cpp to do:
fixed mis-spelling on comment
create xmame_minor integer var to be used in:
cheatfile param has changed .62(?) from cheatfile to cheat_file
historyfile param has changed .62(?) from historyfile to history_file
and replace atoi(tmp) with xmame_minor
added check for xmame_minor < 62 on spool dir. The spooldir param
doesn't seem to exist in .62.2 or .65
-dan
-------------- next part --------------
410a411
> //cout << exec << endl;
485c486
< /* Chech xmame display target */
---
> /* Check xmame display target */
755a757,761
>
> /* define the integer version of xmame_minor so we only have to evaluate it once */
> tmp = general_prefs.xmame_minor;
> int xmame_minor = atoi(tmp);
>
757a764,767
> /* The cheatfile argument name changed in 0.62. */
> if (xmame_minor >= 62) {
> *exec+= " -cheat_file ";
> } else {
758a769
> }
762a774,777
> /* The historyfile argument name changed in 0.62. */
> if (xmame_minor >= 62) {
> *exec+= " -history_file ";
> } else {
763a779
> }
768d783
< tmp = general_prefs.xmame_minor;
770c785
< if (atoi(tmp) >= 62) {
---
> if (xmame_minor >= 62) {
779,780c794,797
< *exec+= " -spooldir ";
< *exec+= general_prefs.highscore_dir;
---
> if (xmame_minor < 62) {
> *exec+= " -spooldir ";
> *exec+= general_prefs.highscore_dir;
> }
More information about the mythtv-dev
mailing list