Bugfixes
parent
8582368caf
commit
8193ddc308
|
@ -235,6 +235,7 @@ module.exports.getGameData = async function (name, includeMods) {
|
||||||
let result = [];
|
let result = [];
|
||||||
for (let info of await Promise.all(promiseList)) {
|
for (let info of await Promise.all(promiseList)) {
|
||||||
// Skip mods if not required
|
// Skip mods if not required
|
||||||
|
if(!info) continue;
|
||||||
if (info.isMod && !includeMods) continue;
|
if (info.isMod && !includeMods) continue;
|
||||||
else result.push(info);
|
else result.push(info);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,17 +10,17 @@ const {
|
||||||
const GameDownload = require("../app/scripts/classes/game-download.js");
|
const GameDownload = require("../app/scripts/classes/game-download.js");
|
||||||
|
|
||||||
debug(true);
|
debug(true);
|
||||||
//main();
|
main();
|
||||||
//downloadGameNOPY();
|
//downloadGameNOPY();
|
||||||
downloadGameMEGA();
|
//downloadGameMEGA();
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
let loginResult = await login("MillenniumEarl", "f9vTcRNuvxj4YpK");
|
let loginResult = await login("MillenniumEarl", "f9vTcRNuvxj4YpK");
|
||||||
|
|
||||||
if (loginResult.success) {
|
if (loginResult.success) {
|
||||||
await loadF95BaseData();
|
await loadF95BaseData();
|
||||||
let gameData = await getGameData("kingdom of deception", false);
|
let gameData = await getGameData("champion", false);
|
||||||
console.log(gameData.pop());
|
console.log(gameData);
|
||||||
|
|
||||||
// let userData = await getUserData();
|
// let userData = await getUserData();
|
||||||
// console.log(userData);
|
// console.log(userData);
|
||||||
|
|
Loading…
Reference in New Issue