Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

unit3uk
Lurker
Reged: 02/06/04
Posts: 5
Send PM


Compiling MAME32 - Game Titles
#365544 - 04/29/17 08:11 PM


I'm compiling MAME32 0.106 and want to change game titles beginning with the word "The", so that they're listed at the start of the title. For example: changing the title "Super Spy, The" to "The Super Spy". Where do I edit this in the source code?



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: Compiling MAME32 - Game Titles new [Re: unit3uk]
#365563 - 04/30/17 06:01 PM


Maybe in win32ui.c...


Code:

char *ModifyThe(const char *str)
{
static int bufno = 0;
static char buffer[4][255];

if (strncmp(str, "The ", 4) == 0)
{
char *s, *p;
char temp[255];

strcpy(temp, &str[4]);

bufno = (bufno + 1) % 4;

s = buffer[bufno];

/* Check for version notes in parens */
p = strchr(temp, '(');
if (p)
{
p[-1] = '\0';
}

strcpy(s, temp);
strcat(s, ", The");

if (p)
{
strcat(s, " ");
strcat(s, p);
}

return s;
}
return (char *)str;
}



I don't have a way to alter and test.
Why use a version that is 11years old? Time to move on.


Pages: 1

Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  John IV, Robbbert 
0 registered and 22 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1763