mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Adjust Server::dynamicAddMedia() and related parts a bit
This commit is contained in:
parent
c7d45fe51a
commit
0b66465f33
4 changed files with 60 additions and 41 deletions
|
@ -94,6 +94,8 @@ struct MediaInfo
|
|||
std::string sha1_digest;
|
||||
// true = not announced in TOCLIENT_ANNOUNCE_MEDIA (at player join)
|
||||
bool no_announce;
|
||||
// if true, this is an ephemeral entry. used by dynamic media.
|
||||
bool ephemeral;
|
||||
// does what it says. used by some cases of dynamic media.
|
||||
bool delete_at_shutdown;
|
||||
|
||||
|
@ -102,6 +104,7 @@ struct MediaInfo
|
|||
path(path_),
|
||||
sha1_digest(sha1_digest_),
|
||||
no_announce(false),
|
||||
ephemeral(false),
|
||||
delete_at_shutdown(false)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue