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: Dir2Dat  (Read 12834 times)

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 30.0 Firefox 30.0
    • View Profile
Dir2Dat
« on: 04 July 2014, 11:26 »

Quick question: do you know why Dir2Dat randomly seems to choose either Windows or Unix line endings? I can't figure out the pattern of why it does this, though it does seem to favour Unix.

Any idea why? Or it is possible to add option to choose which every time?

Thanks!
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 7.0 Safari 7.0
    • View Profile
Re: Dir2Dat
« Reply #1 on: 04 July 2014, 18:11 »

erm....this should not happen...which datfile format old deprecated or xml?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.153 Chrome 35.0.1916.153
    • View Profile
Re: Dir2Dat
« Reply #2 on: 06 July 2014, 19:50 »

Any news on this? Can you send me such a file?
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 30.0 Firefox 30.0
    • View Profile
Re: Dir2Dat
« Reply #3 on: 07 July 2014, 09:46 »

Sorry, wasn't around over weekend. Depreciated.

Let me create one and send over in a bit...
« Last Edit: 07 July 2014, 09:47 by Cassiel »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.153 Chrome 35.0.1916.153
    • View Profile
Re: Dir2Dat
« Reply #4 on: 07 July 2014, 09:53 »

yes, please send one...I only had a short look at the code....and it should always write /r/n....a dat can give me an idea where (samples/roms/disks/whatever element) might miss one...
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 30.0 Firefox 30.0
    • View Profile
Re: Dir2Dat
« Reply #5 on: 07 July 2014, 16:21 »

Sorry... got really caught up at work. Will try and send some examples later tonight. Apologies for the delay!
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.153 Chrome 35.0.1916.153
    • View Profile
Re: Dir2Dat
« Reply #6 on: 07 July 2014, 18:36 »

no prob
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.153 Chrome 35.0.1916.153
    • View Profile
Re: Dir2Dat
« Reply #7 on: 07 July 2014, 20:14 »

I just see that the header 'clrmamepro( ....)' elements only have a line feed and no carriage return....the game (...) seem to be ok....Is that what you mean....
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3424
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 35.0.1916.153 Chrome 35.0.1916.153
    • View Profile
Re: Dir2Dat
« Reply #8 on: 07 July 2014, 20:33 »

Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 30.0 Firefox 30.0
    • View Profile
Re: Dir2Dat
« Reply #9 on: 08 July 2014, 09:06 »

You are quick!   :o   I'm embarrassed now for being slow sorting out an example...

I've tested this on a random selection of TOSEC sets (both single rom per and set, and multi rom per set) and seems to work a treat... thank you.
Logged

Zandro

  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 40
  • Operating System:
  • Linux Linux
  • Browser:
  • Chrome 35.0.1916.122 Chrome 35.0.1916.122
    • View Profile
Re: Dir2Dat
« Reply #10 on: 09 July 2014, 06:22 »

Nice... I never openly questioned this, assuming it was part of some dark Linuxy truth where some manager depended on it being structured that way. I mean... I can't be the only one that still opens some things in notepad on a daily basis and curses Microsoft for only ever devolving.... Seriously, still no support for a fundamental means of portraying carriage returns in their baseline editor after 30 years?  Grumblegrumble

Sent from my pillow
Logged

Terra_Cresta

  • Karma: 0
  • Offline Offline
  • Posts: 17
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 30.0 Firefox 30.0
    • View Profile
    • ROM Shepherd
Re: Dir2Dat
« Reply #11 on: 09 July 2014, 19:04 »

Quick question: do you know why Dir2Dat randomly seems to choose either Windows or Unix line endings? I can't figure out the pattern of why it does this, though it does seem to favour Unix.

Any idea why? Or it is possible to add option to choose which every time?

Thanks!
@Cass, I know we've gone round the houses several times regarding scene releases and their line feeds changing when people move their NFO/SFVs from server to server (x0d0a/0d) but is there any value in maintaining consistent line feeds for DAT files?
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 30.0 Firefox 30.0
    • View Profile
Re: Dir2Dat
« Reply #12 on: 10 July 2014, 09:09 »

Yup.... it pisses me right off prepping the next TOSEC release. LOL.

In reality it is not a big deal, most (all?) modern 'ROM' managers can handle either EOL type DAT, I just like to keep all the TOSEC DATs in Windows format rather than Unix for consistency, and therefore it's just ANOTHER thing to check when new DATs get submitted.

Though I guess it does serve a practical purpose when contributors are manualy checking/amending DATs, though I would hope they using something a bit more sophisticated than vanilla Notepad!
Logged
Pages: [1]   Go Up
 

Page created in 0.089 seconds with 20 queries.