From: Ryan C. Gordon Date: Sun, 8 Nov 2009 03:45:16 +0000 (-0500) Subject: Use the correct registration string for a given platform. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=04b5ba806de1bc772da574a8cacad0c2d2f001cf;p=lugaru.git Use the correct registration string for a given platform. --- diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index 4bf7964..ec56bca 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -1008,8 +1008,14 @@ void Game::InitGame() longnum=num2+num1*100000000; char tempstring[256]; + #if defined(__APPLE__) + sprintf (tempstring, "%s", registrationname); + #elif defined(_MSC_VER) || defined(__linux__) sprintf (tempstring, "%s-windows", registrationname); - longnuma = MD5_string ( tempstring); + #else + #error Please make sure you have the right registration key stuff here! + #endif + longnuma = MD5_string ( tempstring); num1a = longnuma/100000000; num2a = longnuma%100000000; //if(num1a==num1&&num2a==num2)registered=1;