From a0895635abff3eba57dca725ce7aa18d50ef2ad2 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 9 Apr 2024 22:08:55 +0100 Subject: [PATCH] use portable atomic from agb --- examples/hyperspace-roll/Cargo.toml | 1 - examples/hyperspace-roll/src/save.rs | 2 +- examples/the-dungeon-puzzlers-lament/Cargo.toml | 1 - examples/the-dungeon-puzzlers-lament/src/save.rs | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/hyperspace-roll/Cargo.toml b/examples/hyperspace-roll/Cargo.toml index 7ed75561..d84b04d0 100644 --- a/examples/hyperspace-roll/Cargo.toml +++ b/examples/hyperspace-roll/Cargo.toml @@ -6,7 +6,6 @@ edition = "2021" [dependencies] agb = { version = "0.19.1", path = "../../agb" } -portable-atomic = { version = "1.6.0", default-features = false } [profile.dev] opt-level = 3 diff --git a/examples/hyperspace-roll/src/save.rs b/examples/hyperspace-roll/src/save.rs index 1554e195..ada5cf6a 100644 --- a/examples/hyperspace-roll/src/save.rs +++ b/examples/hyperspace-roll/src/save.rs @@ -1,6 +1,6 @@ +use agb::external::portable_atomic::{AtomicU32, Ordering}; use agb::save::{Error, SaveManager}; use agb::Gba; -use portable_atomic::{AtomicU32, Ordering}; static HIGH_SCORE: AtomicU32 = AtomicU32::new(0); diff --git a/examples/the-dungeon-puzzlers-lament/Cargo.toml b/examples/the-dungeon-puzzlers-lament/Cargo.toml index 9865ba2a..90644ac3 100644 --- a/examples/the-dungeon-puzzlers-lament/Cargo.toml +++ b/examples/the-dungeon-puzzlers-lament/Cargo.toml @@ -10,7 +10,6 @@ edition = "2021" agb = { version = "0.19.1", path = "../../agb" } agb_tracker = { version = "0.19.1", path = "../../tracker/agb-tracker", default-features = false, features = ["xm"] } slotmap = { version = "1", default-features = false } -portable-atomic = { version = "1.6.0", default-features = false } [profile.dev] opt-level = 3 diff --git a/examples/the-dungeon-puzzlers-lament/src/save.rs b/examples/the-dungeon-puzzlers-lament/src/save.rs index d6830b9d..5923fa5c 100644 --- a/examples/the-dungeon-puzzlers-lament/src/save.rs +++ b/examples/the-dungeon-puzzlers-lament/src/save.rs @@ -1,8 +1,8 @@ +use agb::external::portable_atomic::{AtomicU32, Ordering}; use agb::{ save::{Error, SaveManager}, Gba, }; -use portable_atomic::{AtomicU32, Ordering}; static MAXIMUM_LEVEL: AtomicU32 = AtomicU32::new(0);