[mythtv] [PATCH] Clean up SNES game names
Andy Grundman
andy at hybridized.org
Thu Jan 15 11:25:38 EST 2004
The game names after searching for SNES games are mostly uppercase and
generally look bad. Here is a patch to use the rom's filename the same
way MAME and NES work.
I didn't strip out any of the NameBuffer code because I didn't want to
break anything. This could be cleaned up by someone who knows the
sneshandler.cpp code better.
-Andy
-------------- next part --------------
Index: sneshandler.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythgame/mythgame/sneshandler.cpp,v
retrieving revision 1.6
diff -u -r1.6 sneshandler.cpp
--- sneshandler.cpp 13 Sep 2003 16:19:11 -0000 1.6
+++ sneshandler.cpp 15 Jan 2004 16:21:11 -0000
@@ -216,7 +216,7 @@
NameBuffer[i] = RHeader.RomTitle[i];
}
NameBuffer[21] = '\0';
- GameName = NameBuffer;
+ GameName = Info.baseName();
}
//The file couldn't be verified. Check the extension.
else
@@ -298,6 +298,7 @@
QString Genre(QObject::tr("Unknown"));
int Year = 0;
+ GameName = Info.baseName();
cout << GameName << endl;
// Put the game into the database.
More information about the mythtv-dev
mailing list