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
b688d6b0
Verified
Commit
b688d6b0
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
reafctor: rorder of parsing values
parent
5e9ea7fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25
Game Genie support
Pipeline
#3148
canceled
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontends/sdl/src/main.rs
+9
-6
9 additions, 6 deletions
frontends/sdl/src/main.rs
with
9 additions
and
6 deletions
frontends/sdl/src/main.rs
+
9
−
6
View file @
b688d6b0
...
...
@@ -789,12 +789,6 @@ fn main() {
// parses the provided command line arguments and uses them to
// obtain structured values
let
args
=
Args
::
parse
();
let
mode
=
if
args
.mode
==
"auto"
{
GameBoyMode
::
Dmg
}
else
{
GameBoyMode
::
from_string
(
&
args
.mode
)
};
let
auto_mode
=
args
.mode
==
"auto"
;
// in case the default ROM path is provided and the file does not
// exist then fails gracefully
...
...
@@ -804,6 +798,15 @@ fn main() {
return
;
}
// tries to build the target mode from the mode argument
// parsing it if it does not contain the "auto" value
let
mode
=
if
args
.mode
==
"auto"
{
GameBoyMode
::
Dmg
}
else
{
GameBoyMode
::
from_string
(
&
args
.mode
)
};
let
auto_mode
=
args
.mode
==
"auto"
;
// creates a new Game Boy instance and loads both the boot ROM
// and the initial game ROM to "start the engine"
let
mut
game_boy
=
GameBoy
::
new
(
Some
(
mode
));
...
...
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