mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
use portable atomic from agb
This commit is contained in:
parent
c632eb4ea3
commit
a0895635ab
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue