EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: Starshadow on 28 November 2012, 16:04

Title: Using "Rename Profile" causes XML dat corruption
Post by: Starshadow on 28 November 2012, 16:04
After renaming an XML dat profile via right-click -> "Rename Profile" in the Profiler window, the XML dat becomes corrupted and the profile will no longer load properly. This image (http://www.dropmocks.com/mBnF-v) shows the original dat on the left, and the same dat after being renamed on the right. The problem is the duplicated tags and extra </header> tag after the first </header> tag. Manually removing these repairs the dat. Non-XML dats are not affected. I am using clrmamepro 4.08b x64 on Windows 7 x64.

If I could throw in a somewhat related feature request: it would be nice if upon updating a previously renamed profile with a new dat version, the custom profile name was carried over after the update. Currently the profile name is overridden by the new dat, and any custom name must be re-entered.

Thanks!
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: Roman on 28 November 2012, 22:05
use this:
http://mamedev.emulab.it/clrmamepro/binaries/cmpro20121128.rar (http://mamedev.emulab.it/clrmamepro/binaries/cmpro20121128.rar)
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: Starshadow on 29 November 2012, 00:11
use this:
http://mamedev.emulab.it/clrmamepro/binaries/cmpro20121128.rar (http://mamedev.emulab.it/clrmamepro/binaries/cmpro20121128.rar)

You got it! That build does not cause the corruption. Thanks for the quick fix.
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: oxyandy on 30 November 2012, 00:07
I saw the Topic Title and knew of this 'bug'...

The List of Profiles, does not show the Unicode Dat names,
I went to rename one once to it's correct name and learnt of it..

Downloading it now to see if this is the same..

Still the same, a DAT with a Unicode description doesn't display the correct name.
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: oxyandy on 30 November 2012, 00:19
Test Dat


The description is 哈哈哈
But shows as 'see pic'

(http://ndsxdelta.no-ip.org/name.png)
Title: A Wise man once said, A picture tells a 1000 words..
Post by: oxyandy on 30 November 2012, 05:13

Enough said,

Thanks.
Hope Mrs & Baby are doing well !
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: Roman on 30 November 2012, 08:08
oxyandy, so what are you reporting? A display issue for utf8 dat descriptions in the profiler? ...and a request to make the compressor settings wider?
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: oxyandy on 30 November 2012, 08:37
Hi Roman,
Yes both,
1. Please slightly widen the Compressor settings dialogue.
2. Please see what you can do about making UTF-8 descriptions show in profiler..

Thanks
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: Roman on 30 November 2012, 08:49
ok...can't promise to show something today...more likely next week.....
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: oxyandy on 30 November 2012, 09:15
Ah.. such minor things...
Just tack them onto the end of your 'to do list'
 :P
and thanks..
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: Roman on 30 November 2012, 20:27
Your dat does not have an utf8-bom....
(use e.g. notepad++ to save it as utf8 (with bom) and it shows up fine in the profiler)

It's an old style dat (not xml), so it needs a bom....only XML files are taken as utf8 by default...
Title: Re: Using "Rename Profile" causes XML dat corruption
Post by: oxyandy on 01 December 2012, 10:49
Ah ok, yes that works !
thanks for the work around,
sorry I had not tried with BOM before..

Bye