Remap "Z" to different letter

Here you can discuss the development of patches.

Remap "Z" to different letter

Postby Qbix » 2007-3-14 @ 15:06

Every now and then there is a request to put the internal drive on a different drive then Z

Here is a patch that does this.

20070315: updated, includes ykhwongs umount fix. changed the +1 location
You do not have the required permissions to view the files attached to this post.
Last edited by Qbix on 2007-3-15 @ 11:58, edited 1 time in total.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10547
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Move Z to I (or another drive)

Postby ykhwong » 2007-3-14 @ 16:04

"DOS_SetDrive(toupper('Z') - 'A');" that should be modified for the internal drive to be configurable still remains in dos_programs.cpp.
What do you think about adding an option to set the drive into the dosbox configfile?
ykhwong
Oldbie
 
Posts: 627
Joined: 2004-3-17 @ 15:35

Re: Move Z to I (or another drive)

Postby Dominus » 2007-3-14 @ 19:25

What do you think about adding an option to set the drive into the dosbox configfile?

This would be ideal IMHO but could be a possible source of confusion for people already having problems grasping the mount concept ("huh systemdrive=z? My system is on c:\!" (I'm just making a guess on the systemdrive setting of course :))).
If configurable it should remain a "hidden" setting that doesn't get written on a "config -wc"
User avatar
Dominus
DOSBox Moderator
 
Posts: 7566
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Move Z to I (or another drive)

Postby kekko » 2007-3-14 @ 20:49

Actually current implementation of dosbox drives is a bit far from what people are used to know. I believe the quickest and cleaner way to make dosbox to deal with drives is to remove totally z: drive, there's surely another way to host the commands that z drive hosts (they could be totally hidden); then, dosbox could mount executable dir as c: or ask user to select the drive to mount.
User avatar
kekko
Member
 
Posts: 480
Joined: 2004-3-24 @ 18:56

Re: Move Z to I (or another drive)

Postby wd » 2007-3-14 @ 20:59

You can't remove that drive because command.com needs to be visible
and a fully accessible file.
And if seeing a z:\ is that far from a user's recognition capability he
should use some frontend.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Move Z to I (or another drive)

Postby Qbix » 2007-3-15 @ 07:35

I only added this patch as I made it a few times in the past for a custom build for somebody.
As I thought more people might want to use it I put it here.
I have no plans of making the Z drive configurable using the configuration file.
This patch is for compiletime.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10547
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Move Z to I (or another drive)

Postby Qbix » 2007-3-15 @ 11:59

updated the patch to include ykwongs umount fix
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10547
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Remap "Z" to different letter

Postby xmafia » 2011-2-07 @ 07:38

Hello to all.
Complete Newbie on C programming here.
Where do I place the file configurable_z.diff for me to make it work?
Thanks in advance!
xmafia
Newbie
 
Posts: 3
Joined: 2010-10-14 @ 14:19

Re: Remap "Z" to different letter

Postby Dominus » 2011-2-07 @ 09:48

You don't need to place it anywhere special, but you need to have the dosbox sourcecode, then on the command line cd to the source and then use the patch command. This assumes you have some development environment setup and actually have the patch program.
Most likely you will have to fix some of the patch manually since the patch is very old.
Then you will need to compile dosbox...
So, be sure that you really need this option and it's worth the hassle
User avatar
Dominus
DOSBox Moderator
 
Posts: 7566
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Remap "Z" to different letter

Postby xmafia » 2011-2-08 @ 05:51

Dominus,
Thanks!
Yes I really need to change the directory to drive Z because our old dos program is hardcoded to access drive Z:
xmafia
Newbie
 
Posts: 3
Joined: 2010-10-14 @ 14:19

Re: Remap "Z" to different letter

Postby jomalin » 2011-2-09 @ 10:45

I think it would be good to add a line to DosBox configuration file related to this, to let the user change this easily, something like that:

tempdrive=Z
jomalin
Newbie
 
Posts: 58
Joined: 2010-12-14 @ 11:42

Re: Remap "Z" to different letter

Postby Qbix » 2011-2-09 @ 10:50

There are no games that require this.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10547
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Remap "Z" to different letter

Postby Dominus » 2011-2-09 @ 11:00

Not to mention that clever people will then asign c: to it and will then wonder why there are problems....
People who REALLY need it can change it in code and compile their own version. Especially companies can spare an extra two minutes to compile Dosbox (or if a development environment is needed first, they might need up to three hours).
If you think you need it that bad, then invest the little time to compile our own version - ANYONE can do this
User avatar
Dominus
DOSBox Moderator
 
Posts: 7566
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Remap "Z" to different letter

Postby kolano » 2011-2-11 @ 17:20

Qbix wrote:There are no games that require this.


There may not be games, but there is at least one installer that fails on systems including a Z: drive (i.e. Jurassic Park). See http://www.vogons.org/viewtopic.php?t=13634.
User avatar
kolano
Oldbie
 
Posts: 527
Joined: 2010-12-26 @ 21:03

Re: Remap "Z" to different letter

Postby wd » 2011-2-11 @ 17:48

It's a bug in that installer. Bad luck.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Remap "Z" to different letter

Postby dosapp12 » 2012-7-26 @ 20:36

I am trying to setup DosBox for an older dos program but I need access to the Z-Drive. I am a bit confused on applying this patch. I downloaded Visual Studio and the file above but can not figure out how to patch the program or apply the patch. Do you have a patched version of DosBox that you can upload or know of a version that I can just download? Also I would prefer it to use Drive B for the virtual drive.
User avatar
dosapp12
Newbie
 
Posts: 1
Joined: 2012-7-26 @ 19:20

Re: Remap "Z" to different letter

Postby Qbix » 2012-7-26 @ 20:39

use the SVN and use mount -z B
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10547
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Remap "Z" to different letter

Postby sakinder13 » 2014-9-10 @ 11:26

where should i keep this configurable_z file...
sakinder13
Newbie
 
Posts: 1
Joined: 2014-9-10 @ 11:11


Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 2 guests