Update fenrir.py
This commit is contained in:
parent
a2ef1b4e43
commit
b5940c22f8
@ -78,18 +78,23 @@ class fenrir():
|
|||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
if self.environment['runtime']['inputManager']:
|
if self.environment['runtime']['inputManager']:
|
||||||
self.environment['runtime']['inputManager'].shutdown(self.environment)
|
self.environment['runtime']['inputManager'].shutdown(self.environment)
|
||||||
|
del self.environment['runtime']['inputManager']
|
||||||
self.environment['runtime']['outputManager'].presentText(self.environment, "Quit Fenrir", soundIcon='ScreenReaderOff', interrupt=True)
|
self.environment['runtime']['outputManager'].presentText(self.environment, "Quit Fenrir", soundIcon='ScreenReaderOff', interrupt=True)
|
||||||
time.sleep(.8) # wait a little for sound
|
time.sleep(.8) # wait a little for sound
|
||||||
|
|
||||||
if self.environment['runtime']['screenManager']:
|
if self.environment['runtime']['screenManager']:
|
||||||
self.environment['runtime']['screenManager'].shutdown(self.environment)
|
self.environment['runtime']['screenManager'].shutdown(self.environment)
|
||||||
|
del self.environment['runtime']['screenManager']
|
||||||
if self.environment['runtime']['commandManager']:
|
if self.environment['runtime']['commandManager']:
|
||||||
self.environment['runtime']['commandManager'].shutdown(self.environment)
|
self.environment['runtime']['commandManager'].shutdown(self.environment)
|
||||||
|
del self.environment['runtime']['commandManager']
|
||||||
if self.environment['runtime']['outputManager']:
|
if self.environment['runtime']['outputManager']:
|
||||||
self.environment['runtime']['outputManager'].shutdown(self.environment)
|
self.environment['runtime']['outputManager'].shutdown(self.environment)
|
||||||
|
del self.environment['runtime']['outputManager']
|
||||||
|
|
||||||
if self.environment['runtime']['debug']:
|
if self.environment['runtime']['debug']:
|
||||||
self.environment['runtime']['debug'].closeDebugFile()
|
self.environment['runtime']['debug'].closeDebugFile()
|
||||||
|
del self.environment['runtime']['debug']
|
||||||
time.sleep(0.5) # wait a little before splatter it :)
|
time.sleep(0.5) # wait a little before splatter it :)
|
||||||
self.environment = None
|
self.environment = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user