|
|
@@ -0,0 +1,15 @@
|
|
|
+// Filename: decompressor.I
|
|
|
+// Created by: mike (09Jan97)
|
|
|
+//
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: Decompressor::get_progress
|
|
|
+// Access: Public
|
|
|
+// Description:
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE float Decompressor::
|
|
|
+get_progress(void) const {
|
|
|
+ nassertr(_source_file_length > 0, 0.0);
|
|
|
+ return ((float)_total_bytes_read / (float)_source_file_length);
|
|
|
+}
|