MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / SettingsManager

Method SettingsManager

src/core/SettingsManager.cpp:16–139  ·  view source on GitHub ↗

Note for future self: launch arg overides are in this format: core.xxx -> --geode:globed/setting.core.xxx

Source from the content-addressed store, hash-verified

14// Note for future self: launch arg overides are in this format:
15// core.xxx -> --geode:globed/setting.core.xxx
16SettingsManager::SettingsManager() {
17 this->loadSaveSlots();
18
19 // Preload
20 this->registerSetting("core.preload.enabled", true);
21 this->registerSetting("core.preload.defer", false);
22 // hidden preload settings
23 this->registerSetting("core.preload.batch-size", 0);
24 this->registerSetting("core.preload.use-pbos", true);
25 this->registerSetting("core.preload.use-direct-decode", true);
26
27 // Various
28 this->registerSetting("core.autoconnect", true);
29 this->registerSetting("core.streamer-mode", false);
30 this->registerSetting("core.invites-from", (int)InvitesFrom::Friends);
31
32 // Editor related
33 this->registerSetting("core.editor.enabled", true);
34
35 // Keybinds
36 this->registerSetting("core.keybinds.voice-chat", (int)KEY_V);
37 this->registerSetting("core.keybinds.deafen", (int)KEY_B);
38 this->registerSetting("core.keybinds.hide-players", (int)KEY_None);
39 this->registerSetting("core.keybinds.emote-0", (int)KEY_None);
40 this->registerSetting("core.keybinds.emote-1", (int)KEY_None);
41 this->registerSetting("core.keybinds.emote-2", (int)KEY_None);
42 this->registerSetting("core.keybinds.emote-3", (int)KEY_None);
43 this->registerSetting("core.keybinds.emote-4", (int)KEY_None);
44 this->registerSetting("core.keybinds.emote-5", (int)KEY_None);
45 this->registerSetting("core.keybinds.emote-6", (int)KEY_None);
46 this->registerSetting("core.keybinds.emote-7", (int)KEY_None);
47
48 // UI settings
49 this->registerSetting("core.ui.allow-custom-servers", false);
50 this->registerSetting("core.ui.increase-level-list", false);
51 this->registerSetting("core.ui.compressed-player-count", true);
52 this->registerSetting("core.ui.colorblind-mode", false);
53 this->registerSetting("core.ui.disable-notices", false);
54
55 // Player settings
56 this->registerSetting("core.player.opacity", 1.0f);
57 this->registerLimits("core.player.opacity", 0.f, 1.f);
58 this->registerSetting("core.player.quick-chat-enabled", true);
59 this->registerSetting("core.player.quick-chat-sfx", true);
60 this->registerSetting("core.player.quick-chat-sfx-volume", 0.5f);
61 this->registerSetting("core.player.emote-opacity", 1.0f);
62 this->registerLimits("core.player.emote-opacity", 0.f, 1.f);
63 this->registerSetting("core.player.show-names", true);
64 this->registerSetting("core.player.dual-name", true);
65 this->registerSetting("core.player.name-opacity", 1.0f);
66 this->registerSetting("core.player.force-visibility", false);
67 this->registerSetting("core.player.hide-nearby-classic", false);
68 this->registerSetting("core.player.hide-nearby-plat", false);
69 this->registerSetting("core.player.hide-practicing", false);
70 this->registerSetting("core.player.status-icons", true);
71 this->registerSetting("core.player.rotate-names", true);
72 this->registerSetting("core.player.death-effects", true);
73 this->registerSetting("core.player.default-death-effects", false);

Callers

nothing calls this directly

Calls 4

loadSaveSlotsMethod · 0.95
registerSettingMethod · 0.95
registerLimitsMethod · 0.95
refreshPlayerListsMethod · 0.95

Tested by

no test coverage detected