runelite-client: Print client patch build id

This commit is contained in:
Max Weber
2019-05-12 09:37:18 -06:00
committed by Adam
parent 7b595ea1dd
commit a5f498e965
2 changed files with 9 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ public interface Client extends GameEngine
*/
Logger getLogger();
String getBuildID();
/**
* Gets a list of all valid players from the player cache.
*

View File

@@ -51,6 +51,7 @@ import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.Client;
import static net.runelite.client.rs.ClientUpdateCheckMode.AUTO;
import static net.runelite.client.rs.ClientUpdateCheckMode.NONE;
import static net.runelite.client.rs.ClientUpdateCheckMode.VANILLA;
@@ -220,6 +221,12 @@ public class ClientLoader
Applet rs = (Applet) clientClass.newInstance();
rs.setStub(new RSAppletStub(config));
if (rs instanceof Client)
{
log.info("client-patch {}", ((Client) rs).getBuildID());
}
return rs;
}
catch (IOException | ClassNotFoundException | InstantiationException | IllegalAccessException