Skip to content

Commit

Permalink
add VENCORD_ASAR_FILE env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Jul 19, 2024
1 parent fd7108b commit ba544a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion patcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ func init() {
Log.Debug("Using UserConfig")
BaseDir = appdir.New("Vencord").UserConfig()
}
VencordAsarPath = path.Join(BaseDir, "vencord.asar")

if dir := os.Getenv("VENCORD_ASAR_FILE"); dir != "" {
Log.Debug("Using VENCORD_ASAR_FILE")
VencordAsarPath = dir
} else {
VencordAsarPath = path.Join(BaseDir, "vencord.asar")
}
}

type DiscordInstall struct {
Expand Down

0 comments on commit ba544a6

Please sign in to comment.