From: david Date: Sun, 15 Dec 2002 14:58:08 +0000 (+0000) Subject: Add a reinit() stub for subsystems, so that they can be reinitialized X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e7dfbe292739da43a5f3fedec340a560911063c;p=flightgear.git Add a reinit() stub for subsystems, so that they can be reinitialized when needed (say, to reload the configuration files). --- diff --git a/src/Main/fgfs.cxx b/src/Main/fgfs.cxx index b85497fb6..4569a4e5a 100644 --- a/src/Main/fgfs.cxx +++ b/src/Main/fgfs.cxx @@ -26,6 +26,11 @@ FGSubsystem::init () { } +void +FGSubsystem::reinit () +{ +} + void FGSubsystem::bind () { diff --git a/src/Main/fgfs.hxx b/src/Main/fgfs.hxx index a1cc83b90..ea217c2f8 100644 --- a/src/Main/fgfs.hxx +++ b/src/Main/fgfs.hxx @@ -148,6 +148,15 @@ public: virtual void init (); + /** + * Reinitialize the subsystem. + * + *

This method should cause the subsystem to reinitialize itself, + * and (normally) to reload any configuration files.

+ */ + virtual void reinit (); + + /** * Acquire the subsystem's property bindings. *