remove hard reset

This commit is contained in:
Corwin 2024-04-10 20:50:55 +01:00
parent 27ad5d1184
commit 5365ce6188
No known key found for this signature in database

View file

@ -103,7 +103,6 @@ export const MgbaWrapper = forwardRef<MgbaHandle, MgbaWrapperProps>(
restart: () => mgbaRef.current?.restart(),
buttonPress: (key: GbaKey) => mgbaRef.current?.buttonPress(key),
buttonRelease: (key: GbaKey) => mgbaRef.current?.buttonRelease(key),
hardReset: () => setMgbaId((id) => id + 1),
}));
useAvoidItchIoScrolling();
@ -123,7 +122,6 @@ export const MgbaWrapper = forwardRef<MgbaHandle, MgbaWrapperProps>(
)}
{isPlaying ? (
<Mgba
key={mgbaId}
ref={mgbaRef}
gameUrl={gameUrl}
volume={volume}