forked from TheElixZammuto/moonlight-xbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtils.hpp
32 lines (26 loc) · 764 Bytes
/
Utils.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "pch.h"
namespace moonlight_xbox_dx {
namespace Utils {
struct StreamingStats {
double averageRenderingTime = 0;
int queueSize = 0;
int fps = 0;
double _accumulatedSeconds = 0;
int _framesDecoded = 0;
};
extern std::vector<std::wstring> logLines;
extern bool showLogs;
extern bool showStats;
extern float outputW;
extern float outputH;
extern StreamingStats stats;
extern std::mutex logMutex;
Platform::String^ StringPrintf(const char* fmt, ...);
void Log(const char* fmt);
std::vector<std::wstring> GetLogLines();
Platform::String^ StringFromChars(char* chars);
Platform::String^ StringFromStdString(std::string st);
std::string PlatformStringToStdString(Platform::String^ input);
}
}