]> git.jsancho.org Git - lugaru.git/commitdiff
Use the correct registration string for a given platform.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 8 Nov 2009 03:45:16 +0000 (22:45 -0500)
committerRyan C. Gordon <icculus@icculus.org>
Sun, 8 Nov 2009 03:45:16 +0000 (22:45 -0500)
Source/GameInitDispose.cpp

index 4bf7964fc29b944b52ca1efd2ccd6b82ddbcd701..ec56bca6ff460f9f97280c59c2b28d2955e324d9 100644 (file)
@@ -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;