diff options
| author | Salanto <support@salanto.de> | 2021-05-04 05:39:50 +0200 |
|---|---|---|
| committer | Salanto <support@salanto.de> | 2021-05-04 05:39:50 +0200 |
| commit | 8a9bb6dc6923a3a9a77bb8a0f397edeac8407a8a (patch) | |
| tree | ebaf0ea2b8f835ec243ec8b4b0c9d87634ad8d96 /src | |
| parent | bea9fc1a0587cfafed43837543f9db30e515632f (diff) | |
Add Asset Packet
This packet is used to send the client the URL of an online content repository, if available.
Diffstat (limited to 'src')
| -rw-r--r-- | src/packet_distribution.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index dc76ec1a..28607207 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -703,6 +703,16 @@ void AOApplication::server_packet_received(AOPacket *p_packet) w_courtroom->on_authentication_state_received(authenticated); } + //AssetURL Packet + else if (header == "ASS") { + if (f_contents.size() > 1) { // This can never be more than one link. + goto end; + } + QUrl t_asset_url = QUrl::fromPercentEncoding(f_contents.at(0).toUtf8()); + if (t_asset_url.isValid()) + asset_url = t_asset_url.toString(); + } + end: delete p_packet; |
