You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Merge pull request #6677 from J08nY/issue-pck-packer
PCKPacker: Move to core from tools, fixes #4129
This commit is contained in:
@@ -49,6 +49,7 @@
|
|||||||
#include "os/input.h"
|
#include "os/input.h"
|
||||||
#include "core/io/xml_parser.h"
|
#include "core/io/xml_parser.h"
|
||||||
#include "io/http_client.h"
|
#include "io/http_client.h"
|
||||||
|
#include "io/pck_packer.h"
|
||||||
#include "packed_data_container.h"
|
#include "packed_data_container.h"
|
||||||
#include "func_ref.h"
|
#include "func_ref.h"
|
||||||
#include "input_map.h"
|
#include "input_map.h"
|
||||||
@@ -146,6 +147,8 @@ void register_core_types() {
|
|||||||
|
|
||||||
ObjectTypeDB::register_type<ConfigFile>();
|
ObjectTypeDB::register_type<ConfigFile>();
|
||||||
|
|
||||||
|
ObjectTypeDB::register_type<PCKPacker>();
|
||||||
|
|
||||||
ObjectTypeDB::register_type<PackedDataContainer>();
|
ObjectTypeDB::register_type<PackedDataContainer>();
|
||||||
ObjectTypeDB::register_virtual_type<PackedDataContainerRef>();
|
ObjectTypeDB::register_virtual_type<PackedDataContainerRef>();
|
||||||
ObjectTypeDB::register_type<AStar>();
|
ObjectTypeDB::register_type<AStar>();
|
||||||
|
|||||||
@@ -57,7 +57,6 @@
|
|||||||
#include "tools/editor/editor_node.h"
|
#include "tools/editor/editor_node.h"
|
||||||
#include "tools/editor/project_manager.h"
|
#include "tools/editor/project_manager.h"
|
||||||
|
|
||||||
#include "tools/pck/pck_packer.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "io/file_access_network.h"
|
#include "io/file_access_network.h"
|
||||||
@@ -1006,7 +1005,7 @@ Error Main::setup2() {
|
|||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
ObjectTypeDB::set_current_api(ObjectTypeDB::API_EDITOR);
|
ObjectTypeDB::set_current_api(ObjectTypeDB::API_EDITOR);
|
||||||
EditorNode::register_editor_types();
|
EditorNode::register_editor_types();
|
||||||
ObjectTypeDB::register_type<PCKPacker>(); // todo: move somewhere else
|
|
||||||
ObjectTypeDB::set_current_api(ObjectTypeDB::API_CORE);
|
ObjectTypeDB::set_current_api(ObjectTypeDB::API_CORE);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -1765,4 +1764,3 @@ void Main::cleanup() {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ if (env["tools"]!="no"):
|
|||||||
SConscript('editor/SCsub');
|
SConscript('editor/SCsub');
|
||||||
SConscript('collada/SCsub');
|
SConscript('collada/SCsub');
|
||||||
SConscript('doc/SCsub')
|
SConscript('doc/SCsub')
|
||||||
SConscript('pck/SCsub')
|
|
||||||
|
|
||||||
lib = env.Library("tool",env.tool_sources)
|
lib = env.Library("tool",env.tool_sources)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
Import('env')
|
|
||||||
|
|
||||||
if env["tools"] == "yes":
|
|
||||||
env.add_source_files(env.tool_sources, "*.cpp")
|
|
||||||
Reference in New Issue
Block a user