Skip to content

Commit

Permalink
Fix builds with cheatfinder disabled (hexn and number functions)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwedit committed Nov 18, 2023
1 parent fc19710 commit 1ae2741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void strmerge4(char *dst,const char *src1,const char *src2, const char *src3, co
strcat_(dst,src4);
}

#if CHEATFINDER | EDITFOLLOW
#if CHEATFINDER | EDITFOLLOW | CRASH
char *hexn(unsigned int n, int digits)
{
int i;
Expand Down Expand Up @@ -915,7 +915,7 @@ char *number_at(char *dest, unsigned int n)
}
#endif

#if BRANCHHACKDETAIL | CHEATFINDER
#if BRANCHHACKDETAIL | CHEATFINDER | SAVE


char *number(unsigned short n)
Expand Down
2 changes: 1 addition & 1 deletion src/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void strmerge(char *dst,const char *src1,const char *src2);
void strmerge3(char *dst,const char *src1,const char *src2, const char *src3);
void strmerge4(char *dst,const char *src1,const char *src2, const char *src3, const char *src4);

#if CHEATFINDER | EDITFOLLOW
#if CHEATFINDER | EDITFOLLOW | CRASH
char *hexn(unsigned int n, int digits);
static __inline char *hex4(u32 n) { return hexn(n,4); }
static __inline char *hex2(u32 n) { return hexn(n,2); }
Expand Down

0 comments on commit 1ae2741

Please sign in to comment.