Fix --no-vr, avatar DB warning, force silent installer

This commit is contained in:
Natsumi
2022-07-30 23:39:43 +12:00
parent 163b2a8f27
commit 571a58351a
5 changed files with 64 additions and 25 deletions
+3 -1
View File
@@ -87,7 +87,9 @@ Function .onInit
Pop $R1 Pop $R1
${If} $R1 = 0 ${If} $R1 = 0
MessageBox MB_OK|MB_ICONEXCLAMATION "VRCX is still running. Cannot install this software.$\nPlease close VRCX and try again." /SD IDOK MessageBox MB_OK|MB_ICONEXCLAMATION "VRCX is still running. Cannot install this software.$\nPlease close VRCX and try again." /SD IDOK
Abort ${IfNot} ${Silent}
Abort
${EndIf}
${EndIf} ${EndIf}
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "VRCX is already installed. $\n$\nClick `OK` to upgrade the existing installation or `Cancel` to cancel this upgrade." /SD IDOK IDCANCEL cancel MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "VRCX is already installed. $\n$\nClick `OK` to upgrade the existing installation or `Cancel` to cancel this upgrade." /SD IDOK IDCANCEL cancel
+26 -10
View File
@@ -193,6 +193,7 @@ namespace VRCX
if (line.Length <= 36 || if (line.Length <= 36 ||
line[31] != '-') line[31] != '-')
{ {
ParseDesktopMode(fileInfo, line);
continue; continue;
} }
@@ -445,17 +446,17 @@ namespace VRCX
// 2021.07.19 04:24:28 Log - [Behaviour] Will execute SendRPC/AlwaysBufferOne on (Clone [100004] Portals/PortalInternalDynamic) (UnityEngine.GameObject) for Natsumi-sama: S: "ConfigurePortal" I: 7 F: 0 B: 255 (local master owner) // 2021.07.19 04:24:28 Log - [Behaviour] Will execute SendRPC/AlwaysBufferOne on (Clone [100004] Portals/PortalInternalDynamic) (UnityEngine.GameObject) for Natsumi-sama: S: "ConfigurePortal" I: 7 F: 0 B: 255 (local master owner)
// 2022.07.29 18:40:37 Log - [Behaviour] Instantiated a (Clone [800004] Portals/PortalInternalDynamic) // 2022.07.29 18:40:37 Log - [Behaviour] Instantiated a (Clone [800004] Portals/PortalInternalDynamic)
if (!line.Contains("] Portals/PortalInternalDynamic)")) if (line.Contains("[Behaviour] Instantiated a (Clone [") && line.Contains("] Portals/PortalInternalDynamic)"))
return false;
AppendLog(new[]
{ {
fileInfo.Name, AppendLog(new[]
ConvertLogTimeToISO8601(line), {
"portal-spawn" fileInfo.Name,
}); ConvertLogTimeToISO8601(line),
"portal-spawn"
return true; });
return true;
}
return false;
} }
private bool ParseLogShaderKeywordsLimit(FileInfo fileInfo, LogContext logContext, string line, int offset) private bool ParseLogShaderKeywordsLimit(FileInfo fileInfo, LogContext logContext, string line, int offset)
@@ -864,6 +865,21 @@ namespace VRCX
return true; return true;
} }
private void ParseDesktopMode(FileInfo fileInfo, string line)
{
// XR Device: None
if (string.Compare(line, 0, " XR Device: None", 0, 19, StringComparison.Ordinal) != 0)
return;
AppendLog(new[]
{
fileInfo.Name,
ConvertLogTimeToISO8601(line),
"desktop-mode"
});
}
public string[][] Get() public string[][] Get()
{ {
Update(); Update();
+30 -12
View File
@@ -4277,7 +4277,7 @@ speechSynthesis.getVoices();
API.currentUser.$online_for = Date.now(); API.currentUser.$online_for = Date.now();
API.currentUser.$offline_for = ''; API.currentUser.$offline_for = '';
} else { } else {
this.isGameNoVR = true; this.isGameNoVR = false;
configRepository.setBool( configRepository.setBool(
'isGameNoVR', 'isGameNoVR',
this.isGameNoVR this.isGameNoVR
@@ -8169,14 +8169,7 @@ speechSynthesis.getVoices();
database.addGamelogJoinLeaveToDatabase(entry); database.addGamelogJoinLeaveToDatabase(entry);
break; break;
case 'portal-spawn': case 'portal-spawn':
var bias = Date.parse($app.lastLocation.date) + 30 * 1000; if (this.ipcEnabled && this.isGameRunning) {
if (
(this.ipcEnabled && this.isGameRunning) ||
!this.lastLocation.location ||
bias < Date.now()
) {
console.log('ignored portal spawn');
// 30sec wait for world portals to load
return; return;
} }
var entry = { var entry = {
@@ -8288,12 +8281,14 @@ speechSynthesis.getVoices();
AppApi.QuitGame().then((processCount) => { AppApi.QuitGame().then((processCount) => {
if (processCount > 1) { if (processCount > 1) {
console.log( console.log(
'More than 1 process running, not killing VRC' 'QuitFix: More than 1 process running, not killing VRC'
); );
} else if (processCount === 1) { } else if (processCount === 1) {
console.log('Killed VRC'); console.log('QuitFix: Killed VRC');
} else { } else {
console.log('Nothing to kill, no VRC process running'); console.log(
'QuitFix: Nothing to kill, no VRC process running'
);
} }
}); });
break; break;
@@ -8301,6 +8296,10 @@ speechSynthesis.getVoices();
this.isGameNoVR = false; this.isGameNoVR = false;
configRepository.setBool('isGameNoVR', this.isGameNoVR); configRepository.setBool('isGameNoVR', this.isGameNoVR);
break; break;
case 'desktop-mode':
this.isGameNoVR = true;
configRepository.setBool('isGameNoVR', this.isGameNoVR);
break;
} }
if (entry) { if (entry) {
this.queueGameLogNoty(entry); this.queueGameLogNoty(entry);
@@ -13632,6 +13631,25 @@ speechSynthesis.getVoices();
}; };
$app.methods.lookupAvatars = async function (type, search) { $app.methods.lookupAvatars = async function (type, search) {
if (
this.avatarRemoteDatabaseProvider ===
'https://requi.dev/vrcx_search.php'
) {
this.$alert(
'ReMod remote avatar search has been shutdown due to EAC more info here: https://requi.dev/vrcx_search.php',
'Remote avatar search'
);
this.avatarRemoteDatabaseProvider = '';
configRepository.setString(
'VRCX_avatarRemoteDatabaseProvider',
this.avatarRemoteDatabaseProvider
);
this.avatarRemoteDatabase = false;
configRepository.setBool(
'VRCX_avatarRemoteDatabase',
this.avatarRemoteDatabase
);
}
if (type === 'search') { if (type === 'search') {
var limit = '&n=5000'; var limit = '&n=5000';
} else { } else {
+2 -2
View File
@@ -2291,7 +2291,7 @@ html
el-button(type="primary" size="small" style="margin-left:auto" @click="notificationPositionDialog.visible = false") OK el-button(type="primary" size="small" style="margin-left:auto" @click="notificationPositionDialog.visible = false") OK
//- dialog: Noty feed filters //- dialog: Noty feed filters
el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="notyFeedFiltersDialog" :visible.sync="notyFeedFiltersDialog.visible" title="Notification Filters" width="500px") el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="notyFeedFiltersDialog" :visible.sync="notyFeedFiltersDialog.visible" title="Notification Filters" width="550px")
.toggle-list .toggle-list
.toggle-item .toggle-item
span.toggle-name OnPlayerJoining span.toggle-name OnPlayerJoining
@@ -2473,7 +2473,7 @@ html
el-button(type="primary" size="small" style="margin-left:10px" @click="saveSharedFeedFilters") Save el-button(type="primary" size="small" style="margin-left:10px" @click="saveSharedFeedFilters") Save
//- dialog: wrist feed filters //- dialog: wrist feed filters
el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="wristFeedFiltersDialog" :visible.sync="wristFeedFiltersDialog.visible" title="Wrist Feed Filters" width="500px") el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="wristFeedFiltersDialog" :visible.sync="wristFeedFiltersDialog.visible" title="Wrist Feed Filters" width="550px")
.toggle-list .toggle-list
.toggle-item .toggle-item
span.toggle-name Self Location span.toggle-name Self Location
+3
View File
@@ -64,6 +64,9 @@ class GameLogService {
case 'openvr-init': case 'openvr-init':
break; break;
case 'desktop-mode':
break;
default: default:
break; break;
} }