VOGONS


First post, by mcbarlo

User metadata
Rank Newbie
Rank
Newbie

I have compiled DOSBox 0.62 for MorphOS. It works but I have one big problem. All names of directories and files looks like this: ~1, ~2, ~3, etc. I can access to my data but I must remember his names. In Norton Commander and 'dir' command this problem exists.
Which part of code generates names of dir/files?

Reply 1 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dos uses a 8.3 standard and hence dosbox.
nothing you can do about it.
(it's what you get from emulating dos)

I think you mean

abcdef~1
abcdef~2

or is it different ? pure
~1
~2
?
it that is the case post the real filenames here.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 7, by mcbarlo

User metadata
Rank Newbie
Rank
Newbie

I have done screenshot. This is best method to show you problem.

http://www.integradesign.org/temp/dosbox.png

Watch out - slow server.

In the left is my port of DOSBox 0.61, in the right you can see new DOSBox. They're running in the same mounted location.

I hope you understand, my english is terrible. 😒

Reply 3 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

yes that is very curious errror.

The ~1 names are created by the following sourcefile
dosbox/src/dos/drive_cache.cpp

the following link will display all changes in the code from 0.61 to 0.62

you want to look at portion around line 176. maybe reverting that fixes it.
If it does please tell us
http://cvs.sourceforge.net/viewcvs.py/dosbox/ … r1=1.38&r2=1.32

at first i would suggest removing that part.
if that makes it work please post your directory seperator and which type of system is used. (is it linux like/windows like etc)

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 7, by mcbarlo

User metadata
Rank Newbie
Rank
Newbie

I remove this part of code - nothing changed.
I use this file from 0.61 (after few fixes) - the same effect.

My system isn't Linux or Windows like but we can tell that is Linux style beacuse I have installed GeekGadgets (Unix env).

Directories in MorphOS:

device:directory/another_directory/file

I saw one more strange thing. All entries is interpreting like dirs.

Reply 5 of 7, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

Directories in MorphOS:

device:directory/another_directory/file

":" is an illegal char in DOS filenames. Could it be possible that DosBox somehow gets the full path and is confused by the ":"? Did anything else change? (dosbox config, system compiler, SDL library, mount commands -- anything?)

Reply 6 of 7, by mcbarlo

User metadata
Rank Newbie
Rank
Newbie

I mean problem isn't exists in drive_cache.cpp but probably in drive_local.cpp. Why? I checked what is puted in GetExpandName(). This is ~1, ~2, ~3... I look at this code for short time so I can wrong.

Please help me, DOSBox 0.62 is great but with this bug is makes it completely unusable. 🙁

Are you planning JIT for PowerPC?

Reply 7 of 7, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator
mcbarlo wrote:

Please help me, DOSBox 0.62 is great but with this bug is makes it completely unusable. 🙁

Are you planning JIT for PowerPC?

Well, as far as I know, nobody from developers uses MorphOS (just Linux or Windows).
So it would be useful if some programmer working with MorphOS had a look on it and submitted patch if necessary ...

As for JIT for PowerPC: I think all developers are on Intel compatible processors, so my guess is that answer is no (though I did not talk about it with developers).

Mirek