Friday, February 19, 2016

History in the "right" order

I love the history command, but I can't handle the reverse sequential order.

So changing this in debugcmd.cpp

/*-------------------------------------------------
    execute_history - execute the history command
-------------------------------------------------*/

static void execute_history(running_machine &machine, int ref, int params, const char *param[])
{

...

           for (int index = (int) count - 1; index >= 0; index--)

//ORIGINAL for (int index = 0; index < (int) count; index++) 

all we have to do is make the index go backwards...
and if you want a segfault, just forget to specify the cpu number. boom goes the dynamite!

history ,10

No comments:

Post a Comment