Display annoying message when process monitor is disabled

This commit is contained in:
Mathieu Comandon 2018-05-18 18:41:58 -07:00
parent b4b5561361
commit e5002482cd

View file

@ -316,6 +316,8 @@ class Game(object):
exclude_processes = shlex.split(system_config.get('exclude_processes', ''))
monitoring_disabled = system_config.get('disable_monitoring')
if monitoring_disabled:
show_obnoxious_process_monitor_message()
process_watch = not monitoring_disabled
self.game_thread = LutrisThread(launch_arguments,
@ -439,3 +441,21 @@ class Game(object):
logger.info("Steam game %s updating, setting game thread as not ready",
appmanifest.steamid)
self.game_thread.ready_state = False
def show_obnoxious_process_monitor_message():
"""Display an annoying message for people who disable the process monitor"""
for _ in range(5):
logger.critical("")
logger.critical(" ****************************************************")
logger.critical(" ****************************************************")
logger.critical(" *** YOU HAVE THE PROCESS MONITOR DISABLED!!!!! ***")
logger.critical(" ****************************************************")
logger.critical(" ****************************************************")
logger.critical("THIS OPTION WAS IMPLEMENTED AS A WORKAROUND FOR A BUG THAT HAS BEEN FIXED!!11!!1")
logger.critical("RUNNING GAMES WITH THE PROCESS MONITOR DISABLED IS NOT SUPPORTED!!!")
logger.critical("YOU ARE DISCOURAGED FROM REPORTING ISSUES WITH THE PROCESS MONITOR DISABLED!!!")
logger.critical("THIS OPTION WILL BE REMOVED IN A FUTURE RELEASE!!!!!!!")
logger.critical("IF YOU THINK THIS OPTION CAN BE USEFUL FOR ANY MEANS PLEASE LET US KNOW!!!!")
for _ in range(5):
logger.critical("")