mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Fix in VR log check
This commit is contained in:
+26
-4
@@ -189,7 +189,7 @@ namespace VRCX
|
|||||||
if (line.Length <= 36 ||
|
if (line.Length <= 36 ||
|
||||||
line[31] != '-')
|
line[31] != '-')
|
||||||
{
|
{
|
||||||
ParseDesktopMode(fileInfo, line);
|
ParseDesktopModeOld(fileInfo, line);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,7 +235,8 @@ namespace VRCX
|
|||||||
if (ParseLogShaderKeywordsLimit(fileInfo, logContext, line, offset) ||
|
if (ParseLogShaderKeywordsLimit(fileInfo, logContext, line, offset) ||
|
||||||
ParseLogSDK2VideoPlay(fileInfo, logContext, line, offset) ||
|
ParseLogSDK2VideoPlay(fileInfo, logContext, line, offset) ||
|
||||||
ParseApplicationQuit(fileInfo, logContext, line, offset) ||
|
ParseApplicationQuit(fileInfo, logContext, line, offset) ||
|
||||||
ParseOpenVRInit(fileInfo, logContext, line, offset))
|
ParseOpenVRInit(fileInfo, logContext, line, offset) ||
|
||||||
|
ParseDesktopMode(fileInfo, logContext, line, offset))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -900,7 +901,11 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
// 2022.07.29 02:52:14 Log - OpenVR initialized!
|
// 2022.07.29 02:52:14 Log - OpenVR initialized!
|
||||||
|
|
||||||
if (string.Compare(line, offset, "OpenVR initialized!", 0, 19, StringComparison.Ordinal) != 0)
|
// 2023.04.22 16:52:28 Log - Initializing VRSDK.
|
||||||
|
// 2023.04.22 16:52:29 Log - StartVRSDK: Open VR Loader
|
||||||
|
|
||||||
|
if (string.Compare(line, offset, "OpenVR initialized!", 0, 19, StringComparison.Ordinal) != 0 &&
|
||||||
|
string.Compare(line, offset, "Initializing VRSDK.", 0, 19, StringComparison.Ordinal) != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
AppendLog(new[]
|
AppendLog(new[]
|
||||||
@@ -913,7 +918,24 @@ namespace VRCX
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool ParseDesktopMode(FileInfo fileInfo, string line)
|
private bool ParseDesktopMode(FileInfo fileInfo, LogContext logContext, string line, int offset)
|
||||||
|
{
|
||||||
|
// 2023.04.22 16:54:18 Log - VR Disabled
|
||||||
|
|
||||||
|
if (string.Compare(line, offset, "VR Disabled", 0, 11, StringComparison.Ordinal) != 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
AppendLog(new[]
|
||||||
|
{
|
||||||
|
fileInfo.Name,
|
||||||
|
ConvertLogTimeToISO8601(line),
|
||||||
|
"desktop-mode"
|
||||||
|
});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool ParseDesktopModeOld(FileInfo fileInfo, string line)
|
||||||
{
|
{
|
||||||
// XR Device: None
|
// XR Device: None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user