mirror of
https://github.com/RPCSX/rpcsx-ui.git
synced 2026-01-31 01:05:23 +01:00
fs: fix packaged resources uri
This commit is contained in:
@@ -195,7 +195,7 @@ export async function stat(_caller: Component, request: FsStatRequest): Promise<
|
||||
|
||||
export function getBuiltinResourcesLocation(_caller: Component, _request: FsGetBuiltinResourcesLocationRequest): FsGetBuiltinResourcesLocationResponse {
|
||||
if (app.isPackaged && "resourcesPath" in process && typeof process.resourcesPath == "string") {
|
||||
return process.resourcesPath;
|
||||
return pathToFileURL(process.resourcesPath).toString();
|
||||
}
|
||||
|
||||
return encodeURI(path.toURI(nodePath.resolve(import.meta.dirname, "..")));
|
||||
|
||||
Reference in New Issue
Block a user