mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Migrate old local co-op setting
This commit is contained in:
parent
f110b9f2e9
commit
e547048c09
@ -6546,7 +6546,7 @@ class Preferences {
|
|||||||
static get GAME_FORTNITE_FORCE_CONSOLE() { return 'game_fortnite_force_console'; }
|
static get GAME_FORTNITE_FORCE_CONSOLE() { return 'game_fortnite_force_console'; }
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
static get DEPRECATED_USE_DESKTOP_CODEC() { return 'use_desktop_codec'; }
|
static get DEPRECATED_CONTROLLER_SUPPORT_LOCAL_CO_OP() { return 'controller_local_co_op'; }
|
||||||
|
|
||||||
static SETTINGS = {
|
static SETTINGS = {
|
||||||
[Preferences.LAST_UPDATE_CHECK]: {
|
[Preferences.LAST_UPDATE_CHECK]: {
|
||||||
@ -7013,16 +7013,13 @@ class Preferences {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
/*
|
[Preferences.DEPRECATED_CONTROLLER_SUPPORT_LOCAL_CO_OP]: {
|
||||||
[Preferences.DEPRECATED_USE_DESKTOP_CODEC]: {
|
|
||||||
'default': false,
|
'default': false,
|
||||||
'migrate': function(savedPrefs, value) {
|
'migrate': function(savedPrefs, value) {
|
||||||
const quality = value ? 'high' : 'default';
|
this.set(Preferences.LOCAL_CO_OP_ENABLED, value);
|
||||||
this.set(Preferences.STREAM_CODEC_PROFILE, quality);
|
savedPrefs[Preferences.LOCAL_CO_OP_ENABLED] = value;
|
||||||
savedPrefs[Preferences.STREAM_CODEC_PROFILE] = quality;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#storage = localStorage;
|
#storage = localStorage;
|
||||||
@ -7040,11 +7037,9 @@ class Preferences {
|
|||||||
const setting = Preferences.SETTINGS[settingId];
|
const setting = Preferences.SETTINGS[settingId];
|
||||||
setting.ready && setting.ready.call(this);
|
setting.ready && setting.ready.call(this);
|
||||||
|
|
||||||
/*
|
if (setting.migrate && settingId in savedPrefs) {
|
||||||
if (setting.migrate && !(settingId in savedPrefs)) {
|
|
||||||
setting.migrate.call(this, savedPrefs, savedPrefs[settingId]);
|
setting.migrate.call(this, savedPrefs, savedPrefs[settingId]);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let settingId in Preferences.SETTINGS) {
|
for (let settingId in Preferences.SETTINGS) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user