diff --git a/src/logging.cpp b/src/logging.cpp index bb011a0..2677577 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -196,7 +196,9 @@ void Logger::try_log() { currentLogData.previous = elapsedLog; currentLogData.fps = fps; currentLogData.frametime = frametime; +#ifdef __gnu_linux__ currentLogData.current_watt = Battery_Stats.current_watt; +#endif m_log_array.push_back(currentLogData); if (m_params->autostart_log) writeFileContinuous(currentLogFile); diff --git a/src/overlay.cpp b/src/overlay.cpp index b9767cb..36b9c1d 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -22,7 +22,9 @@ std::vector graph_data; void update_hw_info(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID) { +#ifdef __gnu_linux__ Battery_Stats.update(); +#endif if (params.enabled[OVERLAY_PARAM_ENABLED_cpu_stats] || logger->is_active()) { cpuStats.UpdateCPUData(); #ifdef __gnu_linux__ diff --git a/src/vulkan.cpp b/src/vulkan.cpp index 258da22..35c1510 100644 --- a/src/vulkan.cpp +++ b/src/vulkan.cpp @@ -1856,7 +1856,9 @@ static VkResult overlay_CreateSwapchainKHR( std::string deviceName = prop.deviceName; if (!is_blacklisted()) { +#ifdef __gnu_linux__ parse_pciids(); +#endif get_device_name(prop.vendorID, prop.deviceID, swapchain_data->sw_stats); init_gpu_stats(device_data->properties.vendorID, device_data->instance->params); init_system_info();