Skip to content

Commit 49023e7

Browse files
test and fix examples in NBL_EMBED_BUILTIN_RESOURCES mode
1 parent 3736d67 commit 49023e7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

include/nbl/system/IFileBase.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class IFileBase : public core::IReferenceCounted
7171
core::bitflag<E_CREATE_FLAGS> m_flags;
7272
};
7373

74+
NBL_ENUM_ADD_BITWISE_OPERATORS(IFileBase::E_CREATE_FLAGS);
75+
7476
}
7577

7678
#endif

src/nbl/builtin/template/CArchive.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ namespace @_NAMESPACE_@
1616
CArchive(nbl::system::logger_opt_smart_ptr&& logger);
1717

1818
protected:
19-
file_buffer_t getFileBuffer(const nbl::system::IFileArchive::SFileList::SEntry* item) override
19+
file_buffer_t getFileBuffer(const nbl::system::IFileArchive::SFileList::found_t& found) override
2020
{
21-
auto found = get_resource_runtime(item->pathRelativeToArchive.string());
22-
return { const_cast<uint8_t*>(found.first), found.second, nullptr };
21+
auto resource = get_resource_runtime(found->pathRelativeToArchive.string());
22+
return {const_cast<uint8_t*>(resource.first),resource.second,nullptr};
2323
}
2424
};
2525
}

0 commit comments

Comments
 (0)