Added a virtual get_executable_path method to Platform.

This commit is contained in:
Relintai 2021-11-09 19:27:43 +01:00
parent 3dce2b69d9
commit d8db74b0ed
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,10 @@ void Platform::arg_setup(int argc, char **argv, char **envp) {
arg_parser.setup(argc, argv, envp);
}
String Platform::get_executable_path() {
return arg_parser.executable_name;
}
Platform *Platform::get_singleton() {
return _self;
}

View File

@ -7,6 +7,8 @@ class Platform {
public:
virtual void arg_setup(int argc, char **argv, char **envp);
virtual String get_executable_path();
static Platform *get_singleton();
Platform();