Rev 11 | Rev 29 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 11 | Rev 14 | ||
|---|---|---|---|
| Line 88... | Line 88... | ||
| 88 | READ_WIDESTRING (options.network.login, L"network", L"login", L"guest"); |
88 | READ_WIDESTRING (options.network.login, L"network", L"login", L"guest"); |
| 89 | READ_WIDESTRING (options.network.password, L"network", L"password", L""); |
89 | READ_WIDESTRING (options.network.password, L"network", L"password", L""); |
| 90 | options.network.want_servermessages = (INIFile_ReadEntryAsBool (inifile, L"network", L"show server messages", true) > 0); |
90 | options.network.want_servermessages = (INIFile_ReadEntryAsBool (inifile, L"network", L"show server messages", true) > 0); |
| 91 | options.network.want_publicchat = (INIFile_ReadEntryAsBool (inifile, L"network", L"show public chat", true) > 0); |
91 | options.network.want_publicchat = (INIFile_ReadEntryAsBool (inifile, L"network", L"show public chat", true) > 0); |
| 92 | options.network.want_motdonconnect = (INIFile_ReadEntryAsBool (inifile, L"network", L"show MOTD on connect", true) > 0); |
92 | options.network.want_motdonconnect = (INIFile_ReadEntryAsBool (inifile, L"network", L"show MOTD on connect", true) > 0); |
| - | 93 | ||
| - | 94 | // [registration] |
|
| - | 95 | READ_WIDESTRING (options.registration.user_email, L"registration", L"user email", L""); |
|
| - | 96 | options.registration.activation_code = INIFile_ReadEntryAsLong (inifile, L"registration", L"activation code", 0); |
|
| 93 | 97 | ||
| 94 | // [smilies] |
98 | // [smilies] |
| 95 | smilies = NULL; |
99 | smilies = NULL; |
| 96 | smiley_count = 0; |
100 | smiley_count = 0; |
| 97 | while ((smiley_name = INIFile_GetEntryName (inifile, L"smilies", smiley_count)) != NULL) |
101 | while ((smiley_name = INIFile_GetEntryName (inifile, L"smilies", smiley_count)) != NULL) |
| Line 233... | Line 237... | ||
| 233 | WRITE_WIDESTRING (L"network", L"login", options.network.login); |
237 | WRITE_WIDESTRING (L"network", L"login", options.network.login); |
| 234 | WRITE_WIDESTRING (L"network", L"password", options.network.password); |
238 | WRITE_WIDESTRING (L"network", L"password", options.network.password); |
| 235 | INIFile_WriteEntryAsBool (inifile, L"network", L"show server messages", options.network.want_servermessages); |
239 | INIFile_WriteEntryAsBool (inifile, L"network", L"show server messages", options.network.want_servermessages); |
| 236 | INIFile_WriteEntryAsBool (inifile, L"network", L"show public chat", options.network.want_publicchat); |
240 | INIFile_WriteEntryAsBool (inifile, L"network", L"show public chat", options.network.want_publicchat); |
| 237 | INIFile_WriteEntryAsBool (inifile, L"network", L"show MOTD on connect", options.network.want_motdonconnect); |
241 | INIFile_WriteEntryAsBool (inifile, L"network", L"show MOTD on connect", options.network.want_motdonconnect); |
| - | 242 | ||
| - | 243 | // [registration] |
|
| - | 244 | WRITE_WIDESTRING (L"registration", L"user email", options.registration.user_email); |
|
| - | 245 | INIFile_WriteEntryAsLong (inifile, L"registration", L"activation code", options.registration.activation_code); |
|
| 238 | 246 | ||
| 239 | // [smilies] |
247 | // [smilies] |
| 240 | for (smiley_index = 0; smiley_index < smiley_count; smiley_index++) |
248 | for (smiley_index = 0; smiley_index < smiley_count; smiley_index++) |
| 241 | { |
249 | { |
| 242 | smiley = &smilies[smiley_index]; // quick access to smiley |
250 | smiley = &smilies[smiley_index]; // quick access to smiley |