AminetAminet
Search:
84495 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/wb/parsesmprefs.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Tiny screenmode get/set
Author:megacz at usa.com
Uploader:megacz usa com
Type:util/wb
Version:0.1
Requires:68020+/os2.04+
Architecture:m68k-amigaos
Date:2009-03-25
Download:http://aminet.net/util/wb/parsesmprefs.lha - View contents
Readme:http://aminet.net/util/wb/parsesmprefs.readme
Downloads:631

parsesmprefs-0.1
------------------

---

This is basic 'screenmode.prefs' parser, it is able to show mode id
and depth values(it can also set them).

---

NOTES:

Requires 68020(no FPU)+, OS 2.04+, 4096+ bytes of memory

---

HELP:

 *** template: parsesmprefs <file/a> [depth/s] [newmodeid] [newdepth]

               <file/a>  -  'screenmode.prefs' file.

              [depth/s]  -  show depth rather tht mode id

            [newmodeid]  -  new mode id to be set, value(hex)
                            must be aligned to 8 - this option
                            will cause proggy to save to file

             [newdepth]  -  new depth to be set, value(hex)
                            must be aligned to 4 - this option
                            is helper only therefore no save
                            will take place!

                            Hexadecimals must be passed without
                            prefixes($ or 0x)!

---

EXAMPLES:

   ; get mode id
   parsesmprefs env:sys/screenmode.prefs

   ; get depth
   parsesmprefs env:sys/screenmode.prefs depth

   ; change mode id to DblNTSC Hires No Flicker and depth to 128 colors
   parsesmprefs env:sys/screenmode.prefs 00099004 0007

   ; change mode id only
   parsesmprefs env:sys/screenmode.prefs 00099004

   ; change depth only to 256 colors
   SET previoussm `parsesmprefs env:sys/screenmode.prefs`
   parsesmprefs env:sys/screenmode.prefs $previoussm 0008

---
megacz at usa.com
  


Contents of util/wb/parsesmprefs.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  969    1496  64.8% -lh5- a213 Feb 26 01:31 parsesmprefs-0.1/parsesmprefs
[generic]                 1360    4705  28.9% -lh5- 9c1d Feb 26 01:31 parsesmprefs-0.1/parsesmprefs.c
[generic]                  551    1466  37.6% -lh5- 2c85 Mar 26 00:09 parsesmprefs-0.1/parsesmprefs.readme
[generic]                  288     500  57.6% -lh5- bba2 Feb 25 20:16 parsesmprefs-0.1/SMakefile
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    3168    8167  38.8%            Mar 25 18:57

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>