Skip to content

Commit

Permalink
1.1 Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gh0stless committed Oct 3, 2022
1 parent a7b7cc9 commit bef4692
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Binary file added externals/SID.mxe64
Binary file not shown.
6 changes: 5 additions & 1 deletion package-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
16 changes: 16 additions & 0 deletions source/SID.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#endif
#include "SID.h"


const char* version = "v.1.1";

void ext_main(void *r)
Expand Down Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit bef4692

Please sign in to comment.