Log names of files being serialsied

This commit is contained in:
Dev 2023-12-13 22:16:21 +00:00
parent 6900505b73
commit bda6d66e92
3 changed files with 10 additions and 6 deletions

View File

@ -81,7 +81,9 @@ export class RepeatableQuestController
* (if the are on "Succeed" but not "Completed" we keep them, to allow the player to complete them and get the rewards) * (if the are on "Succeed" but not "Completed" we keep them, to allow the player to complete them and get the rewards)
* The new quests generated are again persisted in profile.RepeatableQuests * The new quests generated are again persisted in profile.RepeatableQuests
* *
* @param {string} sessionId Player's session id * @param {string} _info Request from client
* @param {string} sessionID Player's session id
*
* @returns {array} array of "repeatableQuestObjects" as descibed above * @returns {array} array of "repeatableQuestObjects" as descibed above
*/ */
public getClientRepeatableQuests(_info: IEmptyRequestData, sessionID: string): IPmcDataRepeatableQuest[] public getClientRepeatableQuests(_info: IEmptyRequestData, sessionID: string): IPmcDataRepeatableQuest[]

View File

@ -429,9 +429,10 @@ export class PreAkiModLoader implements IModLoader
public sortModsLoadOrder(): string[] public sortModsLoadOrder(): string[]
{ {
// if loadorder.json exists: load it, otherwise generate load order // if loadorder.json exists: load it, otherwise generate load order
if (this.vfs.exists(`${this.basepath}loadorder.json`)) const loadOrderPath = `${this.basepath}loadorder.json`
if (this.vfs.exists(loadOrderPath))
{ {
return this.jsonUtil.deserialize(this.vfs.readFile(`${this.basepath}loadorder.json`)); return this.jsonUtil.deserialize(this.vfs.readFile(loadOrderPath), loadOrderPath);
} }
else else
{ {
@ -661,14 +662,15 @@ export class PreAkiModLoader implements IModLoader
} }
// Check if config exists // Check if config exists
if (!this.vfs.exists(`${modPath}/package.json`)) const modPackagePath = `${modPath}/package.json`;
if (!this.vfs.exists(modPackagePath))
{ {
this.logger.error(this.localisationService.getText("modloader-missing_package_json", modName)); this.logger.error(this.localisationService.getText("modloader-missing_package_json", modName));
return false; return false;
} }
// Validate mod // Validate mod
const config = this.jsonUtil.deserialize<IPackageJsonData>(this.vfs.readFile(`${modPath}/package.json`)); const config = this.jsonUtil.deserialize<IPackageJsonData>(this.vfs.readFile(modPackagePath), modPackagePath);
const checks = ["name", "author", "version", "license"]; const checks = ["name", "author", "version", "license"];
let issue = false; let issue = false;

View File

@ -27,7 +27,7 @@ export class HashCacheService
// get mod hash file // get mod hash file
if (!this.modHashes) if (!this.modHashes)
{ // empty { // empty
this.modHashes = this.jsonUtil.deserialize(this.vfs.readFile(`${this.modCachePath}`)); this.modHashes = this.jsonUtil.deserialize(this.vfs.readFile(`${this.modCachePath}`), this.modCachePath);
} }
} }