mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-25 08:53:04 +02:00
Update logs
This commit is contained in:
parent
ba05eab47b
commit
4231d7e9c6
@ -593,7 +593,7 @@ export class Patcher {
|
|||||||
let patchesToCheck: PatchArray;
|
let patchesToCheck: PatchArray;
|
||||||
let appliedPatches: PatchArray;
|
let appliedPatches: PatchArray;
|
||||||
|
|
||||||
const patchesMap: { [key: string]: PatchArray } = {};
|
const patchesMap: Record<string, PatchArray> = {};
|
||||||
|
|
||||||
for (let id in item[1]) {
|
for (let id in item[1]) {
|
||||||
appliedPatches = [];
|
appliedPatches = [];
|
||||||
@ -637,7 +637,7 @@ export class Patcher {
|
|||||||
modified = true;
|
modified = true;
|
||||||
str = patchedStr;
|
str = patchedStr;
|
||||||
|
|
||||||
BxLogger.info(LOG_TAG, `Applied "${patchName}" patch`);
|
BxLogger.info(LOG_TAG, `✅ ${patchName}`);
|
||||||
appliedPatches.push(patchName);
|
appliedPatches.push(patchName);
|
||||||
|
|
||||||
// Remove patch
|
// Remove patch
|
||||||
@ -727,7 +727,7 @@ export class PatcherCache {
|
|||||||
return PatcherCache.#CACHE[id];
|
return PatcherCache.#CACHE[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
static saveToCache(subCache: { [key: string]: PatchArray }) {
|
static saveToCache(subCache: Record<string, PatchArray>) {
|
||||||
for (const id in subCache) {
|
for (const id in subCache) {
|
||||||
const patchNames = subCache[id];
|
const patchNames = subCache[id];
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ export class BxLogger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static #log(color: TextColor, tag: string, ...args: any) {
|
static #log(color: TextColor, tag: string, ...args: any) {
|
||||||
console.log('%c' + BxLogger.#PREFIX, 'color:' + color + ';font-weight:bold;', tag, '-', ...args);
|
console.log(`%c${BxLogger.#PREFIX}`, `color:${color};font-weight:bold;`, tag, '//', ...args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user