19 June 2021, 20:54 | #1 |
Registered User
Join Date: Jun 2016
Location: Greece
Posts: 83
|
How to edit a .prefs file manually
Is there a way to edit a .prefs file manually?
I'm preparing an expansion pack for OS 3.2 and I want to have WBPattern.prefs prefilled with a certain picture e.g SYS:Prefs/Pattern/image.iff but instead I get OS3.2:Prefs/Pattern/image.iff I tried editing WBPattern.prefs with FileX but it seems I'm doing something wrong and I can't get it to work. |
19 June 2021, 21:46 | #2 |
Zone Friend
Join Date: Sep 2001
Location: Germany
Posts: 813
|
Under OS3, prefs files are IFF - that's not easy to manipulate manually. Maybe if the strings are exactly the same size (not sure), but otherwise you're out of luck.
|
19 June 2021, 21:47 | #3 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
Prefs files are IFF files. If you are a coder you can use iffparse.library to read or write prefs files. The format is described in include files in the NDK.
|
19 June 2021, 21:51 | #4 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,310
|
Set WBPattern to your needs and save (as) the prefs. That should be all and do the trick.
Last edited by daxb; 20 June 2021 at 11:08. |
19 June 2021, 22:13 | #5 |
Registered User
Join Date: Jun 2016
Location: Greece
Posts: 83
|
Thank you all for your answers, unfortunately, I'm not a coder, but I will see if I can make something out of the NDK.
|
19 June 2021, 23:43 | #6 |
Registered User
Join Date: Jun 2016
Location: Greece
Posts: 83
|
I've managed to edit the file with ChunkEdit, but still, it seems that when using SYS: instead of the volume's name ( e.g OS3.2: ), WBPattern.prefs doesn't work.
|
20 June 2021, 11:34 | #7 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,310
|
Yes, it seems WBPattern always set the volume name. If you set device name SYS: and it doesn't work than WBPattern can only handle volume names, else it could permit device names too.
You can determine volume name of SYS with for example "which sys:" and hack it into wbpattern.prefs but doing that on foreign systems isn't a good idea IMO. I don't know a system friendly way. |
20 June 2021, 15:02 | #8 |
Registered User
Join Date: Jul 2008
Location: Boston, MA
Posts: 952
|
Possible workaround: rename your partition to SYS, save prefs, then rename it back to OS 3.2.
|
20 June 2021, 19:28 | #9 |
Registered User
Join Date: Jun 2016
Location: Greece
Posts: 83
|
I'm working on BestClassicWB (a lightweight expansion pack resembling Classic WB) for OS3.2, and I needed that for setting a WBPattern upon installation. What I ended up doing is renaming the SYS volume name so that it will match the one set in WBPattern prefs
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Manually trigger a IRQ7 interrupt | hwetters | support.FS-UAE | 2 | 03 January 2019 14:03 |
Want a clock, but want to set it manually | tin | support.WinUAE | 10 | 16 May 2016 20:57 |
i can view file picture in ppshow but nothing i hav will let edit it | locksmith | Amiga scene | 9 | 19 September 2015 20:26 |
Generic slave file or edit one..? | spannernick | project.WHDLoad | 0 | 07 May 2012 16:43 |
HOW TO: Picasso96settings prefs file | NubeCheCorre | Coders. Tutorials | 3 | 08 February 2012 22:24 |
|
|