Skip to content

Commit 7cac8a6

Browse files
Proxied asset downloading (#34)
1 parent 6a8fea8 commit 7cac8a6

9 files changed

Lines changed: 698 additions & 6 deletions

File tree

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export default function Home() {
291291
}
292292
stopLoading("launch");
293293
setCurrentSession(undefined);
294-
if (config!.launcher.launch_behavior == "hide") {
294+
if (config!.launcher.launch_behavior != "stay_open") {
295295
await getCurrentWindow().hide();
296296
}
297297
const exitCode: number = await invoke("do_launch");

app/settings/LauncherSettingsTab.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,23 @@ export default function LauncherSettingsTab({
148148
}))
149149
}
150150
/>
151+
<SettingControlDropdown
152+
id="proxy_asset_downloads"
153+
name="Proxy asset downloads over HTTPS"
154+
options={[
155+
{ key: "yes", value: true, label: "Yes" },
156+
{ key: "no", value: false, label: "No" },
157+
]}
158+
defaultKey="yes"
159+
oldValue={currentSettings.proxy_asset_downloads}
160+
value={settings.proxy_asset_downloads}
161+
onChange={(value) =>
162+
setSettings((current) => ({
163+
...current!,
164+
proxy_asset_downloads: value,
165+
}))
166+
}
167+
/>
151168
<SettingControlDropdown
152169
id="use_offline_caches"
153170
name="Use offline caches when downloaded"

app/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export type LauncherSettings = {
4242
launch_behavior: string;
4343
game_cache_path: string;
4444
offline_cache_path: string;
45+
proxy_asset_downloads: boolean;
4546
theme?: string;
4647
};
4748

resources/defaults/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"check_for_updates": true,
44
"use_offline_caches": true,
55
"verify_offline_caches": false,
6-
"launch_behavior": "hide"
6+
"launch_behavior": "hide",
7+
"proxy_asset_downloads": true
78
},
89
"game": {
910
"graphics_api": "dx9",

0 commit comments

Comments
 (0)