Subversion Repositories Games.Chess Giants

Rev

Rev 59 | Rev 119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59 Rev 83
Line 113... Line 113...
113
   options.network.want_publicchat = (INIFile_ReadEntryAsBool (inifile, L"network", L"show public chat", true) > 0);
113
   options.network.want_publicchat = (INIFile_ReadEntryAsBool (inifile, L"network", L"show public chat", true) > 0);
114
   options.network.want_motdonconnect = (INIFile_ReadEntryAsBool (inifile, L"network", L"show MOTD on connect", true) > 0);
114
   options.network.want_motdonconnect = (INIFile_ReadEntryAsBool (inifile, L"network", L"show MOTD on connect", true) > 0);
115
 
115
 
116
   // [registration]
116
   // [registration]
117
   READ_WIDESTRING (options.registration.user_email, inifile, L"registration", L"user email", L"");
117
   READ_WIDESTRING (options.registration.user_email, inifile, L"registration", L"user email", L"");
118
   options.registration.activation_code = INIFile_ReadEntryAsLong (inifile, L"registration", L"activation code", 0);
118
   options.registration.activation_code = (unsigned __int32) INIFile_ReadEntryAsLong (inifile, L"registration", L"activation code", 0);
119
 
119
 
120
   // [smilies]
120
   // [smilies]
121
   smilies = NULL;
121
   smilies = NULL;
122
   smiley_count = 0;
122
   smiley_count = 0;
123
   while ((smiley_name = INIFile_GetEntryName (inifile, L"smilies", smiley_count)) != NULL)
123
   while ((smiley_name = INIFile_GetEntryName (inifile, L"smilies", smiley_count)) != NULL)
Line 297... Line 297...
297
   INIFile_WriteEntryAsBool (inifile, L"network", L"show public chat", options.network.want_publicchat);
297
   INIFile_WriteEntryAsBool (inifile, L"network", L"show public chat", options.network.want_publicchat);
298
   INIFile_WriteEntryAsBool (inifile, L"network", L"show MOTD on connect", options.network.want_motdonconnect);
298
   INIFile_WriteEntryAsBool (inifile, L"network", L"show MOTD on connect", options.network.want_motdonconnect);
299
 
299
 
300
   // [registration]
300
   // [registration]
301
   WRITE_WIDESTRING (L"registration", L"user email", options.registration.user_email);
301
   WRITE_WIDESTRING (L"registration", L"user email", options.registration.user_email);
302
   INIFile_WriteEntryAsLong (inifile, L"registration", L"activation code", options.registration.activation_code);
302
   INIFile_WriteEntryAsLong (inifile, L"registration", L"activation code", (long) options.registration.activation_code);
303
 
303
 
304
   // [smilies]
304
   // [smilies]
305
   for (smiley_index = 0; smiley_index < smiley_count; smiley_index++)
305
   for (smiley_index = 0; smiley_index < smiley_count; smiley_index++)
306
   {
306
   {
307
      smiley = &smilies[smiley_index]; // quick access to smiley
307
      smiley = &smilies[smiley_index]; // quick access to smiley