OpenTTD

Tasklist

FS#133 - list_patches for console

Attached to Project: OpenTTD
Opened by madman2003 (madman2003) - Saturday, 22 April 2006, 09:28 GMT
Type Patch
Category Interface
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 0.4.7
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The console lacked the ability to list patches and that is needed to reduce the number of gui options.

I don't know if and how to catagorize patches, since that seems to be strictly gui.

Some of this code was taken from other console commands, so i won't pretend i know everything.

I hope this can be put into trunk. Ignore the (perhaps) strange trunk revision, it's my local openttd mirror.It's a day or two old trunk iirc.
This task depends upon

Closed by  Peter Nelson (peter1138)
Thursday, 05 April 2007, 12:59 GMT
Reason for closing:  Implemented
Additional comments about closing:  ta da
Comment by GrimRC (GrimRC) - Sunday, 27 August 2006, 02:55 GMT
Hi. I like this patch. I've cleaned it up a bit by making it apply to R6161 and changing the ConListPatch function to conform with other console commands, by returning help information if argc == 0, and failing if argc > 1.

I think the ConListPatch function could be improved to accept an argument like the ConListDumpVariables function, for filtering. Basically the same approach could be used, except that the argument needs to be passed to IConsoleListPatches() which is called inside ConListPatch.

Hopefully someone with authority will apply this patch.

Loading...