disassemble quests during Save Files

This commit is contained in:
Martin Michelsen
2024-01-14 09:29:09 -08:00
parent 31ddde6e80
commit 02e8f8ea8b
3 changed files with 13 additions and 11 deletions
-8
View File
@@ -675,14 +675,6 @@ ProxyServer::LinkedSession::SavingFile::SavingFile(
is_download(is_download),
remaining_bytes(remaining_bytes) {}
void ProxyServer::LinkedSession::SavingFile::write() const {
string data = join(this->blocks);
if (is_download && (ends_with(this->basename, ".bin") || ends_with(this->basename, ".dat"))) {
data = decode_dlq_data(data);
}
save_file(this->output_filename, data);
}
void ProxyServer::LinkedSession::dispatch_on_timeout(
evutil_socket_t, short, void* ctx) {
reinterpret_cast<LinkedSession*>(ctx)->on_timeout();