Skip to content

Commit

Permalink
Cleanup|libdoom|libheretic|libhexen: Cleaned up cheat registration an…
Browse files Browse the repository at this point in the history
…d callback functions
  • Loading branch information
danij-deng committed Aug 26, 2012
1 parent bbd42ce commit 0d705a4
Show file tree
Hide file tree
Showing 7 changed files with 913 additions and 1,139 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/g_game.c
Expand Up @@ -968,7 +968,7 @@ void G_CommonPostInit(void)

G_InitEventSequences();
#if __JDOOM__ || __JHERETIC__ || __JHEXEN__
Cht_Init();
G_RegisterCheats();
#endif

// From this point on, the shortcuts are always active.
Expand Down
49 changes: 25 additions & 24 deletions doomsday/plugins/jdoom/include/m_cheat.h
@@ -1,34 +1,35 @@
/**\file
*\section License
* License: GPL
* Online License Link: http://www.gnu.org/licenses/gpl.html
/**
* @file m_cheat.h
* Cheats - Doom (plus Chex and Hacx). @ingroup libdoom
*
*\author Copyright © 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
*\author Copyright © 2005-2012 Daniel Swanson <danij@dengine.net>
*\author Copyright © 1993-1996 by id Software, Inc.
* @author Copyright &copy; 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
* @author Copyright &copy; 2005-2012 Daniel Swanson <danij@dengine.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA</small>
*/

#ifndef M_CHEAT
#define M_CHEAT
#ifndef LIBDOOM_M_CHEAT_H
#define LIBDOOM_M_CHEAT_H

#ifndef __JDOOM__
# error "Using jDoom headers without __JDOOM__"
#endif

void Cht_Init(void);
#endif /* M_CHEAT */
/**
* Register event sequence callbacks for all cheats.
*/
void G_RegisterCheats(void);

#endif /// LIBDOOM_M_CHEAT_H

0 comments on commit 0d705a4

Please sign in to comment.