23 January 2019, 19:42 | #1 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Query about file paths in configurations - can they be relative?
I have paths in all my configurations pointing to hard drive folders, archives acting as hard drives, ROMs, floppy disks, etc, etc. All of them are what I call "absolute", like this:
Code:
C:\Users\Foebane\Amiga\Games\[Game example].lha Code:
WinUAE config path = "C:\Users\Foebane\Amiga\Games" The reason I have is that for example, all my configs work fine if the Windows User Account is Foebane, but if that changed on a re-install of Windows, I'd have to change all of my configurations to the new name. So is a relative path possible in configs? |
23 January 2019, 19:50 | #2 | ||
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Of course it is; that's what I use in settings and configuration files
My WinUAE setup is sitting in "C:\WinUAE" but I can move it anywhere i.e. "D:\Rubbish" or whatever due to using relative paths. For example, the settings stored in the registry (am only listing a few settings): Quote:
Quote:
Last edited by DamienD; 24 January 2019 at 00:57. |
||
23 January 2019, 20:22 | #3 | |||
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
With storing stuff in "C:\Users\<username>", it can become a bit tricky, but you could do something like:
This: Quote:
Quote:
Quote:
Last edited by DamienD; 23 January 2019 at 20:29. |
|||
23 January 2019, 21:13 | #4 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
I'd love to put the Amiga folder in the C:\ root. I think I'll try it tomorrow. Technically, if all my files are accessible from the WinUAE icon, I don't need to worry so much about accessing them in Explorer. |
|
23 January 2019, 21:18 | #5 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
So you have:
What happens if you wanted to run everything from say a USB stick without having to change settings / lines in configuration files? Anyway, enough from me in this thread... I've given you good suggestions to think about |
|
23 January 2019, 21:33 | #6 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
However, the %USERPROFILE% tip I will be implementing tomorrow, that's so useful. |
|
23 January 2019, 21:37 | #7 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
...then why do you care if everything isn't using relative paths?
That's the main reason for making things relative i.e. portability A USB stick was just an example... I mean portability to anywhere i.e. a different base directory name / location, a totally different drive etc. |
23 January 2019, 22:00 | #8 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
But your advice about the % stuff was useful. |
|
24 January 2019, 17:18 | #9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
It can only work if you have win32.hardfile_path=<base path> in same config file which probably isn't what you wanted..
win32.rom_path, win32.floppy_path, win32.hardfile_path and win32.cd_path can be listed more than one time in config file and if matching rom/floppy/hdf/directory/cd config entry isn't found in current directory, path is prefixed with _path file until valid path is found (or no path found). It is much easier to make all configs relative to winuae path. It does not need to be inside winuae directory, for example something like ..\..\directory_2_levels_outside_of_winuae_path\path\to\game.lha should work. Actually path does not need to be relative to winuae.exe, you can use -datapath command line to set winuae's "current directory". This probably is easiest solution. |
24 January 2019, 17:50 | #10 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
I've moved my main Foebane data folder from C:\Users\Foebane\Foebane to C:\Foebane, makes things easier. What I like is that essentially, my Amiga folder is on the same level as WinUAE, but on different paths, namely:
C:\Foebane\Amiga C:\Program Files (x86)\WinUAE I have put things this way as it will at least lead to a shorter path, and it's independent of the User accounts on Windows. And if down the road, even the C: drive isn't the same on a different computer, I can change to the % variable DamienD suggested. My only issue is that I wonder if I should be storing files in the C: root together with the main Windows system folder etc, but I think they tell PC newbies to avoid that. But I'm an experienced Windowsphile. |
24 January 2019, 18:36 | #11 |
Old retro god.
Join Date: Apr 2002
Location: Northolt, West London
Age: 62
Posts: 857
|
I never separate an Emulator from its roms/ disks/ images / etc, Always one folder with all inside in various sub folders..
Way too easy to lose stuff which is why I don't like emulators using the USER area to store configs, saves etc as you can so easily forget to move those if you install a new disks or as I like to do, refresh Windows from time to time to remove the unwanted junk I've played around with and deleted mostly. Nothing worse than firing up your new cleaned out Win install and go play a game only to find you forgot the users dirs etc for saves etc and you now have to start again or just sob Technically its always been deemed safer to use a separate drive for Windows and your programs but its not really an issue as from day one PC wise a C:\ was the source for all your stuff as disks drives back then were pretty damn expensive. The only annoyance I have with Win7 is that bloody always expanding Winsxs folder in the windows dir, if you have a small drive it starts to be a pain but although I have bigger drives I don't have any other SSD drives as yet and I love those speedy little buggers. Last edited by Mclane; 24 January 2019 at 18:43. |
24 January 2019, 18:55 | #12 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
I keep WinUAE in C:\Program Files (x86) simply so I can update it when a new version comes out, none of the information I mentioned above is kept there. Then, when WinUAE is extracted to its folder, with nothing else added, I simply pin the exe to the taskbar and point WinUAE to my Amiga folder for configurations, etc in Paths. It's really quite straightforward. |
|
24 January 2019, 20:11 | #13 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
You can extract into "C:\Foebane" so it's all in the same folder. ...but having all your collection i.e. "ROMs, disks, images, all the configurations, System.hdf" in one folder without sub-directories to organise things must be a real nightmare to manage... |
|
24 January 2019, 20:25 | #14 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
Sorry, I didn't mention that the Amiga folder is the root, and I do have several subdirectories: Code:
C: | Foebane | | Amiga | | | Demos | | | Games | | | Kickstart | | | System | | | Workbench Games contains a WHDLoad subfolder with room for a second subfolder for ADFs if I wish. Kickstart is where the ROMs are, and WinUAE points directly to it. System is where the System.hdf (ClassicWB Lite) goes. Workbench is simply the Workbench 3.1 ADFs I use when setting up ClassicWB Lite. |
|
24 January 2019, 22:11 | #15 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
This tip certainly solves a problem that (as far as I know) couldn't be solved with configurations such as A500 quickstart and so forth, so when I used these ones before, I always had to manually set the path in the file requester. But now these shortcuts with this parameter do what I always wanted with these particular configs. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Relative paths in FS-UAE / CD32 config file not working | zardoz | support.FS-UAE | 1 | 26 May 2018 21:23 |
Relative files paths in a WinUAE configuration file | Vollldo | support.WinUAE | 9 | 29 March 2016 23:27 |
Trying to have portable configuration, relative paths relative to C:\Public\... ? | Turrican | support.WinUAE | 3 | 24 June 2011 16:33 |
Relative paths (WAS: Has anybody ever gotten Shiftrix to work?) | rsn8887 | support.WinUAE | 9 | 27 August 2010 06:56 |
Relative paths | Toni Wilen | request.UAE Wishlist | 0 | 16 August 2009 16:06 |
|
|