Subversion Repositories Games.Chess Giants

Rev

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

Rev 33 Rev 39
Line 18... Line 18...
18
   void *engine_inifile;
18
   void *engine_inifile;
19
   smiley_t *smiley;
19
   smiley_t *smiley;
20
   char *file_buffer;
20
   char *file_buffer;
21
   wchar_t smiley_pathname[MAX_PATH];
21
   wchar_t smiley_pathname[MAX_PATH];
22
   wchar_t *smiley_name;
22
   wchar_t *smiley_name;
-
 
23
   wchar_t *ptr;
23
   int smiley_index;
24
   int smiley_index;
24
   int file_length;
25
   int file_length;
25
   FILE *fp;
26
   FILE *fp;
26
 
27
 
27
   // open the INI file
28
   // open the INI file
Line 82... Line 83...
82
 
83
 
83
      READ_WIDESTRING (options.engine.replystring_move, engine_inifile, L"reply strings", L"move", L"): ");
84
      READ_WIDESTRING (options.engine.replystring_move, engine_inifile, L"reply strings", L"move", L"): ");
84
      READ_WIDESTRING (options.engine.replystring_hint, engine_inifile, L"reply strings", L"hint", L"Hint: ");
85
      READ_WIDESTRING (options.engine.replystring_hint, engine_inifile, L"reply strings", L"hint", L"Hint: ");
85
 
86
 
86
      READ_WIDESTRING (options.engine.command_new, engine_inifile, L"commands", L"new game", L"new");
87
      READ_WIDESTRING (options.engine.command_new, engine_inifile, L"commands", L"new game", L"new");
-
 
88
      for (ptr = options.engine.command_new; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
87
      READ_WIDESTRING (options.engine.command_setboard, engine_inifile, L"commands", L"setup table from FEN", L"setboard");
89
      READ_WIDESTRING (options.engine.command_setboard, engine_inifile, L"commands", L"setup table from FEN", L"setboard %s");
-
 
90
      for (ptr = options.engine.command_setboard; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
88
      READ_WIDESTRING (options.engine.command_sd, engine_inifile, L"commands", L"search depth set", L"sd");
91
      READ_WIDESTRING (options.engine.command_sd, engine_inifile, L"commands", L"search depth set", L"sd %d");
-
 
92
      for (ptr = options.engine.command_sd; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
89
      READ_WIDESTRING (options.engine.command_go, engine_inifile, L"commands", L"play", L"go");
93
      READ_WIDESTRING (options.engine.command_go, engine_inifile, L"commands", L"play", L"go");
-
 
94
      for (ptr = options.engine.command_go; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
90
      READ_WIDESTRING (options.engine.command_hint, engine_inifile, L"commands", L"hint", L"hint");
95
      READ_WIDESTRING (options.engine.command_hint, engine_inifile, L"commands", L"hint", L"hint");
-
 
96
      for (ptr = options.engine.command_hint; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
91
      READ_WIDESTRING (options.engine.command_force, engine_inifile, L"commands", L"force move", L"force");
97
      READ_WIDESTRING (options.engine.command_force, engine_inifile, L"commands", L"force move", L"force %s");
-
 
98
      for (ptr = options.engine.command_force; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
92
      READ_WIDESTRING (options.engine.command_quit, engine_inifile, L"commands", L"quit", L"quit");
99
      READ_WIDESTRING (options.engine.command_quit, engine_inifile, L"commands", L"quit", L"quit");
-
 
100
      for (ptr = options.engine.command_quit; *ptr != 0; ptr++) if (*ptr == L';') *ptr = L'\n';
93
 
101
 
94
      INIFile_FreeINIFile (engine_inifile); // close the engine config file
102
      INIFile_FreeINIFile (engine_inifile); // close the engine config file
95
   }
103
   }
96
 
104
 
97
   // [network]
105
   // [network]