Vencord fixes

This commit is contained in:
Wizzard 2023-07-11 23:04:56 -04:00
parent 89c9a6651e
commit 74bbe65688
5 changed files with 423 additions and 310 deletions

File diff suppressed because one or more lines are too long

410
assets/vencord/vencord.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,12 @@
<!DOCTYPE RCC>
<RCC>
<qresource>
<file>assets/userscript.js</file>
<file>assets/arrpc_bridge_mod.js</file>
<file>assets/arrpc.js</file>
<file>assets/de.shorsh.discord-screenaudio.png</file>
</qresource>
</RCC>
<qresource prefix="/">
<file>assets/userscript.js</file>
<file>assets/arrpc_bridge_mod.js</file>
<file>assets/arrpc.js</file>
<file>assets/de.shorsh.discord-screenaudio.png</file>
<file>assets/vencord/vencord.js</file>
<file>assets/vencord/settings.patch</file>
<file>assets/vencord/plugin.js</file>
<file>assets/vencord/VencordNativeStub.ts</file>
</qresource>
</RCC>

View File

@ -36,7 +36,7 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) {
injectFile(&DiscordPage::injectScript, "userscript.js",
":/assets/userscript.js");
/*QFile vencord(":/assets/vencord/vencord.js");
QFile vencord(":/assets/vencord/vencord.js");
if (!vencord.open(QIODevice::ReadOnly))
qFatal("Failed to load vencord source with error: %s",
vencord.errorString().toLatin1().constData());
@ -45,7 +45,7 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) {
QString("window.discordScreenaudioVencordSettings = `%1`; %2")
.arg(m_userScript.vencordSend("VencordGetSettings", {}).toString(),
vencord.readAll()));
vencord.close(); /*/
vencord.close();
setupUserStyles();
setupArrpc();
}

@ -1 +0,0 @@
Subproject commit 62b2acebe6806c7b0e2ca6a43c6b2419a627b8dc