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
3055417e
Verified
Commit
3055417e
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
fix: gameboy ts code according to new load
parent
fd61f75b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!16
Support for Game Boy Color (CGB) 😎🖍️
Pipeline
#2560
failed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontends/web/ts/gb.ts
+4
-3
4 additions, 3 deletions
frontends/web/ts/gb.ts
with
4 additions
and
3 deletions
frontends/web/ts/gb.ts
+
4
−
3
View file @
3055417e
...
...
@@ -31,7 +31,8 @@ import {
default
as
_wasm
,
GameBoy
,
PadKey
,
PpuMode
PpuMode
,
GameBoyMode
}
from
"
../lib/boytacean
"
;
import
info
from
"
../package.json
"
;
...
...
@@ -389,7 +390,7 @@ export class GameboyEmulator extends EmulatorBase implements Emulator {
// and builds a new instance of it
switch
(
engine
)
{
case
"
neo
"
:
this
.
gameBoy
=
new
GameBoy
();
this
.
gameBoy
=
new
GameBoy
(
GameBoyMode
.
Dmg
);
break
;
default
:
if
(
!
this
.
gameBoy
)
{
...
...
@@ -406,7 +407,7 @@ export class GameboyEmulator extends EmulatorBase implements Emulator {
// resets the Game Boy engine to restore it into
// a valid state ready to be used
this
.
gameBoy
.
reset
();
this
.
gameBoy
.
load
_boot_default
(
);
this
.
gameBoy
.
load
(
true
);
const
cartridge
=
this
.
gameBoy
.
load_rom_ws
(
romData
);
// in case there's a serial device involved tries to load
...
...
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