mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-10 21:52:08 +02:00
Added a virtual get_executable_path method to Platform.
This commit is contained in:
parent
3dce2b69d9
commit
d8db74b0ed
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user