Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

*View All ThreadsShow in Flat Mode*


SubjectRe: MAME 125u4 -listxml crash + fix Reply to this message
Posted byuTaR
Posted on06/05/08 05:01 PM



> you need to apply the following to get it work:
>
> Index: src/emu/inptport.c
> ===================================================================
> --- src/emu/inptport.c (revision 1818)
> +++ src/emu/inptport.c (working copy)
> @@ -731,6 +731,8 @@
>
> const input_port_config *input_port_config_alloc(const input_port_token
> *tokens, char *errorbuf, int errorbuflen)
> {
> + if (tokens == NULL)
> + return NULL;
> if (errorbuf != NULL)
> *errorbuf = 0;
> return port_config_detokenize(NULL, tokens, errorbuf, errorbuflen);
>
>
>
> thanks to Aaron for the quick reply
>
>
> Roman Scherzer
>

Hi


How do I apply this?

I've tried copying the above into a file but the usual:

patch -p0 -E [left facing pointy bracket]filename.diff

[note the left facing pointy bracket isn't displaying for some reason on this forum, perhaps this is the problem with the code above?]

Gives an error message, on the line starting with "const"


Utar



-
Entire Thread
Subject  Posted byPosted On
*MAME 125u4 -listxml crash + fix  Roman06/05/08 01:29 PM
..Re: MAME 125u4 -listxml crash + fix  uTaR06/05/08 05:01 PM
..*Re: MAME 125u4 -listxml crash + fix  Roman06/05/08 05:04 PM
...*Re: MAME 125u4 -listxml crash + fix  uTaR06/05/08 05:19 PM
....*Re: MAME 125u4 -listxml crash + fix  Roman06/05/08 05:22 PM
.....*Re: MAME 125u4 -listxml crash + fix  uTaR06/05/08 05:42 PM