1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 09:13:08 +00:00

Use the path and filename for restoring parameter files.

This commit is contained in:
J. Oster 2020-07-15 12:15:45 +02:00 committed by nodchip
parent 7f4b72cdfd
commit e29499ee4b

View file

@ -110,7 +110,7 @@ void SetOptions(const std::string& options) {
// Reread the evaluation function parameters for learning from the file // Reread the evaluation function parameters for learning from the file
void RestoreParameters(const std::string& dir_name) { void RestoreParameters(const std::string& dir_name) {
const std::string file_name = NNUE::fileName; const std::string file_name = Path::Combine(dir_name, NNUE::savedfileName);
std::ifstream stream(file_name, std::ios::binary); std::ifstream stream(file_name, std::ios::binary);
bool result = ReadParameters(stream); bool result = ReadParameters(stream);
assert(result); assert(result);