mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fixed linux compile errors
This commit is contained in:
parent
edec02a89b
commit
693a4a7303
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef LEVEL_INFO_H
|
#ifndef LEVEL_INFO_H
|
||||||
#define LEVEL_INFO_H
|
#define LEVEL_INFO_H
|
||||||
|
|
||||||
#include <PR\ultratypes.h>
|
#include <PR/ultratypes.h>
|
||||||
|
|
||||||
const char* get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex);
|
const char* get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ const char* translate_bind_to_name(int bind) {
|
||||||
char* space = strchr(sname, ' ');
|
char* space = strchr(sname, ' ');
|
||||||
if (space == NULL) { return sname; }
|
if (space == NULL) { return sname; }
|
||||||
|
|
||||||
sprintf_s(name, 10, "%c%s", sname[0], (space + 1));
|
snprintf(name, 10, "%c%s", sname[0], (space + 1));
|
||||||
#endif
|
#endif
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue