Chameleon

Chameleon Commit Details

Date:2013-01-18 08:14:15 (11 years 3 months ago)
Author:Evan Lojewski
Commit:2168
Parents: 2167
Message:Add / update a few hooks for boot args
Changes:
M/trunk/i386/boot2/options.c

File differences

trunk/i386/boot2/options.c
189189
190190
191191
192
193
192194
193195
194
196
195197
196198
197199
198
200
199201
200202
201203
......
10591061
10601062
10611063
1062
1064
10631065
10641066
10651067
if (bootArgs->Video.v_display != VGA_TEXT_MODE) {
clearGraphicBootPrompt();
}
execute_hook("ClearArgs", NULL, NULL, NULL, NULL);
}
static void addBootArg(const char * argStr)
void addBootArg(const char * argStr)
{
if ( (gBootArgsPtr + strlen(argStr) + 1) < gBootArgsEnd)
{
*gBootArgsPtr++ = ' ';
if(gBootArgsPtr != gBootArgs) *gBootArgsPtr++ = ' ';
strcat(gBootArgs, argStr);
gBootArgsPtr += strlen(argStr);
}
free(menuItems);
menuItems = NULL;
}
execute_hook("BootOptions", NULL, NULL, NULL, NULL);
execute_hook("BootOptions", gBootArgs, gBootArgsPtr, NULL, NULL);
return 0;
}

Archive Download the corresponding diff file

Revision: 2168