mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
minor fixes
This commit is contained in:
parent
7f4481ef2d
commit
36231ac4af
@ -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
|
||||
// Access: Published
|
||||
|
@ -97,6 +97,8 @@ PUBLISHED:
|
||||
SC_download_invalid_range,
|
||||
};
|
||||
|
||||
INLINE HTTPClient *get_client() const;
|
||||
|
||||
INLINE bool is_valid() const;
|
||||
INLINE bool is_connection_ready() const;
|
||||
|
||||
|
@ -115,7 +115,7 @@ EXPCL_PANDAEXPRESS bool
|
||||
decompress_file(const Filename &source, const Filename &dest) {
|
||||
Filename source_filename = Filename::binary_filename(source);
|
||||
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) {
|
||||
express_cat.info() << "Couldn't open file " << source_filename << "\n";
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user