18 February 2021, 10:24 | #1 |
Registered User
Join Date: Feb 2021
Location: Herne Bay
Posts: 4
|
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. |
18 February 2021, 10:31 | #2 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Make a backup of it by copying and pasting in the same folder?
|
18 February 2021, 10:35 | #3 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,254
|
Which configuration file are you referring to?
|
18 February 2021, 11:46 | #4 |
Registered User
Join Date: Feb 2021
Location: Herne Bay
Posts: 4
|
|
18 February 2021, 11:59 | #5 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
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. |
19 February 2021, 10:56 | #6 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,254
|
You can every time do a "Save As" and save adding to the name the date or the type of emulation and have them all available, see screenshot
Last edited by AMIGASYSTEM; 01 March 2021 at 16:54. |
19 February 2021, 11:14 | #7 |
Registered User
Join Date: Feb 2021
Location: Herne Bay
Posts: 4
|
Cool, yeah I'll do something like that. Didn't know if there was a way of locking the configuration file from with winuae. While I'm here, can I get the software to boot straight into my preferred configuration instead of loading it each time? Thanks again.
|
19 February 2021, 11:57 | #8 | |
Not a Rebel anymore
Join Date: Apr 2005
Location: UK
Age: 51
Posts: 500
|
Quote:
"C:\Program Files\WinUAE\winuae64.exe" -f a4000.uae |
|
19 February 2021, 13:58 | #9 |
Registered User
Join Date: Feb 2021
Location: Herne Bay
Posts: 4
|
|
23 February 2021, 09:55 | #10 |
Registered User
Join Date: Sep 2004
Location: Croatia
Age: 48
Posts: 54
|
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.
|
23 February 2021, 17:17 | #11 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
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 |
23 February 2021, 20:13 | #12 | |
Registered User
Join Date: Sep 2004
Location: Croatia
Age: 48
Posts: 54
|
Quote:
Anyway, you are the boss, so it's your decision. |
|
24 February 2021, 19:51 | #13 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
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. |
24 February 2021, 22:50 | #14 | |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,935
|
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. |
|
25 February 2021, 00:33 | #15 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
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. |
25 February 2021, 16:56 | #16 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
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. |
|
25 February 2021, 18:55 | #17 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
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? Last edited by DamienD; 25 February 2021 at 19:03. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Write-protect a partition | TuKo | support.Apps | 2 | 14 August 2019 18:38 |
Configuration files | amiga_Forever | support.FS-UAE | 1 | 14 May 2017 16:07 |
How do I turn write protect off? | methodman | New to Emulation or Amiga scene | 1 | 24 April 2016 20:02 |
Removing write protection from files | NovaCoder | New to Emulation or Amiga scene | 1 | 29 November 2008 04:37 |
disc write protect = default | Melroc | request.UAE Wishlist | 3 | 07 April 2004 19:54 |
|
|