diff --git a/.gitignore b/.gitignore index 0551768..1c9f613 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ build/ trash .github .vscode +.vs # Files from build **/*.o diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b9b7ac9..5af2e7a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.18) project(flutter_stockfish_plugin VERSION 0.0.1 LANGUAGES CXX) file(GLOB_RECURSE cppPaths "Stockfish/src/*.cpp") set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -flto -DNDEBUG -fPIC") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O3 -flto -DNDEBUG -fPIC") set(NNUE_NAME nn-5af11540bbfe.nnue) add_library(flutter_stockfish_plugin SHARED diff --git a/src/small_fixes.cpp b/src/small_fixes.cpp index 7a38a29..09b01c4 100644 --- a/src/small_fixes.cpp +++ b/src/small_fixes.cpp @@ -19,8 +19,9 @@ bool fake_get_pgmptr(char** ptr) { WideCharToMultiByte(CP_UTF8, 0, buffer, -1, narrowBuffer, MAX_PATH, NULL, NULL); *ptr = narrowBuffer; + return false; } - return false; + return true; } #endif #endif \ No newline at end of file