Add missing header for memset and declare strings as const char.

This commit is contained in:
riccardom 2009-12-20 14:43:30 +00:00
parent bc56097041
commit 8941b4aba9
2 changed files with 4 additions and 3 deletions

View File

@ -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)
{

View File

@ -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