migrate from std::filesystem::path to io::path (WIP)
This commit is contained in:
+4
-4
@@ -11,7 +11,7 @@
|
||||
#include "voxels/Block.hpp"
|
||||
|
||||
// All in-game definitions (blocks, items, etc..)
|
||||
void corecontent::setup(const EnginePaths& paths, ContentBuilder& builder) {
|
||||
void corecontent::setup(ContentBuilder& builder) {
|
||||
{
|
||||
Block& block = builder.blocks.create(CORE_AIR);
|
||||
block.replaceable = true;
|
||||
@@ -28,10 +28,10 @@ void corecontent::setup(const EnginePaths& paths, ContentBuilder& builder) {
|
||||
item.iconType = ItemIconType::NONE;
|
||||
}
|
||||
|
||||
auto bindsFile = paths.getResourcesFolder()/fs::path("bindings.toml");
|
||||
if (fs::is_regular_file(bindsFile)) {
|
||||
auto bindsFile = "res:bindings.toml";
|
||||
if (io::is_regular_file(bindsFile)) {
|
||||
Events::loadBindings(
|
||||
bindsFile.u8string(), io::read_string(bindsFile), BindType::BIND
|
||||
bindsFile, io::read_string(bindsFile), BindType::BIND
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user