oops, looks like it needs to be before the qsort or "bad things happen". but it still can be done after the driver count is checked and output.

This commit is contained in:
smf- 2012-08-16 21:04:07 +00:00
parent 9d36bc6a60
commit 85aa24b036

View File

@ -243,12 +243,12 @@ int main(int argc, char *argv[])
}
fprintf(stderr, "%d drivers found\n", drivcount);
// sort the list
qsort(drivlist, drivcount, sizeof(*drivlist), sort_callback);
// add a reference to the ___empty driver
drivlist[drivcount++] = "___empty";
// sort the list
qsort(drivlist, drivcount, sizeof(*drivlist), sort_callback);
// start with a header
printf("#include \"emu.h\"\n\n");
printf("#include \"drivenum.h\"\n\n");