Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename example, update Rust edition #17

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "bevy_fmod"
description = "Idiomatic FMOD in Bevy"
authors = ["Fabian 'Salzian' Fritzsche <bevy_fmod@salzian.dev>"]
edition = "2021"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how I missed that, lmao. Such a rookie mistake.

repository = "https://github.com/salzian/bevy_fmod"
version = "0.2.0"
license = "MIT OR Apache-2.0"
Expand All @@ -17,4 +18,4 @@ libfmod = "2.2.607"
bevy = "0.11.2"

[[example]]
name = "hello_world"
name = "minimal"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed 👍

3 changes: 0 additions & 3 deletions examples/hello_world.rs → examples/minimal.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate bevy;
extern crate bevy_fmod;

use bevy::prelude::EventWriter;
use bevy::DefaultPlugins;
use bevy::{app::App, prelude::Startup};
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
extern crate anyhow;
extern crate bevy;
extern crate bevy_mod_sysfail;
extern crate libfmod;

mod play_sound_event;
mod plugin;

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use crate::PlaySoundEvent;
use bevy::app::{App, Plugin};
use bevy::log::{debug, trace};
use bevy::prelude::{EventReader, NonSend, PostUpdate, Resource, Startup, Update, World};
use bevy_mod_sysfail::sysfail;
use libfmod::ffi::{FMOD_INIT_NORMAL, FMOD_STUDIO_INIT_NORMAL, FMOD_STUDIO_LOAD_BANK_NORMAL};
use libfmod::{EventDescription, Studio};
use play_sound_event::PlaySoundEvent;
use std::env::var;
use std::fs::{canonicalize, read_dir};
use std::path::{Path, PathBuf};
Expand Down