patcher: Add back support for discord_arch_electron
This commit is contained in:
		
							parent
							
								
									0328966e0f
								
							
						
					
					
						commit
						35d2b8d1cf
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -28,8 +28,12 @@ console.log("[Vencord] Starting up..."); | |||
| 
 | ||||
| // Our injector file at app/index.js
 | ||||
| const injectorPath = require.main!.filename; | ||||
| 
 | ||||
| // special discord_arch_electron injection method
 | ||||
| const asarName = injectorPath.endsWith("app.asar/index.js") ? "_app.asar" : "app.asar"; | ||||
| 
 | ||||
| // The original app.asar
 | ||||
| const asarPath = join(dirname(injectorPath), "..", "app.asar"); | ||||
| const asarPath = join(dirname(injectorPath), "..", asarName); | ||||
| 
 | ||||
| const discordPkg = require(join(asarPath, "package.json")); | ||||
| require.main!.filename = join(asarPath, discordPkg.main); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue