summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/io/pck_packer.cpp (renamed from tools/pck/pck_packer.cpp)0
-rw-r--r--core/io/pck_packer.h (renamed from tools/pck/pck_packer.h)0
-rw-r--r--core/register_core_types.cpp3
-rw-r--r--main/main.cpp4
-rw-r--r--tools/SCsub1
-rw-r--r--tools/pck/SCsub4
6 files changed, 4 insertions, 8 deletions
diff --git a/tools/pck/pck_packer.cpp b/core/io/pck_packer.cpp
index 04b88ea028..04b88ea028 100644
--- a/tools/pck/pck_packer.cpp
+++ b/core/io/pck_packer.cpp
diff --git a/tools/pck/pck_packer.h b/core/io/pck_packer.h
index b1182335e2..b1182335e2 100644
--- a/tools/pck/pck_packer.h
+++ b/core/io/pck_packer.h
diff --git a/core/register_core_types.cpp b/core/register_core_types.cpp
index 7e4ba039c5..c3a127afb9 100644
--- a/core/register_core_types.cpp
+++ b/core/register_core_types.cpp
@@ -49,6 +49,7 @@
#include "os/input.h"
#include "core/io/xml_parser.h"
#include "io/http_client.h"
+#include "io/pck_packer.h"
#include "packed_data_container.h"
#include "func_ref.h"
#include "input_map.h"
@@ -146,6 +147,8 @@ void register_core_types() {
ObjectTypeDB::register_type<ConfigFile>();
+ ObjectTypeDB::register_type<PCKPacker>();
+
ObjectTypeDB::register_type<PackedDataContainer>();
ObjectTypeDB::register_virtual_type<PackedDataContainerRef>();
ObjectTypeDB::register_type<AStar>();
diff --git a/main/main.cpp b/main/main.cpp
index d2ba38b094..cd6858fc24 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -57,7 +57,6 @@
#include "tools/editor/editor_node.h"
#include "tools/editor/project_manager.h"
-#include "tools/pck/pck_packer.h"
#endif
#include "io/file_access_network.h"
@@ -996,7 +995,7 @@ Error Main::setup2() {
#ifdef TOOLS_ENABLED
ObjectTypeDB::set_current_api(ObjectTypeDB::API_EDITOR);
EditorNode::register_editor_types();
- ObjectTypeDB::register_type<PCKPacker>(); // todo: move somewhere else
+
ObjectTypeDB::set_current_api(ObjectTypeDB::API_CORE);
#endif
@@ -1755,4 +1754,3 @@ void Main::cleanup() {
}
-
diff --git a/tools/SCsub b/tools/SCsub
index aaebab724a..67b1f20e72 100644
--- a/tools/SCsub
+++ b/tools/SCsub
@@ -117,7 +117,6 @@ if (env["tools"]!="no"):
SConscript('editor/SCsub');
SConscript('collada/SCsub');
SConscript('doc/SCsub')
- SConscript('pck/SCsub')
lib = env.Library("tool",env.tool_sources)
diff --git a/tools/pck/SCsub b/tools/pck/SCsub
deleted file mode 100644
index cf98ae145d..0000000000
--- a/tools/pck/SCsub
+++ /dev/null
@@ -1,4 +0,0 @@
-Import('env')
-
-if env["tools"] == "yes":
- env.add_source_files(env.tool_sources, "*.cpp")