server: 0018-spectators-see-all

TICKET-326: spectators see everything. Without the pair ygol.room.spectatorview=hidden every observer gets the unmasked stream, the late-watcher snapshot included; with it the stock masked stream.

Replayed from Tools/YGOLegacy/patches/0018-spectators-see-all.patch in the Unity repo.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Fable 5.1 committed 2026-10-14 20:58:59 -07:00
1 parent 2c081162ff
commit a9e5f2d5eb
4 files changed
+190 -48

No files matched your search

+6
View File
@@ -732,6 +732,12 @@ bool WatchersAllowed() {
return false;
return true;
}
bool SpectatorsSeeAll() { // YGOL spectators see all
for(const auto& pair : setup_pairs)
if(pair == "ygol.room.spectatorview=hidden")
return false;
return true;
}
size_t WriteSetupPairsBlock(unsigned char* dst) {
auto pdst = dst;
BufferIO::Write<uint16_t>(pdst, (uint16_t)setup_pairs.size());