1010
1111void CCC_CreateGameSpyAccount::Execute (LPCSTR args)
1212{
13- #ifdef XR_PLATFORM_WINDOWS
1413 if (!args || (xr_strlen (args) == 0 ))
1514 {
1615 TInfo tmp_info;
@@ -38,12 +37,10 @@ void CCC_CreateGameSpyAccount::Execute(LPCSTR args)
3837 prof_data.password = tmp_password;
3938
4039 tmp_acc_mngr->create_profile (tmp_nick, tmp_unick, tmp_email, tmp_password, gamespy_gp::account_operation_cb ());
41- #endif
4240}
4341
4442void CCC_GapySpyListProfiles::Execute (LPCSTR args)
4543{
46- #ifdef XR_PLATFORM_WINDOWS
4744 if (!args || (xr_strlen (args) == 0 ))
4845 {
4946 TInfo tmp_info;
@@ -61,12 +58,10 @@ void CCC_GapySpyListProfiles::Execute(LPCSTR args)
6158 VERIFY (tmp_gp);
6259 gamespy_gp::account_manager* tmp_acc_mngr = MainMenu ()->GetAccountMngr ();
6360 tmp_acc_mngr->get_account_profiles (tmp_email, tmp_password, gamespy_gp::account_profiles_cb ());
64- #endif
6561}
6662
6763void CCC_GameSpyLogin::Execute (LPCSTR args)
6864{
69- #ifdef XR_PLATFORM_WINDOWS
7065 if (!args || (xr_strlen (args) == 0 ))
7166 {
7267 TInfo tmp_info;
@@ -86,24 +81,20 @@ void CCC_GameSpyLogin::Execute(LPCSTR args)
8681 gamespy_gp::login_manager* tmp_lmngr = MainMenu ()->GetLoginMngr ();
8782 VERIFY (tmp_lmngr);
8883 tmp_lmngr->login (tmp_email, tmp_nick, tmp_password, gamespy_gp::login_operation_cb ());
89- #endif
9084}
9185
9286void CCC_GameSpyLogout::Execute (LPCSTR args)
9387{
94- #ifdef XR_PLATFORM_WINDOWS
9588 VERIFY (MainMenu () && MainMenu ()->GetGS ());
9689 gamespy_gp::login_manager* tmp_lmngr = MainMenu ()->GetLoginMngr ();
9790 VERIFY (tmp_lmngr);
9891 tmp_lmngr->logout ();
99- #endif
10092}
10193
10294pcstr print_time (time_t const & src_time, string64& dest_time);
10395
10496void CCC_GameSpyPrintProfile::Execute (LPCSTR args)
10597{
106- #ifdef XR_PLATFORM_WINDOWS
10798 VERIFY (MainMenu () && MainMenu ()->GetGS ());
10899 gamespy_gp::login_manager* tmp_lmngr = MainMenu ()->GetLoginMngr ();
109100 gamespy_gp::profile const * tmp_profile = tmp_lmngr->get_current_profile ();
@@ -117,46 +108,38 @@ void CCC_GameSpyPrintProfile::Execute(LPCSTR args)
117108 {
118109 Msg (" - No profile. You are not loged in." );
119110 }
120- #endif
121111}
122112
123113void CCC_GameSpySuggestUNicks::Execute (LPCSTR args)
124114{
125- #ifdef XR_PLATFORM_WINDOWS
126115 VERIFY (MainMenu () && MainMenu ()->GetGS ());
127116 string256 tmp_unick;
128117 sscanf (args, " %s" , tmp_unick);
129118 gamespy_gp::account_manager* tmp_amngr = MainMenu ()->GetAccountMngr ();
130119 VERIFY (tmp_amngr);
131120 tmp_amngr->suggest_unique_nicks (tmp_unick, gamespy_gp::suggest_nicks_cb ());
132- #endif
133121}
134122
135123void CCC_GameSpyRegisterUniqueNick::Execute (LPCSTR args)
136124{
137- #ifdef XR_PLATFORM_WINDOWS
138125 VERIFY (MainMenu () && MainMenu ()->GetGS ());
139126 gamespy_gp::login_manager::unique_nick_t tmp_unick;
140127 sscanf (args, " %s" , tmp_unick);
141128 gamespy_gp::login_manager* tmp_lmngr = MainMenu ()->GetLoginMngr ();
142129 VERIFY (tmp_lmngr);
143130 tmp_lmngr->set_unique_nick (tmp_unick, gamespy_gp::login_operation_cb ());
144- #endif
145131}
146132
147133void CCC_GameSpyDeleteProfile::Execute (LPCSTR args)
148134{
149- #ifdef XR_PLATFORM_WINDOWS
150135 VERIFY (MainMenu () && MainMenu ()->GetGS ());
151136 gamespy_gp::account_manager* tmp_amngr = MainMenu ()->GetAccountMngr ();
152137 VERIFY (tmp_amngr);
153138 tmp_amngr->delete_profile (gamespy_gp::account_operation_cb ());
154- #endif
155139}
156140
157141void CCC_GameSpyProfile::Execute (LPCSTR args)
158142{
159- #ifdef XR_PLATFORM_WINDOWS
160143 VERIFY (MainMenu ());
161144 gamespy_gp::login_manager* tmp_lmngr = MainMenu ()->GetLoginMngr ();
162145 VERIFY (tmp_lmngr);
@@ -187,5 +170,4 @@ void CCC_GameSpyProfile::Execute(LPCSTR args)
187170 {
188171 Log (" ~ This command is unsupported since old gamespy profile code has been removed from the engine." );
189172 }
190- #endif
191173}
0 commit comments