diff --git a/externals/SID.mxe64 b/externals/SID.mxe64 new file mode 100644 index 0000000..1be3736 Binary files /dev/null and b/externals/SID.mxe64 differ diff --git a/package-info.json b/package-info.json index e54959b..51aaf4d 100644 --- a/package-info.json +++ b/package-info.json @@ -5,8 +5,12 @@ "max_version_min" : "7.1", "max_version_max" : "none", "name" : "SID-Object", "os" : { + "macintosh" : { + "platform" : [ "x64" ], + "min_version" : "none" + }, "windows" : { - "platform" : [ "ia32", "x64" ], + "platform" : [ "x64" ], "min_version" : "7" } }, diff --git a/source/SID.c b/source/SID.c index 79e630f..931e0b1 100644 --- a/source/SID.c +++ b/source/SID.c @@ -14,6 +14,7 @@ #endif #include "SID.h" + const char* version = "v.1.1"; void ext_main(void *r) @@ -214,6 +215,20 @@ void *sid_new(long n) // n = int argument typed into object box (A_DEFLONG) -- mytypestring[0] = 0; mytype = HardSID_GetSIDType(x->My_Device); switch (mytype) { +#if defined(_WIN32) || defined(_WIN64) + case 0: + strcpy_s(mytypestring,8, "unknown"); + break; + case 1: + strcpy_s(mytypestring,5, "6581"); + break; + case 2: + strcpy_s(mytypestring,5, "8580"); + break; + default: + strcpy_s(mytypestring,6, "error"); +#endif +#if defined(__APPLE__) case 0: stpcpy(mytypestring, "unknown"); break; @@ -225,6 +240,7 @@ void *sid_new(long n) // n = int argument typed into object box (A_DEFLONG) -- break; default: stpcpy(mytypestring, "error"); +#endif } post("SID: info: using device No.: %ld with serial: %s, a %s SID Chip are detected", x->My_Device, serial, mytypestring);