[SniffEmu] v1.1.1

This commit is contained in:
Tomek Wójcik 2023-02-27 19:52:31 +01:00
parent 4638927f13
commit 8f1134622a
6 changed files with 30 additions and 10 deletions

View File

@ -50,6 +50,11 @@ AmigaOS 3.1+, MC68020+
## Changelog ## Changelog
Version 1.1.1 (27.02.2023)
* Added missing `CloseLibrary()` call to close _expansion.library_.
Reported by Tj de Wolff
Version 1.1.0 (25.02.2023) Version 1.1.0 (25.02.2023)
* Added sound card detection. * Added sound card detection.

View File

@ -42,6 +42,11 @@ SniffEmu is licensed under the MIT License.
Changelog Changelog
--------- ---------
Version 1.1.1 (27.02.2023)
* Added missing CloseLibrary() call to close expansion.library.
Reported by Tj de Wolff
Version 1.1.0 (25.02.2023) Version 1.1.0 (25.02.2023)
* Added sound card detection. * Added sound card detection.

Binary file not shown.

View File

@ -81,20 +81,25 @@ int help() {
int find_board(int manufacturer, int product) { int find_board(int manufacturer, int product) {
int result = RETURN_OK; int result = RETURN_OK;
printf("SniffEmu: Looking for board: %d:%d... ", manufacturer, product);
if (ExpansionBase = (struct ExpansionBase *)OpenLibrary(EXPANSIONNAME, 0L)) { if (ExpansionBase = (struct ExpansionBase *)OpenLibrary(EXPANSIONNAME, 0L)) {
struct ConfigDev* cd = NULL; struct ConfigDev* cd = NULL;
printf("SniffEmu: Looking for board: %d:%d... ", manufacturer, product);
while (cd = FindConfigDev(cd, manufacturer, product)) { while (cd = FindConfigDev(cd, manufacturer, product)) {
result = RETURN_WARN; result = RETURN_WARN;
} }
}
CloseLibrary(ExpansionBase);
if (result == RETURN_WARN) {
printf("FOUND\n"); if (result == RETURN_WARN) {
printf("FOUND\n");
} else {
printf("NOT FOUND\n");
}
} else { } else {
printf("NOT FOUND\n"); printf("SniffEmu: Could not open expansion.library!\n");
result = RETURN_FAIL;
} }
return result; return result;

View File

@ -1,8 +1,8 @@
#ifndef __SNIFFEMU_H__ #ifndef __SNIFFEMU_H__
#define __SNIFFEMU_H__ #define __SNIFFEMU_H__
#define VERSION "1.1.0" #define VERSION "1.1.1"
#define DATE "25.02.2023" #define DATE "27.02.2023"
#define APP_VSTRING "$VER: SniffEmu " VERSION " (" DATE ")" #define APP_VSTRING "$VER: SniffEmu " VERSION " (" DATE ")"

View File

@ -2,7 +2,7 @@ Short: Check if system is running in emulator
Author: Tomek Wójcik <contact@bthlabs.pl> Author: Tomek Wójcik <contact@bthlabs.pl>
Uploader: Tomek Wójcik <contact@bthlabs.pl> Uploader: Tomek Wójcik <contact@bthlabs.pl>
Type: util/sys Type: util/sys
Version: 1.1.0 Version: 1.1.1
Architecture: m68k-amigaos Architecture: m68k-amigaos
Requires: AmigaOS 3.1+, MC68020+ Requires: AmigaOS 3.1+, MC68020+
@ -50,6 +50,11 @@ SniffEmu is licensed under the MIT License.
Changelog Changelog
--------- ---------
Version 1.1.1 (27.02.2023)
* Added missing CloseLibrary() call to close expansion.library.
Reported by Tj de Wolff
Version 1.1.0 (25.02.2023) Version 1.1.0 (25.02.2023)
* Added sound card detection. * Added sound card detection.