English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 19 June 2021, 20:54   #1
samplist
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.
samplist is offline  
Old 19 June 2021, 21:46   #2
Korodny
Zone Friend
 
Join Date: Sep 2001
Location: Germany
Posts: 812
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.
Korodny is offline  
Old 19 June 2021, 21:47   #3
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
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.
thomas is offline  
Old 19 June 2021, 21:51   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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.
daxb is offline  
Old 19 June 2021, 22:13   #5
samplist
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.
samplist is offline  
Old 19 June 2021, 23:43   #6
samplist
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.
samplist is offline  
Old 20 June 2021, 11:34   #7
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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.
daxb is offline  
Old 20 June 2021, 15:02   #8
Matt_H
Registered User
 
Matt_H's Avatar
 
Join Date: Jul 2008
Location: Boston, MA
Posts: 943
Possible workaround: rename your partition to SYS, save prefs, then rename it back to OS 3.2.
Matt_H is online now  
Old 20 June 2021, 19:28   #9
samplist
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
samplist is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:54.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08571 seconds with 13 queries