amiga/SniffEmu/README.md

78 lines
1.6 KiB
Markdown
Raw Normal View History

2023-02-16 20:15:00 +00:00
# SniffEmu
2023-02-25 13:41:47 +00:00
Amiga CLI tool to "detect" if the system is running in emulator.
2023-02-16 20:15:00 +00:00
## Description
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.
2023-02-25 13:41:47 +00:00
Usage: SniffEmu HELP/S RTG/S SND/S MODE
2023-02-16 20:15:00 +00:00
`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.
2023-02-25 13:41:47 +00:00
`SND/S` allows you to look for the emulator's sound card. This currently works
only with `UAESND` card in WinUAE.
2023-02-16 20:15:00 +00:00
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) 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+
## Changelog
2023-02-27 18:52:31 +00:00
Version 1.1.1 (27.02.2023)
* Added missing `CloseLibrary()` call to close _expansion.library_.
Reported by Tj de Wolff
2023-02-25 13:41:47 +00:00
Version 1.1.0 (25.02.2023)
* Added sound card detection.
2023-02-16 20:15:00 +00:00
Version 1.0.0 (16.02.2023)
* Initial release.
## Contributing
If you think you found a bug or want to send a patch, feel free to contact
me through e-mail.
## Author
2023-02-25 13:41:47 +00:00
SniffEmu is developed by [Tomek Wójcik](https://www.bthlabs.pl/).
2023-02-16 20:15:00 +00:00
## License
2023-02-25 13:41:47 +00:00
SniffEmu is licensed under the MIT License.