mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
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:
parent
9d36bc6a60
commit
85aa24b036
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user