Cleanup Evalfile handling

This cleans up the EvalFile handling after the merge of #4915,
which has become a bit confusing on what it is actually doing.

closes https://github.com/official-stockfish/Stockfish/pull/4971

No functional change
This commit is contained in:
Disservin
2024-01-07 23:08:33 +01:00
parent 7c5e3f2865
commit 99cdb920fc
4 changed files with 48 additions and 31 deletions

View File

@@ -28,6 +28,7 @@
#include <iostream>
#include <sstream>
#include <string_view>
#include <unordered_map>
#include "../evaluate.h"
#include "../misc.h"
@@ -449,7 +450,7 @@ bool save_eval(const std::optional<std::string>& filename, NetSize netSize) {
actualFilename = filename.value();
else
{
if (currentEvalFileName[netSize]
if (EvalFiles.at(netSize).selected_name
!= (netSize == Small ? EvalFileDefaultNameSmall : EvalFileDefaultNameBig))
{
msg = "Failed to export a net. "