extern int gui_menu_on;
// from gui_funcs.cxx
-extern void reInit(void);
extern void fgDumpSnapShotWrapper();
#ifdef TR_HIRES_SNAP
extern void fgHiResDumpWrapper();
static bool
do_reset (const SGPropertyNode * arg)
{
- reInit();
+ doSimulatorReset();
return true;
}
}
-void reInit(void) // from gui_local.cxx -- TODO merge with fgReInitSubsystems()
+void doSimulatorReset(void) // from gui_local.cxx -- TODO merge with fgReInitSubsystems()
{
static SGPropertyNode_ptr master_freeze = fgGetNode("/sim/freeze/master", true);
// Reset
void fgReInitSubsystems();
+/**
+ * this is what the 'reset' command (and hence, GUI) is attached too
+ * it overlaps with fgReInitSubsystems quite substantially
+ */
+void doSimulatorReset(void);
// Set the initial position based on presets (or defaults)
bool fgInitPosition();