fixed clang build
This commit is contained in:
parent
e9459da1b3
commit
ab8ce7dc32
4 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -1211,7 +1211,7 @@ void* loadLibrary(const char* path) {
|
|||
|
||||
|
||||
void unloadLibrary(void* handle) {
|
||||
dlclose(handle);
|
||||
if (handle != NULL) dlclose(handle);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue