Write protect configuration files
Hi all.
Is there a way of write protecting my main configuration file so it doesn't accidentally get written over. Tried setting it to read only in Windows but it can still be over written. Taken me a long time to set up hdd and whdload following hours of videos. Really don't want to do it again haha Any advice is much appreciated. I have taken a copy of my current config just in case. |
Make a backup of it by copying and pasting in the same folder?
|
Which configuration file are you referring to?
|
Quote:
|
Doesn't a "configuration.backup" file get created in the path of your Configuration files?
Navigate there in Windows / File Explorer and take a look. |
Quote:
|
Quote:
|
Quote:
"C:\Program Files\WinUAE\winuae64.exe" -f a4000.uae |
Quote:
|
Perhaps Toni could implement "Save Incremental" option like the one in the newer verions of Cinema 4D ie. an option that when saving automatically adds increasing number (counter) as a suffix to filename? Just a thought.
|
Not overwriting read-only files can be added (read protection does nothing because when writing config file, old one is renamed as configuration.backup so there is never any actual overwriting happening)
Config file name is not going to magically change when writing. It would be only annoying. Copying whole configurations directory somewhere safe shouldn't be that difficult :) |
Quote:
Anyway, you are the boss, so it's your decision. |
No new GUI buttons allowed unless it is really needed :)
Warning added. If saving config, file already exists and it is read-only: show yes/no warning dialog. No aborts, yes allows overwrite. |
Quote:
Regarding the OP issue, a simple script to copy/replace the config with a safe backup at WinUAE loading could do the trick I think. |
As mentioned though, when you override a configuration file then "configuration.backup" gets created of the version before the save.
Surely that's enough i.e. one fall back? Personally though, I hate it that WinUAE even does that... if I was to screw up a config, it's not difficult to re-create really. |
Quote:
It is very quick (just a rename so nothing is copied) and practically invisible operation. It can be difficult to re-create configs for example when you have multiple expansions configured. Not everyone boots basic WB or pre-configured games. |
Some of my configs are quite complex Toni, but I know what settings I've used and can re-create easily in a minute maximum.
Plus, as you and I've already said, there's the "configuration.backup" file. So you've already got a fail safe, which I'm sure the OP didn't know about... Surely someone is not silly enough to accidentally override a configuration, and then do it again hence destroying the above though? |
All times are GMT +2. The time now is 19:16. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.