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
71a51c80
Verified
Commit
71a51c80
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
chore: more print format options
parent
f927b4a1
No related branches found
No related tags found
1 merge request
!16
Support for Game Boy Color (CGB) 😎🖍️
Pipeline
#2590
failed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontends/sdl/src/main.rs
+7
-1
7 additions, 1 deletion
frontends/sdl/src/main.rs
src/rom.rs
+1
-1
1 addition, 1 deletion
src/rom.rs
with
8 additions
and
2 deletions
frontends/sdl/src/main.rs
+
7
−
1
View file @
71a51c80
...
...
@@ -473,7 +473,13 @@ fn main() {
let
mode
=
GameBoyMode
::
from_str
(
&
args
.mode
);
// prints the current version of the emulator (informational message)
println!
(
"Boytacean v{} - {}"
,
VERSION
,
mode
);
println!
(
"========= Boytacean ========="
);
println!
(
"Version {}"
,
VERSION
);
println!
(
"Mode {}"
,
mode
);
println!
(
"CPU Freq. 4.34 Mhz"
);
println!
(
"RAM Size 32 KB"
);
println!
(
"ROM Size 32 KB"
);
println!
(
"VRAM Size 32 KB"
);
// creates a new Game Boy instance and loads both the boot ROM
// and the initial game ROM to "start the engine"
...
...
This diff is collapsed.
Click to expand it.
src/rom.rs
+
1
−
1
View file @
71a51c80
...
...
@@ -510,7 +510,7 @@ impl Display for Cartridge {
fn
fmt
(
&
self
,
f
:
&
mut
Formatter
<
'_
>
)
->
fmt
::
Result
{
write!
(
f
,
"Name
=>
{}
\n
Type
=>
{}
\n
ROM Size
=>
{}
\n
RAM Size
=>
{}
\n
CGB Mode
=>
{}"
,
"Name
{}
\n
Type
{}
\n
ROM Size
{}
\n
RAM Size
{}
\n
CGB Mode
{}"
,
self
.title
(),
self
.rom_type
(),
self
.rom_size
(),
...
...
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