mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
remove hard reset
This commit is contained in:
parent
27ad5d1184
commit
5365ce6188
|
@ -103,7 +103,6 @@ export const MgbaWrapper = forwardRef<MgbaHandle, MgbaWrapperProps>(
|
||||||
restart: () => mgbaRef.current?.restart(),
|
restart: () => mgbaRef.current?.restart(),
|
||||||
buttonPress: (key: GbaKey) => mgbaRef.current?.buttonPress(key),
|
buttonPress: (key: GbaKey) => mgbaRef.current?.buttonPress(key),
|
||||||
buttonRelease: (key: GbaKey) => mgbaRef.current?.buttonRelease(key),
|
buttonRelease: (key: GbaKey) => mgbaRef.current?.buttonRelease(key),
|
||||||
hardReset: () => setMgbaId((id) => id + 1),
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
useAvoidItchIoScrolling();
|
useAvoidItchIoScrolling();
|
||||||
|
@ -123,7 +122,6 @@ export const MgbaWrapper = forwardRef<MgbaHandle, MgbaWrapperProps>(
|
||||||
)}
|
)}
|
||||||
{isPlaying ? (
|
{isPlaying ? (
|
||||||
<Mgba
|
<Mgba
|
||||||
key={mgbaId}
|
|
||||||
ref={mgbaRef}
|
ref={mgbaRef}
|
||||||
gameUrl={gameUrl}
|
gameUrl={gameUrl}
|
||||||
volume={volume}
|
volume={volume}
|
||||||
|
|
Loading…
Reference in a new issue