From e827c74032350904781bc6b69788583f89ad2cae Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 20 Jan 2024 23:14:20 +0800 Subject: [PATCH] [raknet] Change `RakServer::vftable_10` to `RakServer::SetPassword` --- raknet/RakServer.cpp | 2 +- raknet/RakServer.h | 7 ++++++- raknet/RakServerInterface.h | 7 ++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/raknet/RakServer.cpp b/raknet/RakServer.cpp index 71f8efa..9993f42 100644 --- a/raknet/RakServer.cpp +++ b/raknet/RakServer.cpp @@ -22,7 +22,7 @@ void RakServer::vftable_C() // TODO: RakServer::vftable_C() (server W: 45A120 L: 807B950) } -void RakServer::vftable_10() +void RakServer::SetPassword( const char *_password ) { // TODO: RakServer::vftable_10() (server W: 45A1B0 L: 807B980) } diff --git a/raknet/RakServer.h b/raknet/RakServer.h index 0eb0ea7..0ffacb3 100644 --- a/raknet/RakServer.h +++ b/raknet/RakServer.h @@ -19,7 +19,12 @@ public: void vftable_4(); void vftable_8(); void vftable_C(); - void vftable_10(); + + /// Set the password clients have to use to connect to this server. The password persists between connections. + /// Pass 0 for no password. You can call this anytime + /// \param[in] _password The password string, or 0 for none. + void SetPassword( const char *_password ); + void vftable_14(); void vftable_18(); void vftable_1C(); diff --git a/raknet/RakServerInterface.h b/raknet/RakServerInterface.h index 82f3c63..ccf0a52 100644 --- a/raknet/RakServerInterface.h +++ b/raknet/RakServerInterface.h @@ -16,7 +16,12 @@ public: virtual void vftable_4()=0; virtual void vftable_8()=0; virtual void vftable_C()=0; - virtual void vftable_10()=0; + + /// Set the password clients have to use to connect to this server. The password persists between connections. + /// Pass 0 for no password. You can call this anytime + /// \param[in] _password The password string, or 0 for none. + virtual void SetPassword( const char *_password )=0; + virtual void vftable_14()=0; virtual void vftable_18()=0; virtual void vftable_1C()=0;