26 lines
432 B
C++
26 lines
432 B
C++
#include <iostream>
|
|
#include <stdexcept>
|
|
|
|
#include "game_data/game_data.hpp"
|
|
|
|
void error(std::string error);
|
|
|
|
int main(void)
|
|
{
|
|
try
|
|
{
|
|
write_game_data_as_bin_into_file();
|
|
}
|
|
catch(std::exception const &exception)
|
|
{
|
|
error(static_cast<std::string>(exception.what()));
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|
|
void error(std::string error)
|
|
{
|
|
std::cerr << "\033[0;1;31mError\033[m : " << error << "\n";
|
|
}
|