summaryrefslogtreecommitdiff
path: root/platform/server/os_server.cpp
diff options
context:
space:
mode:
authorMarc Gilleron <marc.gilleron@gmail.com>2018-06-11 02:59:53 +0200
committerMarc Gilleron <marc.gilleron@gmail.com>2018-12-15 05:34:53 +0000
commit065e2670af53ae2f71b78d57f8a217b4539cbbe2 (patch)
treea6b802b74f6f7ebd2018b5a3d35061bdcb91eb9d /platform/server/os_server.cpp
parentca28c455bfdc8408485c217c17f07011c0b43f64 (diff)
Added basic support for custom resource savers and loaders
Diffstat (limited to 'platform/server/os_server.cpp')
-rw-r--r--platform/server/os_server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/server/os_server.cpp b/platform/server/os_server.cpp
index 60f20d6009..5d67e2113f 100644
--- a/platform/server/os_server.cpp
+++ b/platform/server/os_server.cpp
@@ -99,7 +99,7 @@ Error OS_Server::initialize(const VideoMode &p_desired, int p_video_driver, int
_ensure_user_data_dir();
- resource_loader_dummy = memnew(ResourceFormatDummyTexture);
+ resource_loader_dummy.instance();
ResourceLoader::add_resource_format_loader(resource_loader_dummy);
return OK;
@@ -118,7 +118,8 @@ void OS_Server::finalize() {
memdelete(power_manager);
- memdelete(resource_loader_dummy);
+ ResourceLoader::remove_resource_format_loader(resource_loader_dummy);
+ resource_loader_dummy.unref();
args.clear();
}