mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
refer to local paths
This commit is contained in:
parent
cb68d8c695
commit
7665135329
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "website",
|
||||
"version": "0.1.0",
|
||||
"homepage": "./",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
|
@ -48,4 +49,4 @@
|
|||
"@types/styled-components": "^5.1.26",
|
||||
"prettier": "2.8.8"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -85,7 +85,7 @@ function App() {
|
|||
{isPlaying ? (
|
||||
<Mgba
|
||||
ref={mgbaRef}
|
||||
gameUrl="/game.gba"
|
||||
gameUrl="./game.gba"
|
||||
volume={volume}
|
||||
controls={bindings.Actual}
|
||||
paused={paused}
|
||||
|
|
|
@ -73,7 +73,7 @@ export const Mgba = forwardRef<MgbaHandle, MgbaProps>(
|
|||
canvas: canvas.current,
|
||||
locateFile: (file: string) => {
|
||||
if (file === "mgba.wasm") {
|
||||
return "/vendor/mgba.wasm";
|
||||
return "./vendor/mgba.wasm";
|
||||
}
|
||||
return file;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue