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()
|
BOOL CHEATS::save()
|
||||||
{
|
{
|
||||||
char *types[] = {"DS", "AR", "CB"};
|
const char *types[] = {"DS", "AR", "CB"};
|
||||||
char buf[sizeof(list[0].code) * 2 + 200] = { 0 };
|
char buf[sizeof(list[0].code) * 2 + 200] = { 0 };
|
||||||
FILE *flist = fopen((char *)filename, "w");
|
FILE *flist = fopen((char *)filename, "w");
|
||||||
|
|
||||||
if (flist)
|
if (flist)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#define CHEAT_VERSION_MAJOR 2
|
#define CHEAT_VERSION_MAJOR 2
|
||||||
|
|
Loading…
Reference in New Issue