#include "filesystem.hpp"
#include <cctype>
+#include <cstring>
#include <fstream>
#include <iostream>
#include <limits>
void WorldSave::Read(World::Config &conf) const {
- cout << "reading world save" << endl;
-
ifstream in(conf_path);
if (!in) {
throw runtime_error("failed to open world config");
}
void WorldSave::Write(const World::Config &conf) const {
- cout << "writing world save" << endl;
-
if (!make_dirs(root_path)) {
throw runtime_error("failed to create world save directory");
}