1
0
Fork 0
mirror of synced 2024-05-22 13:32:55 +12:00

Launcher: Color output to STDERR as a slight red

This commit is contained in:
loathingKernel 2024-02-05 21:17:01 +02:00
parent b7b1bc6406
commit 2f84a501d5
2 changed files with 4 additions and 4 deletions

View file

@ -295,10 +295,10 @@ class RareLauncher(RareApp):
))
if self.rgame.app_name in DETACHED_APP_NAMES and platform.system() == "Windows":
self.game_process.deleteLater()
subprocess.Popen([args.executable] + args.arguments, cwd=args.working_directory,
env={i: args.environment.value(i) for i in args.environment.keys()})
if self.console:
self.console.log("Launching game as a detached process")
subprocess.Popen([args.executable] + args.arguments, cwd=args.working_directory,
env={i: args.environment.value(i) for i in args.environment.keys()})
self.stop()
return
if self.args.dry_run:

View file

@ -173,12 +173,12 @@ class ConsoleEdit(QPlainTextEdit):
self._cursor_output = self.textCursor()
def log(self, text):
html = f"<p style=\"color:#BBB;white-space:pre\">{text}</p>"
html = f"<p style=\"color:#aaa;white-space:pre\">{text}</p>"
self._cursor_output.insertHtml(html)
self.scroll_to_last_line()
def error(self, text):
html = f"<p style=\"color:#eee;white-space:pre\">{text}</p>"
html = f"<p style=\"color:#a33;white-space:pre\">{text}</p>"
self._cursor_output.insertHtml(html)
self.scroll_to_last_line()