This repository has been archived by the owner on Jun 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
steam-settings.js
77 lines (73 loc) · 2.76 KB
/
steam-settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* @author Tom <l3l_aze@yahoo.com>
*/
/**
*
*/
function SteamSettings () {
this.language = new SettingVal('language', 'list', languages)
this.autoLoginUser = new SettingVal('AutoLoginUser', 'string')
this.registryRememberPassword = new SettingVal('RememberPassword', 'boolean')
this.alreadyRetriedOfflineMode = new SettingVal('AlreadyRetriedOfflineMode', 'boolean')
this.loginusersRememberPassword = new SettingVal('RememberPassword', 'boolean')
this.wantsOfflineMode = new SettingVal('WantsOfflineMode', 'boolean')
this.skipOfflineModeWarning = new SettingVal('SkipOfflineModeWarning', 'boolean')
this.autoUpdateWindowEnabled = new SettingVal('AutoUpdateWindowEnabled', 'boolean')
this.disableShaderCache = new SettingVal('DisableShaderCache', 'boolean')
this.noSavePersonalInfo = new SettingVal('NoSavePersonalInfo', 'boolean')
this.MaxServerBrowserPingsPerMin = new SettingVal('MaxServerBrowserPingsPerMin', 'list', [
0, 5000, 3000, 1500, 1000, 500, 250
])
this.downloadThrottleKbps = new SettingVal('DownloadThrottleKbps', 'hash', {
'None': 0,
'16 KB/s': 128,
'32 KB/s': 256,
'48 KB/s': 384,
'64 KB/s': 512,
'96 KB/s': 768,
'128 KB/s': 1024,
'192 KB/s': 1536,
'256 KB/s': 2048,
'384 KB/s': 3072,
'512 KB/s': 4096,
'768 KB/s': 6144,
'1000 KB/s (1 MB/s)': 8000,
'1000 KB/s': 8000,
'1 MB/s': 8000,
'1.5 MB/s': 12000,
'2 MB/s': 16000,
'3 MB/s': 24000,
'5 MB/s': 40000,
'7 MB/s': 56000,
'10 MB/s': 80000,
'25 MB/s': 200000
})
this.allowDownloadsDuringGameplay = new SettingVal('AllowDownloadsDuringGameplay', 'boolean')
this.streamingThrottleEnabled = new SettingVal('StreamingThrottleEnabled', 'boolean')
this.clientBrowserAuth = new SettingVal('ClientBrowserAuth', 'boolean')
this.musicVolume = new SettingVal('MusicVolume', 'range', [0, 100])
this.crawlSteamInstallFolders = new SettingVal('CrawlSteamInstallFolders', 'boolean')
this.crawlAtStartup = new SettingVal('CrawlAtStartup', 'boolean')
this.pauseOnVoiceChat = new SettingVal('PauseOnVoiceChat', 'boolean')
this.playlistNowPlayingNotification = new SettingVal('PlaylistNowPlayingNotification', 'boolean')
this.musicPlayerVisible = new SettingVal('MusicPlayerVisible', 'boolean')
}
function SettingVal (n, t, l) {
this.sName = n
this.sType = t
this.limits = l || []
}
/**
*
*/
const languages = [
'bulgarian', 'czech', 'danish', 'dutch', 'english', 'finnish', 'french', 'german',
'greek', 'hungarian', 'italian', 'japanese', 'koreana', 'norwegian', 'polish',
'portuguese', 'russian', 'romanian', 'spanish', 'swedish', 'thai', 'turkish',
'ukrainian', 'brazilian', // Portuguese-Brazil
'schinese', // Simplified Chinese
'tchinese' // Traditional Chinese
]
exports = {
SteamSettings
}