Some fixes for windows compiling

pull/702/head
FlightlessMango 2 years ago
parent ae7c5f0f24
commit 3f2db318c5

@ -1,6 +1,8 @@
#include <stdint.h>
#ifndef _WIN32
#include <sys/ipc.h>
#include <sys/msg.h>
#endif
#include <mutex>
#include <condition_variable>
#include <vector>

@ -306,6 +306,7 @@ void HudElements::core_load(){
}
void HudElements::io_stats(){
#ifndef _WIN32
if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_io_read] || HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_io_write]){
ImGui::TableNextRow(); ImGui::TableNextColumn();
if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_io_read] && !HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_io_write])
@ -334,6 +335,7 @@ void HudElements::io_stats(){
ImGui::PopFont();
}
}
#endif
}
void HudElements::vram(){

@ -16,8 +16,10 @@ logData currentLogData = {};
std::unique_ptr<Logger> logger;
string exec(string command) {
#ifndef _WIN32
if (getenv("LD_PRELOAD"))
unsetenv("LD_PRELOAD");
#endif
std::array<char, 128> buffer;
std::string result;
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(command.c_str(), "r"), pclose);

@ -20,6 +20,6 @@ void init_d3d_shared(){
}
void d3d_run(){
check_keybinds(sw_stats, params, vendorID);
check_keybinds(params, vendorID);
update_hud_info(sw_stats, params, vendorID);
}
Loading…
Cancel
Save