void log_with_timestamp(io::WriteFile& out, XString line) { if (!line) { out.put('\n'); return; } timestamp_milliseconds_buffer tmpstr; stamp_time(tmpstr); out.really_put(tmpstr.data(), tmpstr.size()); out.really_put(": ", 2); out.put_line(line); }
// アカウント変数のセーブ用 static void inter_accreg_save_sub(struct accreg *reg, io::WriteFile& fp) { if (reg->reg_num > 0) { FString line = inter_accreg_tostr(reg); fp.put_line(line); } }
// パーティーデータのセーブ用 static void inter_party_save_sub(PartyPair data, io::WriteFile& fp) { AString line = inter_party_tostr(data); fp.put_line(line); }