NetPlay: Add functions to sync folders.

This commit is contained in:
Admiral H. Curtiss committed 2021-12-12 21:26:10 +01:00
1 parent 418bb0b087
commit 387d148357
2 files changed
+73

No files matched your search

+2
View File
@@ -15,7 +15,9 @@
namespace NetPlay
{
bool CompressFileIntoPacket(const std::string& file_path, sf::Packet& packet);
bool CompressFolderIntoPacket(const std::string& folder_path, sf::Packet& packet);
bool CompressBufferIntoPacket(const std::vector<u8>& in_buffer, sf::Packet& packet);
bool DecompressPacketIntoFile(sf::Packet& packet, const std::string& file_path);
bool DecompressPacketIntoFolder(sf::Packet& packet, const std::string& folder_path);
std::optional<std::vector<u8>> DecompressPacketIntoBuffer(sf::Packet& packet);
} // namespace NetPlay