mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'istoplevel' argument to input.add_callback
This commit is contained in:
parent
97c8bac9ff
commit
bcfdb6196a
2 changed files with 6 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ void Engine::onContentLoad() {
|
|||
for (auto& pack : content->getAllContentPacks()) {
|
||||
auto configFolder = pack.folder / "config";
|
||||
auto bindsFile = configFolder / "bindings.toml";
|
||||
logger.info() << "loading bindings: " << bindsFile.string();
|
||||
if (io::is_regular_file(bindsFile)) {
|
||||
input->getBindings().read(
|
||||
toml::parse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue