All magic tools: Add "complexity_level" arg to init()
This commit is contained in:
parent
0bc54921d9
commit
2055b071f1
61 changed files with 185 additions and 189 deletions
|
|
@ -23,7 +23,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: November 12, 2023
|
||||
Last updated: December 29, 2023
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -42,7 +42,7 @@ static int *foam_mask, *foam_mask_tmp;
|
|||
static SDL_Surface *foam_7, *foam_5, *foam_3, *foam_1;
|
||||
|
||||
Uint32 foam_api_version(void);
|
||||
int foam_init(magic_api * api, Uint32 disabled_features);
|
||||
int foam_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level);
|
||||
char *foam_get_description(magic_api * api, int which, int mode);
|
||||
void foam_release(magic_api * api, int which,
|
||||
SDL_Surface * canvas, SDL_Surface * last, int x, int y, SDL_Rect * update_rect);
|
||||
|
|
@ -77,7 +77,7 @@ Uint32 foam_api_version(void)
|
|||
|
||||
|
||||
// No setup required:
|
||||
int foam_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
|
||||
int foam_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8 complexity_level ATTRIBUTE_UNUSED)
|
||||
{
|
||||
char fname[1024];
|
||||
SDL_Surface *foam_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue