From 04b5ba806de1bc772da574a8cacad0c2d2f001cf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 7 Nov 2009 22:45:16 -0500 Subject: [PATCH] Use the correct registration string for a given platform. --- Source/GameInitDispose.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.5