Vencord fixes
This commit is contained in:
parent
89c9a6651e
commit
74bbe65688
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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>
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue