Save authkey to authkey.dev so that we don't overwrite the released version
authorJohn <John@9244cb4f-d52e-49a9-a756-7d4e53ad8306>
Sat, 12 Jun 2010 08:19:04 +0000 (08:19 +0000)
committerJohn <John@9244cb4f-d52e-49a9-a756-7d4e53ad8306>
Sat, 12 Jun 2010 08:19:04 +0000 (08:19 +0000)
multiwinia/code/UI/GameMenuWindow.cpp
multiwinia/code/UI/PlayDemoAuthkeyButton.h
multiwinia/code/app.cpp

index 69cb7960e1c348e2ffdc6e1f518e5ceab77a0672..1e7ae4fb59eb77a937ffffcaa7f88baf0e203b08 100644 (file)
@@ -4986,7 +4986,7 @@ void GameMenuWindow::PasteFromClipboard()
                char path[512];\r
                strcpy( path, g_app->GetProfileDirectory() );\r
                char fullFileName[512];\r
-               sprintf( fullFileName, "%sauthkey", path );\r
+               sprintf( fullFileName, "%sauthkey.dev", path );\r
 \r
         Authentication_SetKey( m_authKey );\r
         Authentication_SaveKey( m_authKey, fullFileName );\r
index 165dc4293d0fb7a253f78fbe561e28f7013e58cf..53ccae479caf722532f57eb3694245c48e7c2c85 100644 (file)
@@ -24,7 +24,7 @@ public:
         if( authStatus == AuthenticationAccepted )\r
         {\r
             char fullFileName[512];\r
-            snprintf( fullFileName, sizeof(fullFileName), "%sauthkey", g_app->GetProfileDirectory() );\r
+            snprintf( fullFileName, sizeof(fullFileName), "%sauthkey.dev", g_app->GetProfileDirectory() );\r
             fullFileName[sizeof(fullFileName) - 1] = '\0';\r
 \r
             Authentication_SetKey( parent->m_authKey );\r
index 7b772f84a50b94c3731febc8a098f6c654637ecb..24c6dd4639ff89d2741047cc1940f1b579ebb392 100644 (file)
@@ -474,7 +474,7 @@ void App::InitMetaServer()
 \r
        strcpy( path, GetProfileDirectory() );\r
        char fullFileName[512];\r
-       sprintf( fullFileName, "%sauthkey", path );\r
+       sprintf( fullFileName, "%sauthkey.dev", path );\r
 \r
        Authentication_LoadKey( key, fullFileName );\r
        Authentication_SetKey( key );\r