Warn when 2 magic tools in a group w/ identical order
This commit is contained in:
parent
51d47d554e
commit
73f66294f4
1 changed files with 8 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
|
|
||||||
June 14, 2002 - May 10, 2024
|
June 14, 2002 - May 14, 2024
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
@ -21851,6 +21851,13 @@ static void load_magic_plugins(void)
|
||||||
else
|
else
|
||||||
magics[group][idx].order = (want_group * 1000000) + want_order;
|
magics[group][idx].order = (want_group * 1000000) + want_order;
|
||||||
|
|
||||||
|
for (j = 0; j < num_magics[group]; j++) {
|
||||||
|
if (magics[group][j].order == magics[group][idx].order) {
|
||||||
|
fprintf(stderr, "Warning: In group %d, tool %d has the same order (%d) as tool %d\n",
|
||||||
|
group, idx, magics[group][j].order, j);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
magics[group][idx].avail_modes = magic_funcs[num_plugin_files].modes(magic_api_struct, i);
|
magics[group][idx].avail_modes = magic_funcs[num_plugin_files].modes(magic_api_struct, i);
|
||||||
|
|
||||||
for (j = 0; j < MAX_MODES; j++)
|
for (j = 0; j < MAX_MODES; j++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue