Rev 32 | Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 32 | Rev 33 | ||
|---|---|---|---|
| Line 75... | Line 75... | ||
| 75 | // given the selected engine program, load and interpret the right engine config file |
75 | // given the selected engine program, load and interpret the right engine config file |
| 76 | swprintf_s (filename, WCHAR_SIZEOF (filename), L"%s/engines/%s/engine.ini", app_path, options.engine.program); |
76 | swprintf_s (filename, WCHAR_SIZEOF (filename), L"%s/engines/%s/engine.ini", app_path, options.engine.program); |
| 77 | engine_inifile = INIFile_LoadINIFile (filename); |
77 | engine_inifile = INIFile_LoadINIFile (filename); |
| 78 | if (engine_inifile != NULL) |
78 | if (engine_inifile != NULL) |
| 79 | { |
79 | { |
| 80 | READ_WIDESTRING (options.engine.name, engine_inifile, L" |
80 | READ_WIDESTRING (options.engine.name, engine_inifile, L"program", L"name", L"Crafty v24.0"); |
| 81 | READ_WIDESTRING (options.engine.cmdline, engine_inifile, L" |
81 | READ_WIDESTRING (options.engine.cmdline, engine_inifile, L"program", L"executable", L"crafty.exe"); |
| - | 82 | ||
| 82 | READ_WIDESTRING (options.engine.replystring_move, engine_inifile, L" |
83 | READ_WIDESTRING (options.engine.replystring_move, engine_inifile, L"reply strings", L"move", L"): "); |
| 83 | READ_WIDESTRING (options.engine.replystring_hint, engine_inifile, L" |
84 | READ_WIDESTRING (options.engine.replystring_hint, engine_inifile, L"reply strings", L"hint", L"Hint: "); |
| - | 85 | ||
| 84 | READ_WIDESTRING (options.engine.command_new, engine_inifile, L" |
86 | READ_WIDESTRING (options.engine.command_new, engine_inifile, L"commands", L"new game", L"new"); |
| 85 | READ_WIDESTRING (options.engine.command_setboard, engine_inifile, L" |
87 | READ_WIDESTRING (options.engine.command_setboard, engine_inifile, L"commands", L"setup table from FEN", L"setboard"); |
| 86 | READ_WIDESTRING (options.engine.command_sd, engine_inifile, L" |
88 | READ_WIDESTRING (options.engine.command_sd, engine_inifile, L"commands", L"search depth set", L"sd"); |
| 87 | READ_WIDESTRING (options.engine.command_go, engine_inifile, L" |
89 | READ_WIDESTRING (options.engine.command_go, engine_inifile, L"commands", L"play", L"go"); |
| 88 | READ_WIDESTRING (options.engine.command_hint, engine_inifile, L" |
90 | READ_WIDESTRING (options.engine.command_hint, engine_inifile, L"commands", L"hint", L"hint"); |
| 89 | READ_WIDESTRING (options.engine.command_force, engine_inifile, L" |
91 | READ_WIDESTRING (options.engine.command_force, engine_inifile, L"commands", L"force move", L"force"); |
| 90 | READ_WIDESTRING (options.engine.command_quit, engine_inifile, L" |
92 | READ_WIDESTRING (options.engine.command_quit, engine_inifile, L"commands", L"quit", L"quit"); |
| 91 | 93 | ||
| 92 | INIFile_FreeINIFile (engine_inifile); // close the engine config file |
94 | INIFile_FreeINIFile (engine_inifile); // close the engine config file |
| 93 | } |
95 | } |
| 94 | 96 | ||
| 95 | // [network] |
97 | // [network] |