From 052072c94cebf8f8fdd92e4de1ec742d0250dd58 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Sun, 10 Jul 2022 16:23:07 +0200 Subject: [PATCH] Fix build without cuda N2 Signed-off-by: Bensuperpc --- source/GTA_SA_cheat_finder.cpp | 2 +- source/GTA_SA_cheat_finder.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/GTA_SA_cheat_finder.cpp b/source/GTA_SA_cheat_finder.cpp index 6cd0742..9820542 100755 --- a/source/GTA_SA_cheat_finder.cpp +++ b/source/GTA_SA_cheat_finder.cpp @@ -149,7 +149,7 @@ void GTA_SA::run() std::cout << "" << std::endl; } -#if !defined(BUILD_WITH_CUDA) +#if defined(BUILD_WITH_CUDA) void GTA_SA::cuda_runner() { if ((max_range - min_range) < cuda_block_size) { diff --git a/source/GTA_SA_cheat_finder.hpp b/source/GTA_SA_cheat_finder.hpp index dec4edc..86f45f4 100755 --- a/source/GTA_SA_cheat_finder.hpp +++ b/source/GTA_SA_cheat_finder.hpp @@ -43,7 +43,7 @@ class GTA_SA public: GTA_SA(); void cpu_runner(const std::uint64_t i); -#if !defined(BUILD_WITH_CUDA) +#if defined(BUILD_WITH_CUDA) void cuda_runner(); #endif void run();