diff --git a/src/tp_magic_api.h.in b/src/tp_magic_api.h.in index e9921b287..095937946 100644 --- a/src/tp_magic_api.h.in +++ b/src/tp_magic_api.h.in @@ -195,10 +195,20 @@ enum { /* Magic complexity level requested by the user (allowing plugins to simplify) */ enum { - MAGIC_COMPLEXITY_ADVANCED, - MAGIC_COMPLEXITY_BEGINNER, MAGIC_COMPLEXITY_NOVICE, + MAGIC_COMPLEXITY_BEGINNER, + MAGIC_COMPLEXITY_ADVANCED, + NUM_MAGIC_COMPLEXITY_LEVELS }; +#define MAGIC_COMPLEXITY_DEFAULT MAGIC_COMPLEXITY_ADVANCED + +char * MAGIC_COMPLEXITY_LEVEL_NAMES[NUM_MAGIC_COMPLEXITY_LEVELS] = { + "novice", + "beginner", + "advanced", +}; + + #endif diff --git a/src/tuxpaint.c b/src/tuxpaint.c index f461a343b..71c013ed5 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -1543,7 +1543,7 @@ extern char *GetUserImageDir(void); #include "tp_magic_api.h" static Uint8 magic_disabled_features = 0x00000000; -static Uint8 magic_complexity_level = MAGIC_COMPLEXITY_ADVANCED; +static Uint8 magic_complexity_level = MAGIC_COMPLEXITY_DEFAULT; static void update_progress_bar(void); static void special_notify(int flags); @@ -21681,7 +21681,7 @@ static void load_magic_plugins(void) if (n == 0) { - fprintf(stderr, "Error: plugin %s failed to startup or reported 0 magic tools\n", fname); + fprintf(stderr, "Notice: plugin %1$s failed to startup or reported 0 magic tools (Tux Paint is in complexity mode \"%2$s\")\n", fname, MAGIC_COMPLEXITY_LEVEL_NAMES[magic_complexity_level]); fflush(stderr); SDL_UnloadObject(magic_handle[num_plugin_files]); }