From a2dadb21ce0dc5ca0bdc2c3d8459d247a328c557 Mon Sep 17 00:00:00 2001 From: PhoenixBound Date: Tue, 2 Jun 2026 19:56:08 -0500 Subject: [PATCH] Print output from the CCScript compiler if there is any Currently, the CCScript compiler's output is only printed if an error occurs and compilation completely fails. This commit changes that to print the output in the success case, too. This solves the problem of the CCScript compiler issuing warnings for certain behaviors and the user being completely unable to see the warnings. --- coilsnake/ui/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coilsnake/ui/common.py b/coilsnake/ui/common.py index 57ce8f3..e7b78c5 100644 --- a/coilsnake/ui/common.py +++ b/coilsnake/ui/common.py @@ -129,7 +129,9 @@ def compile_project(project_path, base_rom_filename, output_rom_filename, ccscri "-o", output_rom_filename] + script_filenames ccc_returncode, ccc_log = ccc(ccc_args) - if ccc_returncode == 0: + if ccc_returncode == 0 and ccc_log: + log.info("CCScript compilation succeeded with output:\n" + ccc_log) + elif ccc_returncode == 0: log.info("Finished compiling CCScript") else: raise CCScriptCompilationError("CCScript compilation failed with output:\n" + ccc_log)