File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ include(FetchContent)
1111FetchContent_Declare(
1212 bave
1313 GIT_REPOSITORY https://github.com/karnkaul/bave
14- GIT_TAG ff3978f8431649007d3309db513d3de3e72fe823 # v0.4.9
14+ GIT_TAG v0.5.0
1515 SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /ext/bave"
1616)
1717
Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ void set_log_max_levels() {
4040}
4141
4242auto run (int const argc, char const * const * argv) -> int {
43+ auto data_loader = bave::DataLoaderBuilder{argc, argv}.add_zip (" assets.zip" ).add_dir (" assets" ).build ();
4344 auto create_info = bave::DesktopApp::CreateInfo{
44- .args = bave::make_args (argc, argv),
4545 .title = " Spaced" ,
4646 .mode = bave::Windowed{.extent = {1920 , 1080 }},
4747 .msaa = vk::SampleCountFlagBits::e4 ,
48- .assets_patterns = " assets " ,
48+ .data_loader = std::move (data_loader) ,
4949 };
5050
5151 set_log_max_levels ();
5252
53- auto app = bave::DesktopApp{create_info};
53+ auto app = bave::DesktopApp{std::move ( create_info) };
5454 app.set_bootloader ([](bave::App& app) { return std::make_unique<spaced::Spaced>(app); });
5555 return static_cast <int >(app.run ());
5656}
Original file line number Diff line number Diff line change 11#include < bave/graphics/particle_system.hpp>
2- #include < bave/json_io.hpp>
2+ #include < bave/io/ json_io.hpp>
33#include < bave/logger.hpp>
44#include < spaced/assets/asset_loader.hpp>
55#include < mutex>
Original file line number Diff line number Diff line change 1- #include < bave/json_io.hpp>
1+ #include < bave/io/ json_io.hpp>
22#include < spaced/services/styles.hpp>
33#include < spaced/util.hpp>
44
Original file line number Diff line number Diff line change 11#include < bave/core/is_positive.hpp>
2- #include < bave/json_io.hpp>
2+ #include < bave/io/ json_io.hpp>
33#include < bave/loader.hpp>
44#include < spaced/scenes/load_assets.hpp>
55#include < spaced/services/audio.hpp>
Original file line number Diff line number Diff line change 1- #include < bave/json_io.hpp>
1+ #include < bave/io/ json_io.hpp>
22#include < spaced/util.hpp>
33
44namespace spaced {
You can’t perform that action at this time.
0 commit comments