Client provider configurable

- Client provider can get choosed now, either google or ptc
This commit is contained in:
Felix 2016-08-16 07:42:07 +02:00
parent 5479c0a737
commit b92bd36ce0
3 changed files with 3 additions and 1 deletions

1
cfg.js
View File

@ -33,6 +33,7 @@ export const SERVER_MYSQL_USERNAME = "USERNAME";
export const SERVER_MYSQL_PASSWORD = "PASSWORD";
// account used for pogo-asset-downloader lib
export const SERVER_POGO_CLIENT_PROVIDER = "GOOGLE"; // either google or ptc
export const SERVER_POGO_CLIENT_USERNAME = "USERNAME";
export const SERVER_POGO_CLIENT_PASSWORD = "PASSWORD";

View File

@ -1,6 +1,6 @@
{
"name": "POGOServer",
"version": "0.2.1",
"version": "0.2.2",
"description": "",
"repository": {
"type": "git",

View File

@ -82,6 +82,7 @@ class GameServer {
return new Promise((resolve) => {
pogodown.login({
provider: String(CFG.SERVER_POGO_CLIENT_PROVIDER).toLowerCase(),
username: CFG.SERVER_POGO_CLIENT_USERNAME,
password: CFG.SERVER_POGO_CLIENT_PASSWORD,
downloadModels: false