[mythtv] [PATCH] mythgame xml reading

Charlie Brej brejc8 at vu.a.la
Sat Sep 4 19:01:53 EDT 2004


Mame since 0.83 has not been supporting -listinfo. This patch reads the -listxml 
format instead. Tested with mame 0.86 and 0.83 .

Couple of points:
I did want to use the Qt xml librarys but these insist on reading and parsing 
the whole file (35Mb) which then fills up all available memory and crashes (even 
on 1Gb machines). Instead the parsing is done by hand. This does make a couple 
assumptions like: no line breaks in the middle of definitions, all definitions 
must start on a new line.

Line buffer has been increased to 20,000 as the longest entry (history of some 
game) is 15,000.

-- 
         Charlie Brej
APT Group, Dept. Computer Science, University of Manchester
Web: http://www.cs.man.ac.uk/~brejc8/ Tel: +44 161 275 6844
Mail: IT302, Manchester University, Manchester, M13 9PL, UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mamehandler.cpp.patch
Type: text/x-patch
Size: 21017 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040905/f0a0143d/mamehandler.cpp.bin


More information about the mythtv-dev mailing list