EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Customizing dat  (Read 2698 times)

AntoPISA

  • EMULAB Friend
  • Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 127
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 45.0.2454.93 Chrome 45.0.2454.93
    • View Profile
    • progetto-SNAPS.net
Customizing dat
« on: 22 September 2015, 21:34 »

Hello,
I have a small question / request regarding Dir2Dat: You can not change some fields of XML, such as the "<game name =" in "<machine name =" or "<rom name =" on "<snap name="?
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3284
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 45.0.2454.99 Chrome 45.0.2454.99
    • View Profile
Re: Customizing dat
« Reply #1 on: 22 September 2015, 21:42 »

no you can't (however I guess by now it really should output machine instead of game...will update that).
Of course you can use xslt transformations (or a simply texteditor search/replace macro) to change element names...

Update: ok...for next version I (at least) changed the xml export of dats (dir2dat or setinformation export) to write "machine" instead of "game"

Update 2: well....maybe I need to rethink this a bit....dir2dat is mainly used for non-mame scenarios....and I don't know if the world outside MAME likes the idea of using machine instead of game...
« Last Edit: 22 September 2015, 21:54 by Roman »
Logged

AntoPISA

  • EMULAB Friend
  • Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 127
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 45.0.2454.93 Chrome 45.0.2454.93
    • View Profile
    • progetto-SNAPS.net
Re: Customizing dat
« Reply #2 on: 22 September 2015, 22:05 »

Maybe you can allow the user to choose between the term "game" or "machine", with the second as default.
Edit it xml with an editor is simple, but for me that I create dozens per month, is a job too big!  ;)

In any case, thank you !!!
« Last Edit: 22 September 2015, 22:08 by AntoPISA »
Logged
Pages: [1]   Go Up
 

Page created in 0.158 seconds with 19 queries.

anything