Closed grschafer closed 2 years ago
When I created the print_flushed method the goal was to make it work with multiple arguments like the print method. However due to my lack of python knowledge and very limited time I wasn't able to achieve that.
I'm not parsing the output, I'm just forwarding it to the user.
At first glance, with my limited python knowledge this change looks fine. I'd approve it
Ok, ill try to rebuild the exe
When decompiling a map, there are a number of calls to
print_flushed
that have more than 2 arguments (here's one example: https://github.com/Beherith/springrts_smf_compiler/blob/master/pymapconv.py#L887), which cause the below crash:I've updated the
print_flushed
function to take any number of arguments, similar to the normal print statement in python. This changes the output text so that not everything printed to stdout is wrapped in tuples, see below for what that looks like. This may break programs for anyone that parses the stdout from this program (heads up to @adras who last changed stdout formatting in https://github.com/Beherith/springrts_smf_compiler/pull/18).