Move fox32.rom into the src folder

This commit is contained in:
Ry 2022-08-18 23:18:27 -07:00
parent e630e15661
commit 38f81ce4e3
3 changed files with 8 additions and 1 deletions

View File

@ -20,6 +20,9 @@ jobs:
workflow: fox32rom-unstable.yml
workflow_conclusion: success
- name: Move fox32.rom into the src folder
run: cp fox32.rom/fox32.rom src/fox32.rom
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:

View File

@ -20,6 +20,10 @@ jobs:
workflow: fox32rom-unstable.yml
workflow_conclusion: success
- name: Move fox32.rom into the src folder
run: cp fox32.rom/fox32.rom src/fox32.rom
shell: powershell
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:

View File

@ -55,7 +55,7 @@ fn read_rom() -> Vec<u8> {
read("fox32.rom").unwrap_or_else(|_| {
read("../fox32rom/fox32.rom").unwrap_or_else(|_| {
println!("fox32.rom file not found, using embedded ROM");
include_bytes!("../fox32.rom/fox32.rom").to_vec()
include_bytes!("fox32.rom").to_vec()
})
})
}