Some porting

This commit is contained in:
thororen1234 2024-07-13 00:06:01 -04:00
parent 89c4e489f5
commit ea8c134159
24 changed files with 111 additions and 100 deletions

View file

@ -58,8 +58,8 @@ if (IS_VESKTOP || !IS_VANILLA) {
try {
if (RendererSettings.store.enableReactDevtools)
installExt("fmkadmapgofadopljbjfkapdkoienihi")
.then(() => console.info("[Vencord] Installed React Developer Tools"))
.catch(err => console.error("[Vencord] Failed to install React Developer Tools", err));
.then(() => console.info("[Equicord] Installed React Developer Tools"))
.catch(err => console.error("[Equicord] Failed to install React Developer Tools", err));
} catch { }

View file

@ -51,7 +51,7 @@ function patchLatest() {
if (!existsSync(app) || statSync(app).isDirectory()) return;
console.info("[Vencord] Detected Host Update. Repatching...");
console.info("[Equicord] Detected Host Update. Repatching...");
renameSync(app, _app);
mkdirSync(app);
@ -61,7 +61,7 @@ function patchLatest() {
}));
writeFileSync(join(app, "index.js"), `require(${JSON.stringify(join(__dirname, "patcher.js"))});`);
} catch (err) {
console.error("[Vencord] Failed to repatch latest host update", err);
console.error("[Equicord] Failed to repatch latest host update", err);
}
}

View file

@ -24,7 +24,7 @@ import { initIpc } from "./ipcMain";
import { RendererSettings } from "./settings";
import { IS_VANILLA } from "./utils/constants";
console.log("[Vencord] Starting up...");
console.log("[Equicord] Starting up...");
// Our injector file at app/index.js
const injectorPath = require.main!.filename;
@ -154,8 +154,8 @@ if (!IS_VANILLA) {
app.commandLine.appendSwitch("disable-background-timer-throttling");
app.commandLine.appendSwitch("disable-backgrounding-occluded-windows");
} else {
console.log("[Vencord] Running in vanilla mode. Not loading Vencord");
console.log("[Equicord] Running in vanilla mode. Not loading Equicord");
}
console.log("[Vencord] Loading original Discord app.asar");
console.log("[Equicord] Loading original Discord app.asar");
require(require.main!.filename);