aboutsummaryrefslogtreecommitdiff
path: root/assets/manual_img
ModeNameSize
-rw-r--r--Bildschirmfoto_2016-09-17_09-43-29.png9345logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-45-38.png16695logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-46-21.png18834logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-48-54.png14032logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-50-27.png4246logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-51-02.png3704logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-52-17.png13788logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-52-40.png13889logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-53-01.png15473logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-56-34.png2789logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-58-20.png10375logplain
-rw-r--r--Bildschirmfoto_2016-09-17_09-58-39.png6880logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-04-12.png72813logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-04-57.png105448logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-05-51.png93538logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-07-13.png83521logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-08-02.png107762logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-09-01.png112579logplain
-rw-r--r--Bildschirmfoto_2016-09-17_10-10-15.png114075logplain
-rw-r--r--Bildschirmfoto_2016-12-13_19-25-26.png15044logplain
-rw-r--r--Bildschirmfoto_2017-03-09_11-33-09.png3496logplain
-rw-r--r--Bildschirmfoto_2017-03-09_11-42-49.png25657logplain
-rw-r--r--screenshot_20161203_223055.png824772logplain
-rw-r--r--screenshot_20161203_223328.png526640logplain
-rw-r--r--screenshot_20161203_230644.png610738logplain
-rw-r--r--screenshot_20161203_230648.png555494logplain
-rw-r--r--screenshot_20161203_231622.png108256logplain
-rw-r--r--screenshot_20161203_232335.png1607786plain
span> data.size(), os, level); } void decompressZlib(std::istream &is, std::ostream &os, size_t limit) { z_stream z; const s32 bufsize = 16384; char input_buffer[bufsize]; char output_buffer[bufsize]; int status = 0; int ret; int bytes_read = 0; int bytes_written = 0; int input_buffer_len = 0; z.zalloc = Z_NULL; z.zfree = Z_NULL; z.opaque = Z_NULL; ret = inflateInit(&z); if(ret != Z_OK) throw SerializationError("dcompressZlib: inflateInit failed"); z.avail_in = 0; //dstream<<"initial fail="<<is.fail()<<" bad="<<is.bad()<<std::endl; for(;;) { int output_size = bufsize; z.next_out = (Bytef*)output_buffer; z.avail_out = output_size; if (limit) { int limit_remaining = limit - bytes_written; if (limit_remaining <= 0) { // we're aborting ahead of time - throw an error? break; } if (limit_remaining < output_size) { z.avail_out = output_size = limit_remaining; } } if(z.avail_in == 0) { z.next_in = (Bytef*)input_buffer; is.read(input_buffer, bufsize); input_buffer_len = is.gcount(); z.avail_in = input_buffer_len; //dstream<<"read fail="<<is.fail()<<" bad="<<is.bad()<<std::endl; } if(z.avail_in == 0) { //dstream<<"z.avail_in == 0"<<std::endl; break; } //dstream<<"1 z.avail_in="<<z.avail_in<<std::endl; status = inflate(&z, Z_NO_FLUSH); //dstream<<"2 z.avail_in="<<z.avail_in<<std::endl; bytes_read += is.gcount() - z.avail_in; //dstream<<"bytes_read="<<bytes_read<<std::endl; if(status == Z_NEED_DICT || status == Z_DATA_ERROR || status == Z_MEM_ERROR) { zerr(status); throw SerializationError("decompressZlib: inflate failed"); } int count = output_size - z.avail_out; //dstream<<"count="<<count<<std::endl; if(count) os.write(output_buffer, count); bytes_written += count; if(status == Z_STREAM_END) { //dstream<<"Z_STREAM_END"<<std::endl; //dstream<<"z.avail_in="<<z.avail_in<<std::endl; //dstream<<"fail="<<is.fail()<<" bad="<<is.bad()<<std::endl; // Unget all the data that inflate didn't take is.clear(); // Just in case EOF is set for(u32 i=0; i < z.avail_in; i++) { is.unget(); if(is.fail() || is.bad()) {