Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Fix injection for Discord 1.x (Windows) #161

Open
wants to merge 2 commits into
base: beta
Choose a base branch
from

Conversation

anirudhb
Copy link

Discord 1.x has to be injected into Local AppData instead since the other folder doesn't work anymore. Not sure about macOS/Linux :)

Copy link
Contributor

@MasicoreLord MasicoreLord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where it says discord_desktop_core-1, the 1 could be different depending on module version, Discord does version their modules, not just the host.

if (is1x)
{
// 1.x
pathPieces = new string[] { basePath, release, "app-" + appVersion, "modules", "discord_desktop_core-1", "discord_desktop_core", "index.js" };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where I suggest you change to reflect Discord's module versions, so it doesn't break on most of them. As they update modules more often than the host.

@anirudhb
Copy link
Author

@joe27g can you review this?

@Awaydays
Copy link

https://i.imgur.com/WoWblsv.png
In short, ED is dead.

@MasicoreLord
Copy link
Contributor

@joe27g <@246107833295175681> Close this PR, it won't even work properly on most Discord module updates (just the first one after a host update, due to the -1 in the module folder name. So installation to windows will soon be borked anyway most of the time as-is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants