[mythtv-commits] Ticket #8613: MythGame fails to find ROMs when "extensions" field is blank in DB

MythTV mythtv at cvs.mythtv.org
Thu Jul 15 16:06:52 UTC 2010


#8613: MythGame fails to find ROMs when "extensions" field is blank in DB
-------------------------------+--------------------------------------------
 Reporter:  mythtv@…           |       Owner:  greg          
     Type:  patch              |      Status:  infoneeded_new
 Priority:  minor              |   Milestone:  unknown       
Component:  Plugin - MythGame  |     Version:  0.23-fixes    
 Severity:  medium             |     Mlocked:  0             
-------------------------------+--------------------------------------------

Comment(by mythtv@…):

 In my database, the "extensions" column in the gameplayers table does not
 have a value for any of the configured emulators. When the code calls the
 QString::split() method on an empty string, it will always return a single
 element list with the original string (according to the docs and to my
 experience using MythTV). When a checked is later done for
 handler->validextensions.count() > 0, it will always return that single
 element list (which is blank). It then tries to find files with those
 extensions (which it will find none), then skips processing that file
 (thus never adding it to the m_GameMap list.

 if (result.isEmpty())
   continue;

 The missing information might be related to scanning for new ROMs. When I
 go scan for new games without the patch applied, it thinks that every
 existing ROM is no longer found and wants to remove it. With the patch, it
 correctly finds the existing ROMs and skips them.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8613#comment:2>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list