You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Manage time singleton
This commit is contained in:
@@ -132,7 +132,6 @@ static InputMap *input_map = nullptr;
|
||||
static TranslationServer *translation_server = nullptr;
|
||||
static Performance *performance = nullptr;
|
||||
static PackedData *packed_data = nullptr;
|
||||
static Time *time_singleton = nullptr;
|
||||
#ifdef MINIZIP_ENABLED
|
||||
static ZipArchive *zip_packed_data = nullptr;
|
||||
#endif
|
||||
@@ -783,7 +782,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
MAIN_PRINT("Main: Initialize Globals");
|
||||
|
||||
input_map = memnew(InputMap);
|
||||
time_singleton = memnew(Time);
|
||||
globals = memnew(ProjectSettings);
|
||||
|
||||
register_core_settings(); //here globals are present
|
||||
@@ -2289,9 +2287,6 @@ error:
|
||||
if (input_map) {
|
||||
memdelete(input_map);
|
||||
}
|
||||
if (time_singleton) {
|
||||
memdelete(time_singleton);
|
||||
}
|
||||
if (translation_server) {
|
||||
memdelete(translation_server);
|
||||
}
|
||||
@@ -4030,9 +4025,6 @@ void Main::cleanup(bool p_force) {
|
||||
if (input_map) {
|
||||
memdelete(input_map);
|
||||
}
|
||||
if (time_singleton) {
|
||||
memdelete(time_singleton);
|
||||
}
|
||||
if (translation_server) {
|
||||
memdelete(translation_server);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user