mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
Add GameLog entries for resource loading (#513)
* add log entries for resource loading * add config for resource loading
This commit is contained in:
@@ -9378,6 +9378,19 @@ speechSynthesis.getVoices();
|
||||
this.nowPlaying.offset = parseInt(timestamp, 10);
|
||||
}
|
||||
break;
|
||||
case 'resource-load':
|
||||
if (!this.logResourceLoad) {
|
||||
break;
|
||||
}
|
||||
var entry = {
|
||||
created_at: gameLog.dt,
|
||||
type: gameLog.resourceType === 'string' ? 'StringLoad' : 'ImageLoad',
|
||||
resourceUrl: gameLog.resourceUrl,
|
||||
resourceType: gameLog.resourceType,
|
||||
location
|
||||
};
|
||||
database.addGamelogResourceLoadToDatabase(entry);
|
||||
break;
|
||||
case 'screenshot':
|
||||
if (!this.screenshotHelper) {
|
||||
break;
|
||||
@@ -13359,6 +13372,10 @@ speechSynthesis.getVoices();
|
||||
AppApi.ExecuteVrOverlayFunction('updateHudTimeout', '[]');
|
||||
}
|
||||
};
|
||||
$app.data.logResourceLoad = configRepository.getBool('VRCX_logResourceLoad', false);
|
||||
$app.methods.saveGameLogOptions = function() {
|
||||
configRepository.setBool('VRCX_logResourceLoad', this.logResourceLoad);
|
||||
};
|
||||
|
||||
// setting defaults
|
||||
if (!configRepository.getString('VRCX_notificationPosition')) {
|
||||
|
||||
Reference in New Issue
Block a user