From 77ad108b77a80c1507c5af46356bb6e3bc89d760 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 9 Nov 2021 17:55:55 +0100 Subject: [PATCH] Added static arg_setup method to the platform initializer. --- platform/platform_initializer.cpp | 6 ++++++ platform/platform_initializer.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/platform/platform_initializer.cpp b/platform/platform_initializer.cpp index b777a2f..ea6cd0f 100644 --- a/platform/platform_initializer.cpp +++ b/platform/platform_initializer.cpp @@ -7,6 +7,12 @@ #include "linux/platform_linux.h" #endif +void PlatformInitializer::arg_setup(int argc, char **argv, char **envp) { + if (_platform) { + _platform->arg_setup(argc, argv, envp); + } +} + void PlatformInitializer::allocate_platform() { ERR_FAIL_COND(_platform); diff --git a/platform/platform_initializer.h b/platform/platform_initializer.h index 5197527..1aea895 100644 --- a/platform/platform_initializer.h +++ b/platform/platform_initializer.h @@ -7,6 +7,8 @@ class PlatformInitializer { public: + static void arg_setup(int argc, char **argv, char **envp); + static void allocate_platform(); static void free_platform();