File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ import FileUtils from "../utils/FileUtils";
133
133
import {areWrapperArgumentsProvided , isProtonRequired } from ' ../utils/LaunchUtils' ;
134
134
import appWindow from ' ../providers/node/app/app_window' ;
135
135
import Buffer from ' ../providers/node/buffer/buffer' ;
136
+ import ProtocolProvider from ' src/providers/generic/protocol/ProtocolProvider' ;
136
137
137
138
const store = getStore <State >();
138
139
const router = useRouter ();
@@ -199,7 +200,7 @@ async function ensureWrapperInGameFolder() {
199
200
if (await FsProvider .instance .exists (path .join (PathResolver .MOD_ROOT , wrapperName ))) {
200
201
await FsProvider .instance .unlink (path .join (PathResolver .MOD_ROOT , wrapperName ));
201
202
}
202
- const wrapperFileResult = await fetch (` /${wrapperName } ` ).then (res => res .arrayBuffer ());
203
+ const wrapperFileResult = await fetch (ProtocolProvider . getPublicAssetUrl ( ` /${wrapperName } ` ) ).then (res => res .arrayBuffer ());
203
204
const wrapperFileContent = Buffer .from (wrapperFileResult );
204
205
await FsProvider .instance .writeFile (path .join (PathResolver .MOD_ROOT , wrapperName ), wrapperFileContent );
205
206
}
You can’t perform that action at this time.
0 commit comments