Made ps1/exe work again.

committer: mfx <mfx> 1139776798 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2006-02-12 20:39:58 +00:00
parent 29d693de2d
commit af05296631
6 changed files with 53 additions and 49 deletions
+4 -4
View File
@@ -1058,13 +1058,13 @@ void Packer::initLoader(const void *pdata, int plen, int pinfo, int small)
void __acc_cdecl_va Packer::addLoader(const char *s, ...)
{
const char *p;
va_list ap;
va_start(ap, s);
linker->addSection(s);
while((p = va_arg(ap, const char *)) != NULL)
linker->addSection(p);
do {
if (*s)
linker->addSection(s);
} while ((s = va_arg(ap, const char *)) != NULL);
va_end(ap);
}