mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-03 21:51:34 +11:00
Rename to include_xm to match the rest of agb
This commit is contained in:
parent
6cb8f68104
commit
70d34f1fc8
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
use agb::sound::mixer::Frequency;
|
use agb::sound::mixer::Frequency;
|
||||||
use agb::Gba;
|
use agb::Gba;
|
||||||
use agb_tracker::{import_xm, Track, Tracker};
|
use agb_tracker::{include_xm, Track, Tracker};
|
||||||
|
|
||||||
const DB_TOFFE: Track = import_xm!("examples/db_toffe.xm");
|
const DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
|
||||||
|
|
||||||
#[agb::entry]
|
#[agb::entry]
|
||||||
fn main(mut gba: Gba) -> ! {
|
fn main(mut gba: Gba) -> ! {
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
use agb::sound::mixer::Frequency;
|
use agb::sound::mixer::Frequency;
|
||||||
use agb::Gba;
|
use agb::Gba;
|
||||||
use agb_tracker::{import_xm, Track, Tracker};
|
use agb_tracker::{include_xm, Track, Tracker};
|
||||||
|
|
||||||
const DB_TOFFE: Track = import_xm!("examples/db_toffe.xm");
|
const DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
|
||||||
|
|
||||||
#[agb::entry]
|
#[agb::entry]
|
||||||
fn main(mut gba: Gba) -> ! {
|
fn main(mut gba: Gba) -> ! {
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
//! #![no_main]
|
//! #![no_main]
|
||||||
//!
|
//!
|
||||||
//! use agb::{Gba, sound::mixer::Frequency};
|
//! use agb::{Gba, sound::mixer::Frequency};
|
||||||
//! use agb_tracker::{import_xm, Track, Tracker};
|
//! use agb_tracker::{include_xm, Track, Tracker};
|
||||||
//!
|
//!
|
||||||
//! const DB_TOFFE: Track = import_xm!("examples/db_toffe.xm");
|
//! const DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
|
||||||
//!
|
//!
|
||||||
//! #[agb::entry]
|
//! #[agb::entry]
|
||||||
//! fn main(mut gba: Gba) -> ! {
|
//! fn main(mut gba: Gba) -> ! {
|
||||||
|
@ -75,7 +75,7 @@ use agb::{
|
||||||
|
|
||||||
/// Import an XM file. Only available if you have the `xm` feature enabled (enabled by default).
|
/// Import an XM file. Only available if you have the `xm` feature enabled (enabled by default).
|
||||||
#[cfg(feature = "xm")]
|
#[cfg(feature = "xm")]
|
||||||
pub use agb_xm::import_xm;
|
pub use agb_xm::include_xm;
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub mod __private {
|
pub mod __private {
|
||||||
|
@ -83,7 +83,7 @@ pub mod __private {
|
||||||
pub use agb_tracker_interop;
|
pub use agb_tracker_interop;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A reference to a track. You should create this using one of the import macros.
|
/// A reference to a track. You should create this using one of the include macros.
|
||||||
pub use agb_tracker_interop::Track;
|
pub use agb_tracker_interop::Track;
|
||||||
|
|
||||||
/// Stores the required state in order to play tracker music.
|
/// Stores the required state in order to play tracker music.
|
||||||
|
|
|
@ -3,6 +3,6 @@ use proc_macro_error::proc_macro_error;
|
||||||
|
|
||||||
#[proc_macro_error]
|
#[proc_macro_error]
|
||||||
#[proc_macro]
|
#[proc_macro]
|
||||||
pub fn import_xm(args: TokenStream) -> TokenStream {
|
pub fn include_xm(args: TokenStream) -> TokenStream {
|
||||||
agb_xm_core::agb_xm_core(args.into()).into()
|
agb_xm_core::agb_xm_core(args.into()).into()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue