use portable atomic from agb

This commit is contained in:
Corwin 2024-04-09 22:08:55 +01:00
parent c632eb4ea3
commit a0895635ab
No known key found for this signature in database
4 changed files with 2 additions and 4 deletions

View file

@ -6,7 +6,6 @@ edition = "2021"
[dependencies] [dependencies]
agb = { version = "0.19.1", path = "../../agb" } agb = { version = "0.19.1", path = "../../agb" }
portable-atomic = { version = "1.6.0", default-features = false }
[profile.dev] [profile.dev]
opt-level = 3 opt-level = 3

View file

@ -1,6 +1,6 @@
use agb::external::portable_atomic::{AtomicU32, Ordering};
use agb::save::{Error, SaveManager}; use agb::save::{Error, SaveManager};
use agb::Gba; use agb::Gba;
use portable_atomic::{AtomicU32, Ordering};
static HIGH_SCORE: AtomicU32 = AtomicU32::new(0); static HIGH_SCORE: AtomicU32 = AtomicU32::new(0);

View file

@ -10,7 +10,6 @@ edition = "2021"
agb = { version = "0.19.1", path = "../../agb" } agb = { version = "0.19.1", path = "../../agb" }
agb_tracker = { version = "0.19.1", path = "../../tracker/agb-tracker", default-features = false, features = ["xm"] } agb_tracker = { version = "0.19.1", path = "../../tracker/agb-tracker", default-features = false, features = ["xm"] }
slotmap = { version = "1", default-features = false } slotmap = { version = "1", default-features = false }
portable-atomic = { version = "1.6.0", default-features = false }
[profile.dev] [profile.dev]
opt-level = 3 opt-level = 3

View file

@ -1,8 +1,8 @@
use agb::external::portable_atomic::{AtomicU32, Ordering};
use agb::{ use agb::{
save::{Error, SaveManager}, save::{Error, SaveManager},
Gba, Gba,
}; };
use portable_atomic::{AtomicU32, Ordering};
static MAXIMUM_LEVEL: AtomicU32 = AtomicU32::new(0); static MAXIMUM_LEVEL: AtomicU32 = AtomicU32::new(0);