Merge pull request #69 from Ferk/cheats

Add support for cheats
This commit is contained in:
Twinaphex 2019-02-16 20:53:23 +01:00 committed by GitHub
commit 8c5263c86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@
#include "../src/r_fps.h"
#include "../src/lprintf.h"
#include "../src/doomstat.h"
#include "../src/m_cheat.h"
void I_MPPlayer_Init(void);
void I_MPPlayer_Free(void);
@ -753,9 +754,10 @@ void retro_cheat_reset(void)
void retro_cheat_set(unsigned index, bool enabled, const char *code)
{
(void)index;
(void)enabled;
(void)code;
(void)index;(void)enabled;
if(code)
for(int i=0; code[i] != '\0'; i++)
M_FindCheats(code[i]);
}
/* i_video */