forked from distok/cutthecord
		
	New patch: hqavatars
Fetches avatars as 256x256 instead of 128x128
This commit is contained in:
		
							parent
							
								
									704bcbf36a
								
							
						
					
					
						commit
						031c035ed4
					
				
					 3 changed files with 31 additions and 1 deletions
				
			
		| 
						 | 
					@ -49,7 +49,7 @@ Video demonstration: https://www.youtube.com/watch?v=NMRPsAgqtWQ
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					- hqavatars: Uses 256x256 variants of avatars instead of 128x128.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- **litecord**: Changes the server the app connects to, and specifically tries to connect to a Litecord server. [Litecord is a FOSS re-implementation of Discord's backend.](https://wildcard.elixi.re/i/l3lxhd3a.png)
 | 
					- **litecord**: Changes the server the app connects to, and specifically tries to connect to a Litecord server. [Litecord is a FOSS re-implementation of Discord's backend.](https://wildcard.elixi.re/i/l3lxhd3a.png)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										23
									
								
								patches/hqavatars/1078.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								patches/hqavatars/1078.patch
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,23 @@
 | 
				
			||||||
 | 
					Only in com.discord-1078: build
 | 
				
			||||||
 | 
					Only in com.discord-1078: dist
 | 
				
			||||||
 | 
					diff -crB com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali
 | 
				
			||||||
 | 
					*** com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali	2020-03-26 10:35:55.202236972 +0300
 | 
				
			||||||
 | 
					--- com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali	2020-03-27 12:03:29.601718099 +0300
 | 
				
			||||||
 | 
					***************
 | 
				
			||||||
 | 
					*** 1355,1360 ****
 | 
				
			||||||
 | 
					--- 1355,1368 ----
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					      invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					+     # Set avatar image size to 256
 | 
				
			||||||
 | 
					+ 
 | 
				
			||||||
 | 
					+     const-string v0, "?size=256"
 | 
				
			||||||
 | 
					+ 
 | 
				
			||||||
 | 
					+     invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | 
				
			||||||
 | 
					+ 
 | 
				
			||||||
 | 
					+     const-string v0, "https://cdn.discordapp.com/avatars/"
 | 
				
			||||||
 | 
					+ 
 | 
				
			||||||
 | 
					      invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					      move-result-object p0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										7
									
								
								patches/hqavatars/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								patches/hqavatars/README.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					## DisTok CutTheCord: HQ Avatars
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Changes avatars from 128x128 to 256x256 variants.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Available and tested on:
 | 
				
			||||||
 | 
					- 16-alpha4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue