#include "control/codecontroller.hpp"
#include "main.hpp"
#include "exceptions.hpp"
+#include "msg.hpp"
static Surface* bkg_title;
static Surface* logo;
void update_load_save_game_menu(Menu* menu)
{
- printf("update loadsavemenu.\n");
+ msg_debug("update loadsavemenu");
for(int i = 1; i < 6; ++i) {
MenuItem& item = menu->get_item_by_id(i);
item.kind = MN_ACTION;
contrib_subsets.push_back(subset.release());
} catch(std::exception& e) {
#ifdef DEBUG
- std::cerr << "Couldn't parse levelset info for '"
- << *it << "': " << e.what() << "\n";
+ msg_warning("Couldn't parse levelset info for '"
+ << *it << "': " << e.what() << "");
#endif
}
}
level->get("name", name);
return name;
} catch(std::exception& e) {
- std::cerr << "Problem getting name of '" << filename << "'.\n";
+ msg_warning("Problem getting name of '" << filename << "'.");
return "";
}
}
if(confirm_dialog(bkg_title, str.c_str())) {
str = "save/slot" + stream.str() + ".stsg";
- printf("Removing: %s\n",str.c_str());
+ msg_debug("Removing: " << str);
PHYSFS_delete(str.c_str());
}