Config file directory paths
Sometimes randomly my c:\users\username\music becomes ..\..\music in WinUAE configuration (directory as a drive MODS: under Amiga) when saving cfg from F12 panel while I'm on WB... Still have to find a reproducible pattern though. I have Italian Windows 10 1803
EDIT: how can I use %USERPROFILE%\music in cfg to make it universal when migrating WinUAE on other Win systems? |
I think someone (perhaps you?) asked this previously. Path is converted when config is loaded, either to canonical absolute or relative path depending on relative mode checkbox. Links, variables etc.. are also resolved at the same time.
Unfortunately this means original path is lost and if config is saved, new resolved path is saved.. This is not easy to fix and many possible "fixes" would only cause confusion (for example GUI would show different path than actual in use path). |
Mmmh, I'd like to enter %USERPROFILE%\Music and Pictures in WinUAE to have them loaded easily in WB even when I move the emulator (e.g. USB pendrive) to another Win PC… Would be a nice feature for portabiltiy, minor priority of course.
What if you simply don't save resolved paths in the cfg file? For the bug itself do you think it might be caused by the fact I accidentally (while 1 copy of WinUAE was already running) a new winuae.exe and quitted? Maybe in this case locked resources are wrongly saved as ..\..\Music instead of C:\users\username\Music.... Have to find a reliable repro-steps |
If WinUAE would keep paths untouched in the cfg file like this when saving cfg, would be perfect (%USERPROFILE%\Music does work):
Code:
hardfile2=rw,DH0:.\WinUAE files\winuae_hd0.vhd,63,8,2,512,0,.\ROMS\SmartFilesystem,uae0 |
As I said: it is not easy without complete config overhaul and it isn't really worth the trouble. It needs some other solution.
EDIT: Delaying resolving until path is used (because then path string is also copied to separate variable) probably solves most problems but then GUI shows original path, not resolved path which can cause confusion. |
winuae.7z now should handle this (but only for hardfile/directory hd paths so far).
Path is not resolved anymore when config is loaded but it is delayed until path is needed and it does not modify original config data path. Harddisk GUI still shows resolved path but config data path is still in unresolved format (=when saving config, original unresolved path is written back to confitg file) and can be seen when opening add/edit harddrive dialog. Note that currently trying to enter path with environment variable(s) directly to GUI path string box results in weird path. Config file must be edited manually if it contains any environment variables. EDIT: Works now. |
Thank you!
|
All times are GMT +2. The time now is 01:16. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.