From 593b1670a0a6b5e669fabd24a1ae5e3f7d33d2d4 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Sun, 7 Apr 2024 15:54:48 +0300 Subject: [PATCH] Experimenting with request/response struct names for non global RPCs --- parser.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.inc.php b/parser.inc.php index 83b8e79..166c425 100644 --- a/parser.inc.php +++ b/parser.inc.php @@ -678,9 +678,9 @@ class mtgMetaInfoParser { return $this->_nextIf(self::T_End); } ); - $req = new mtgMetaPacket($code, $is_global ? "RPC_REQ_$name" : $name); + $req = new mtgMetaPacket($code, $is_global ? "RPC_REQ_$name" : "REQ_$name"); $req->setFields($req_fields); - $rsp = new mtgMetaPacket($code, $is_global ? "RPC_RSP_$name" : $name); + $rsp = new mtgMetaPacket($code, $is_global ? "RPC_RSP_$name" : "RSP_$name"); $rsp->setFields($rsp_fields); $rpc = new mtgMetaRPC($is_global ? "RPC_$name" : $name, $code, $req, $rsp, $tokens);