diff --git a/ba/autorun.cpp b/ba/autorun.cpp index f24ec4c92..ec99abe3e 100755 --- a/ba/autorun.cpp +++ b/ba/autorun.cpp @@ -11,7 +11,7 @@ extern "C" { #include "../include/hlapi_c.h" -#include "../include/skeytsr.h" +#include "../include/skeylink.h" } void ErrorBox(LPCSTR str) @@ -95,7 +95,7 @@ unsigned int EutronLogin(int& year) if (eutron_key.status == ST_OK) { eutron_key.net_command = NET_KEY_ACCESS; - memcpy(&eutron_key.command, BLOCK_READING_MODE, 2); + eutron_key.command = BLOCK_READING_MODE; int* pointer = (int*)(&eutron_key.data[0]); int* number = (int*)(&eutron_key.data[2]); *pointer = 0; // Posizione in cui leggere @@ -152,7 +152,6 @@ int VersionYear() { char ver[32]; GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "./eurocampo/zip/install.ini"); - ver[4] = '\0'; return atoi(ver); } @@ -174,7 +173,6 @@ bool DongleTest() bool ok = FALSE; ifstream keys("./eurocampo/zip/dninst.zip", ios::in | ios::nocreate); - if (keys.good()) { char line[256]; @@ -271,7 +269,6 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) RECT rct; const char* s1 = "Installa EUROCAMPO in versione commerciale protetta. E' necessario disporre di una chiave di protezione hardware."; const char* s2 = "Installa EUROCAMPO in versione Demo. La versione Demo è priva di protezione hardware ma soggetta ad alcune limitazioni."; - const char* s4 = "Termina installazione"; const char* s5 = "Scelta installazione"; @@ -315,7 +312,6 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { if (DongleTest()) Run("eurocampo\\disk1\\setup.exe"); - } else if (wParam == 1001) {