Add missing header for memset and declare strings as const char.
This commit is contained in:
parent
bc56097041
commit
8941b4aba9
|
@ -536,9 +536,9 @@ u32 CHEATS::getSize()
|
|||
|
||||
BOOL CHEATS::save()
|
||||
{
|
||||
char *types[] = {"DS", "AR", "CB"};
|
||||
char buf[sizeof(list[0].code) * 2 + 200] = { 0 };
|
||||
FILE *flist = fopen((char *)filename, "w");
|
||||
const char *types[] = {"DS", "AR", "CB"};
|
||||
char buf[sizeof(list[0].code) * 2 + 200] = { 0 };
|
||||
FILE *flist = fopen((char *)filename, "w");
|
||||
|
||||
if (flist)
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "common.h"
|
||||
|
||||
#define CHEAT_VERSION_MAJOR 2
|
||||
|
|
Loading…
Reference in New Issue