Added static arg_setup method to the platform initializer.

This commit is contained in:
Relintai 2021-11-09 17:55:55 +01:00
parent eb8c105f72
commit 77ad108b77
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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();