Skip to content
Snippets Groups Projects
Verified Commit 4d4a83dd authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: initial support for the example

parent 1e99d525
No related branches found
No related tags found
No related merge requests found
......@@ -20,3 +20,9 @@ wasm-bindgen = { version = "0.2", optional = true }
debug = false
lto = true
opt-level = 3
[workspace]
members = [
".",
"examples/sdl",
]
[package]
name = "boytacean-sdl"
version = "0.1.0"
authors = ["João Magalhães <joamag@gmail.com>"]
description = "Game Boy Emulator SDL (Desktop) Application"
license = "Apache-2.0"
keywords = ["gameboy", "emulator", "rust", "sdl"]
edition = "2018"
[dependencies.boytacean]
path = "../.."
[dependencies.sdl2]
version = "0.35"
features = ["ttf", "image", "gfx", "mixer", "static-link", "use-vcpkg"]
[package.metadata.vcpkg]
dependencies = ["sdl2", "sdl2-image[libjpeg-turbo,tiff,libwebp]", "sdl2-ttf", "sdl2-gfx", "sdl2-mixer"]
git = "https://github.com/microsoft/vcpkg"
rev = "261c458af6e3eed5d099144aff95d2b5035f656b"
[package.metadata.vcpkg.target]
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
File moved
use boytacean::gb::GameBoy;
fn main() {
let mut game_boy = GameBoy::new();
game_boy.load_boot_default()
}
File added
......@@ -22,6 +22,6 @@ impl GameBoy {
}
pub fn load_boot_default(&mut self) {
self.load_boot("./res/mbr_rom.bin");
self.load_boot("./res/dmg_rom.bin");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment