[Scummvm-devel] consoles, warnings, errors and so forth

Max Horn max at quendi.de
Thu Jun 2 12:05:44 CEST 2011


Am 01.06.2011 um 16:23 schrieb Max Horn:
[...]

>> 
>>> That would be nice. And easily doable on Mac, probably on Windows, not so sure on Linux. Alas, this would be encapsulated in an OSystem API, and I think it would be good to have this, at least everywhere we can implement it.
>> 
>>> For Unices in general, I see no alternative to providing the path to the log in the dialog / providing instructions to find it, sadly. But for Windows & Mac, an "open log" button would clearly superior. Let's do it ;).
>> 
>> I was thinking we could just name the log files with ".txt" and then call
>> xdg-open, which I hope is present on most Linux machines, or Notepad on
>> Windows, or TextEdit on Mac, or whatever the equivalent is on other OSes.
> 
> Sure, why not. So, we'd add a new OSystem API for that? Like
>  virtual void OSystem::openLogFileInEditor() {}
> or so...
> 

So... do we do this? Any yeahs or nays? 

Note I specifically decided against an "openFileInEditor(FSNode )" because then we'd have to add a way to obtain an FSNode for the logfile. So, I figured, let's keep it simple. If we ever need this for other files, let's worry about that then :).

Cheers,
Max



More information about the Scummvm-devel mailing list