Skip to content

Commit

Permalink
fix tests compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
17314642 authored and flightlessmango committed Jan 6, 2025
1 parent 5e1cbdd commit 4973296
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ subprojects/imgui-*/
subprojects/spdlog-*/
subprojects/nlohmann_json-*/
subprojects/implot-*/
subprojects/cmocka/

#GNU Global Metadata
**/GPATH
Expand Down
5 changes: 5 additions & 0 deletions src/gpu_fdinfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "gpu_fdinfo.h"

#ifndef TEST_ONLY
#include "hud_elements.h"
#endif

namespace fs = ghc::filesystem;

Expand Down Expand Up @@ -490,11 +493,13 @@ void GPU_fdinfo::main_thread()
std::unique_lock<std::mutex> lock(metrics_mutex);
cond_var.wait(lock, [this]() { return !paused || stop_thread; });

#ifndef TEST_ONLY
if (HUDElements.g_gamescopePid > 0 && HUDElements.g_gamescopePid != pid)
{
pid = HUDElements.g_gamescopePid;
find_fd();
}
#endif

// Recheck fds every 10secs, fixes Mass Effect 1, maybe some others too
{
Expand Down

0 comments on commit 4973296

Please sign in to comment.