-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathUtils.hpp
37 lines (31 loc) · 913 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
33
34
35
36
37
#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;
float outputW = 0;
float outputH = 0;
float compositionScaleX = 0;
float compositionScaleY = 0;
float compositionScaleMultiplier = 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);
}
}