mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
*** empty log message ***
This commit is contained in:
parent
e7a496e5ca
commit
2e192a8ca9
@ -127,10 +127,12 @@ set_client_multifile_size(string mfname, int size) {
|
|||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void DownloadDb::
|
INLINE int DownloadDb::
|
||||||
set_client_multifile_delta_size(string mfname, int size) {
|
set_client_multifile_delta_size(string mfname, int size) {
|
||||||
(_client_db.get_multifile_record_named(mfname))->_size += size;
|
(_client_db.get_multifile_record_named(mfname))->_size += size;
|
||||||
write_db(_client_db._filename, _client_db);
|
write_db(_client_db._filename, _client_db);
|
||||||
|
// Return the new total
|
||||||
|
return (_client_db.get_multifile_record_named(mfname))->_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -157,6 +159,17 @@ set_server_multifile_size(string mfname, int size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: DownloadDb::
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE void DownloadDb::
|
||||||
|
set_client_multifile_incomplete(string mfname) {
|
||||||
|
(_client_db.get_multifile_record_named(mfname))->_status = Status_incomplete;
|
||||||
|
write_db(_client_db._filename, _client_db);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: DownloadDb::
|
// Function: DownloadDb::
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -80,13 +80,14 @@ public:
|
|||||||
|
|
||||||
INLINE int get_client_multifile_size(string mfname) const;
|
INLINE int get_client_multifile_size(string mfname) const;
|
||||||
INLINE void set_client_multifile_size(string mfname, int size);
|
INLINE void set_client_multifile_size(string mfname, int size);
|
||||||
INLINE void set_client_multifile_delta_size(string mfname, int size);
|
INLINE int set_client_multifile_delta_size(string mfname, int size);
|
||||||
INLINE int get_server_multifile_size(string mfname) const;
|
INLINE int get_server_multifile_size(string mfname) const;
|
||||||
INLINE void set_server_multifile_size(string mfname, int size);
|
INLINE void set_server_multifile_size(string mfname, int size);
|
||||||
|
|
||||||
INLINE int get_client_multifile_phase(string mfname) const;
|
INLINE int get_client_multifile_phase(string mfname) const;
|
||||||
INLINE int get_server_multifile_phase(string mfname) const;
|
INLINE int get_server_multifile_phase(string mfname) const;
|
||||||
|
|
||||||
|
INLINE void set_client_multifile_incomplete(string mfname);
|
||||||
INLINE void set_client_multifile_complete(string mfname);
|
INLINE void set_client_multifile_complete(string mfname);
|
||||||
INLINE void set_client_multifile_decompressed(string mfname);
|
INLINE void set_client_multifile_decompressed(string mfname);
|
||||||
INLINE void set_client_multifile_expanded(string mfname);
|
INLINE void set_client_multifile_expanded(string mfname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user