From 982f592cf1b711000e014eb8fb4c021665e1bb43 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Sat, 3 Feb 2024 19:09:09 -0700 Subject: [PATCH] Fix rM2 detection --- shared/libblight_client/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/libblight_client/main.cpp b/shared/libblight_client/main.cpp index 65b826a28..b6afb2449 100644 --- a/shared/libblight_client/main.cpp +++ b/shared/libblight_client/main.cpp @@ -1028,6 +1028,7 @@ extern "C" { _DEBUG("Connected %d to blight on %d", pid, blightConnection->handle()); setenv("OXIDE_PRELOAD", std::to_string(getpgrp()).c_str(), true); + std::ios_base::Init i; std::ifstream device_id_file{"/sys/devices/soc0/machine"}; std::string device_id; std::getline(device_id_file, device_id);