MapTool: directory file separators?

Progress reports and musings from the developers on the current gaming tools.

Moderators: dorpond, trevor, Azhrei

Post Reply
User avatar
Blakey
Dragon
Posts: 778
Joined: Fri Mar 23, 2007 11:27 am
Location: Sussex, UK.

MapTool: directory file separators?

Post by Blakey »

Hey all,

Does MapTool explicitly set the directory file separator to '/'?

I'm asking because I can now create tokens (yay!) but when I come to save any token into a file I have just created, it fails. The failure is because it cannot match the assets on the token in memory with the assets in my token on disk. And I believe the reason is that the assets of the token in memory are held as "asset/<md5key>" and mine are held as "asset\\<md5key>".

I'm developing on Windows but am hard coding all my file separators as '/', yet the JVM is, I guess, converting them to '\\' as I'm on windows.

Any way around this?

Cheers
Blakey
The guy in the green hat.

Post Reply

Return to “Developer Notes”