mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #24500 from akien-mga/drop-global_defaults
Core: Drop unused global_defaults logic
This commit is contained in:
16
core/SCsub
16
core/SCsub
@@ -8,22 +8,6 @@ from platform_methods import run_in_subprocess
|
||||
|
||||
env.core_sources = []
|
||||
|
||||
# Generate global defaults
|
||||
gd_call = ""
|
||||
gd_inc = ""
|
||||
|
||||
for x in env.global_defaults:
|
||||
env.core_sources.append("#platform/" + x + "/globals/global_defaults.cpp")
|
||||
gd_inc += '#include "platform/' + x + '/globals/global_defaults.h"\n'
|
||||
gd_call += "\tregister_" + x + "_global_defaults();\n"
|
||||
|
||||
gd_cpp = '#include "core/project_settings.h"\n'
|
||||
gd_cpp += gd_inc
|
||||
gd_cpp += "void ProjectSettings::register_global_defaults() {\n" + gd_call + "\n}\n"
|
||||
|
||||
with open("global_defaults.gen.cpp", "w") as f:
|
||||
f.write(gd_cpp)
|
||||
|
||||
|
||||
# Generate AES256 script encryption key
|
||||
import os
|
||||
|
||||
@@ -152,8 +152,6 @@ public:
|
||||
|
||||
void set_disable_feature_overrides(bool p_disable);
|
||||
|
||||
void register_global_defaults();
|
||||
|
||||
bool is_using_datapack() const;
|
||||
|
||||
void set_registering_order(bool p_enable);
|
||||
|
||||
Reference in New Issue
Block a user