💾 Archived View for cugi.ie › aminet › 1677390248.gmi captured on 2023-11-14 at 08:33:14. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

Check if system is running in emulator

   Author:       Tomek Wójcik <contact at bthlabs.pl>
   Uploader:     Tomek Wójcik <contact bthlabs pl>
   Type:         util/sys
   Version:      1.1.0
   Requires:     AmigaOS 3.1+, MC68020+
   Architecture: m68k-amigaos
   Date:         2023-02-25
   Readme:       http://aminet.net/util/sys/SniffEmu.readme
   Downloads:    105

http://aminet.net/util/sys/SniffEmu.lha

SniffEmu by BTHLabs

SniffEmu is a small CLI tool to "detect" if the system is running in

emulation-like environment, e.g. UAE. I use it to conditionally execute parts

of Startup-Sequence, e.g. to can skip FBlit when the OS is booting on PiStorm.

Usage: SniffEmu HELP/S RTG/S SND/S MODE

MODE is one of EMU68, UAE or MUSASHI. RTG/S allows you to specifically look

for the emulator's RTG card, so you can e.g. set up the proper screen mode.

SND/S allows you to look for the emulator's sound card. This currently works

only with UAESND card in WinUAE.

Example:

SniffEmu EMU68

SniffEmu: Looking for board: 28019:-1... NOT FOUND

SniffEmu RTG UAE

SniffEmu: Looking for board: 2011:96... FOUND

If the emulator (or RTG/SND) was detected, the program will set the returncode

to WARN. Otherwise, it'll be OK.

Example script:

C:SniffEmu RTG UAE >NIL:

If WARN

Echo "Found UAE RTG!"

EndIf

Note: MUSASHI support is currently untested. If anybody uses it, let me know

about the results ;).

Requirements: AmigaOS 3.1+, MC68020+

SniffEmu is developed by Tomek Wójcik

SniffEmu is licensed under the MIT License.

Changelog

---------

Version 1.1.0 (25.02.2023)

* Added sound card detection.

Version 1.0.0 (16.02.2023)

* Initial release.

Contents of util/sys/SniffEmu.lha

PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 1167    1484  78.6% -lh5- 6d9a Feb 25 13:23 SniffEmu.info
[unknown]                  710    1245  57.0% -lh5- aabb Feb 25 14:25 SniffEmu/Readme
[unknown]                  923    1312  70.4% -lh5- 444f Feb 25 13:23 SniffEmu/Readme.info
[unknown]                 5494    9240  59.5% -lh5- 13dc Feb 25 14:31 SniffEmu/SniffEmu
[unknown]                 1171    1484  78.9% -lh5- fe49 Feb 25 13:23 SniffEmu/Source.info
[unknown]                  179     329  54.4% -lh5- 172d Feb 25 13:23 SniffEmu/Source/Makefile
[unknown]                 1881    5714  32.9% -lh5- 91da Feb 25 14:31 SniffEmu/Source/SniffEmu.c
[unknown]                  229     613  37.4% -lh5- c774 Feb 25 13:52 SniffEmu/Source/SniffEmu.h
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         8 files   11754   21421  54.9%            Feb 26 05:44

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