fixed clang build

This commit is contained in:
Mikulas Florek 2023-07-22 09:10:11 +02:00
parent e9459da1b3
commit ab8ce7dc32
4 changed files with 9 additions and 9 deletions

View file

@ -68,7 +68,7 @@ AssetBrowser::ResourceView& AssetBrowser::Plugin::createView(const Path& path, S
bool isReady() override { return resource->isReady(); }
bool isFailure() override { return resource->isFailure(); }
u64 size() override { return resource->size(); }
void destroy() { LUMIX_DELETE(*allocator, this); }
void destroy() override { LUMIX_DELETE(*allocator, this); }
Resource* getResource() override { return resource; }
IAllocator* allocator;

View file

@ -1211,7 +1211,7 @@ void* loadLibrary(const char* path) {
void unloadLibrary(void* handle) {
dlclose(handle);
if (handle != NULL) dlclose(handle);
}

View file

@ -96,9 +96,9 @@ struct AssetPlugin : AssetBrowser::Plugin, AssetCompiler::IPlugin
return false;
}
bool canCreateResource() const { return true; }
bool canCreateResource() const override { return true; }
bool createResource(const char* path) {
bool createResource(const char* path) override {
OutputMemoryStream blob(m_app.getAllocator());
blob << "function update(time_delta)\nend\n";

View file

@ -2693,9 +2693,9 @@ struct ParticleSystemPlugin final : AssetBrowser::Plugin, AssetCompiler::IPlugin
return m_app.getAssetCompiler().writeCompiledResource(src.c_str(), Span(output.data(), (i32)output.size()));
}
bool canCreateResource() const { return true; }
bool canCreateResource() const override { return true; }
bool createResource(const char* path) {
bool createResource(const char* path) override {
ParticleSystemEditorResource res(Path(path), m_app, m_app.getAllocator());
res.addEmitter();
res.m_emitters[0]->initDefault(ParticleSystemResourceType::SYSTEM);
@ -2767,7 +2767,7 @@ struct FunctionBrowserPlugin : AssetBrowser::Plugin {
bool isReady() override { return m_is_ready; }
bool isFailure() override { return !m_is_ready; }
u64 size() override { return 0; }
void destroy() { LUMIX_DELETE(*allocator, this); }
void destroy() override { LUMIX_DELETE(*allocator, this); }
Resource* getResource() override { ASSERT(false); return nullptr; }
ParticleSystemEditorResource resource;
@ -2781,9 +2781,9 @@ struct FunctionBrowserPlugin : AssetBrowser::Plugin {
return *view;
}
bool canCreateResource() const { return true; }
bool canCreateResource() const override { return true; }
bool createResource(const char* path) {
bool createResource(const char* path) override {
ParticleSystemEditorResource res(Path(path), m_app, m_app.getAllocator());
res.addEmitter();
res.m_emitters[0]->initDefault(ParticleSystemResourceType::FUNCTION);