Commit 97f076ab authored by Christian Michael Baum's avatar Christian Michael Baum 🏀
Browse files

Compiles again

parent 7f8668e5
......@@ -530,6 +530,21 @@ void CN_Music_Stop()
break;
}
}
#ifndef CN_CUSTOM_MAIN
int main(int argc, char **argv)
{
CN_Init(argc, argv);
while(!CN_ExitCondition())
{
CN_Frame(argc, argv);
}
CN_Deinit(argc, argv);
}
#endif
#else
typedef int cry_all4;
#endif /*CN_ALLEGRO4*/
......@@ -195,22 +195,30 @@ CN_bool CN_Backend_Deinit(void);
/**
* @brief Initialization. Implemented by the game, not CNgine.
*
* @param argc Argument count
* @param argv Double pointer containing arguments
**/
void CN_Init(void);
void CN_Init(int argc, char **argv);
/**
* @brief Deinitialization. Implemented by the game, not CNgine.
*
* @param argc Argument count
* @param argv Double pointer containing arguments
**/
void CN_Deinit(void);
void CN_Deinit(int argc, char **argv);
/**
* @brief A single frame of play. Implemented by the game, not CNgine.
*
* @param argc Argument count
* @param argv Double pointer containing arguments
**/
void CN_Frame(void);
void CN_Frame(int argc, char **argv);
/**
* @brief Updates the implementation specifics to be called once per loop
*
*/
void CN_Backend_Update(void);
......
......@@ -229,6 +229,20 @@ void CN_Backend_Update()
_pollSDLEvents();
}
#ifndef CN_CUSTOM_MAIN
int main(int argc, char **argv)
{
CN_Init(argc, argv);
while(!CN_ExitCondition())
{
CN_Frame(argc, argv);
}
CN_Deinit(argc, argv);
}
#endif
#else
typedef int cry_sdl1;
#endif /*CN_SDL1_2*/
......@@ -262,16 +262,16 @@ void CN_Backend_Update(void)
_pollSDLEvents();
}
#ifndef CN_MANUAL
#ifndef CN_CUSTOM_MAIN
int main()
int main(int argc, char **argv)
{
CN_Init();
CN_Init(argc, argv);
while(!CN_ExitCondition())
{
CN_Frame();
CN_Frame(argc, argv);
}
CN_Deinit();
CN_Deinit(argc, argv);
}
#endif
......
......@@ -29,7 +29,7 @@ void CN_Sparttable_Insert(CN_SpartGrid *grid, CN_Rect bounds, void *existing)
}
CN_SparttableLL *CN_SparttableRect_GetCell(
struct CN_SparttableLL *CN_SparttableRect_GetCell(
CN_SpartGrid *grid, int time)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment