minor fixes

This commit is contained in:
David Rose 2009-08-25 00:43:01 +00:00
parent 7f4481ef2d
commit 36231ac4af
3 changed files with 13 additions and 1 deletions

View File

@ -13,6 +13,16 @@
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: HTTPChannel::get_client
// Access: Published
// Description: Returns the HTTPClient object that owns this channel.
////////////////////////////////////////////////////////////////////
INLINE HTTPClient *HTTPChannel::
get_client() const {
return _client;
}
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: HTTPChannel::is_valid // Function: HTTPChannel::is_valid
// Access: Published // Access: Published

View File

@ -97,6 +97,8 @@ PUBLISHED:
SC_download_invalid_range, SC_download_invalid_range,
}; };
INLINE HTTPClient *get_client() const;
INLINE bool is_valid() const; INLINE bool is_valid() const;
INLINE bool is_connection_ready() const; INLINE bool is_connection_ready() const;

View File

@ -115,7 +115,7 @@ EXPCL_PANDAEXPRESS bool
decompress_file(const Filename &source, const Filename &dest) { decompress_file(const Filename &source, const Filename &dest) {
Filename source_filename = Filename::binary_filename(source); Filename source_filename = Filename::binary_filename(source);
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr(); VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
istream *source_stream = vfs->open_read_file(source_filename, true); istream *source_stream = vfs->open_read_file(source_filename, false);
if (source_stream == NULL) { if (source_stream == NULL) {
express_cat.info() << "Couldn't open file " << source_filename << "\n"; express_cat.info() << "Couldn't open file " << source_filename << "\n";
return false; return false;