Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
7ec0c6db
Verified
Commit
7ec0c6db
authored
7 months ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
fix: function naming
parent
030f92b8
No related branches found
No related tags found
No related merge requests found
Pipeline
#4985
passed
7 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontends/web/ts/gb.ts
+5
-5
5 additions, 5 deletions
frontends/web/ts/gb.ts
with
5 additions
and
5 deletions
frontends/web/ts/gb.ts
+
5
−
5
View file @
7ec0c6db
...
...
@@ -33,7 +33,7 @@ import {
import
{
Cartridge
,
default
as
_
wasm
,
default
as
wasm
,
GameBoy
,
GameBoyMode
,
GameBoySpeed
,
...
...
@@ -172,7 +172,7 @@ export class GameboyEmulator extends EmulatorLogic implements Emulator {
async
init
()
{
// initializes the WASM module, this is required
// so that the global symbols become available
await
wasm
();
await
__
wasm
();
}
/**
...
...
@@ -247,7 +247,7 @@ export class GameboyEmulator extends EmulatorLogic implements Emulator {
}
async
hardReset
()
{
await
wasm
(
false
);
await
__
wasm
(
false
);
await
this
.
boot
({
engine
:
this
.
_engine
||
"
auto
"
,
restore
:
false
,
...
...
@@ -986,10 +986,10 @@ console.image = (url: string, size = 80) => {
console
.
log
(
"
%c
"
,
style
);
};
const
wasm
=
async
(
setHook
=
true
)
=>
{
const
__
wasm
=
async
(
setHook
=
true
)
=>
{
// waits for the WASM module to be (hard) re-loaded
// this should be an expensive operation
await
_
wasm
();
await
wasm
();
// in case the set hook flag is set, then tries to
// set the panic hook for the WASM module, this call
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment