Permalink
Browse files

Fix warnings.

  • Loading branch information...
1 parent 4cf8543 commit 7f9b413b145c4050041720de96bca5bc03e19d47 @root670 committed Nov 25, 2016
Showing with 5 additions and 3 deletions.
  1. +3 −1 cheats.c
  2. +1 −1 cheats.h
  3. +1 −1 startgame.c
View
@@ -216,7 +216,7 @@ int cheatsLoadGameMenu()
return 0;
}
-cheatsGame_t* cheatsLoadCheatMenu(const cheatsGame_t* game)
+cheatsGame_t* cheatsLoadCheatMenu(cheatsGame_t* game)
{
if(initialized && gamesHead!=NULL && game)
{
@@ -245,6 +245,8 @@ cheatsGame_t* cheatsLoadCheatMenu(const cheatsGame_t* game)
numCheats = game->numCheats;
return game;
}
+
+ return NULL;
}
int cheatsLoadCodeMenu(const char* game, const char* cheat);
View
@@ -55,7 +55,7 @@ int cheatsLoadGameMenu();
it's associated cheatsCheat_t object for toggling cheats from the menu.
Game object is returned so the menu manager can associate the created menu
with a game. */
-cheatsGame_t* cheatsLoadCheatMenu(const cheatsGame_t* game);
+cheatsGame_t* cheatsLoadCheatMenu(cheatsGame_t* game);
// TODO: Create a menu with a cheat's code lines
int cheatsLoadCodeMenu(const char* game, const char* cheat);
View
@@ -145,7 +145,7 @@ void startgameExecute(char *path)
FlushCache(0); // data cache
FlushCache(2); // instruction cache
- sprintf(syscallHookAddr, "0x%X", syscallHook);
+ sprintf(syscallHookAddr, "0x%p", syscallHook);
char *argv[3] = {boot2, syscallHookAddr, "\0"};
ExecPS2((void *)eh->entry, 0, 3, argv);

0 comments on commit 7f9b413

Please sign in to comment.