All pastes #2086096 Raw Edit

imvu patch

public text v1 · immutable
#2086096 ·published 2011-10-01 15:59 UTC
rendered paste body
This patch was created for IMVUClient version 453.8 ONLY!
It will improve the client by removing/commenting-out wasted code
in the client, since we are running the client inside wine on linux.

To edit the contents of the JAR file, open the JAR with the archive
utility for linux (file-roller, ark or xarchiver) then open the files
without extracting them, edit them and save, then choose to update the
JAR archive

Source changes from original
	|
	V
	
[./IMVUQualityAgent.exe]
This is just a copy of IMVUClient.exe, it is to prevent getting
a message saying that the client is corrupt (checksum missmatch)
Basicly just make a copy or a symlink/link of the IMVUClient.exe and
rename it to IMVUQualityAgent.exe

[./ui/restricted/ad/showAd.html]
Blanked out the file and just created a html body with the background
color #222222
This is the ad that is loaded several places in the client (right side)

[./ui/chrome/imvuContent.jar]
	[JAR://dialogs/update_client/updateClient.js]
	Call submitUpdateLater() on line 17 before window appear and comment out the
	whole drawing process to skip to the mainwindow for the Client.
	This makes the login faster! Plus since new versions breaks
	IMVU on wine, we dont need the updater :P
	
	[JAR://tool/chat/ChatTool.js]
	On line 261 inside a function named _canWhisperToUser is defined
	i commented out the if statement inside it and tell it to just
	return true, this tells the client you will be allowed to use
	whisper, even when you are not VIP! However... other non-VIP
	can not whisper you back :P
	
	[JAR://room_loading/RoomLoading.js]
	On line 6 right after imvuCall have been defined, i call
	this.imvuCall('hide');
	then comment out the rest of the code.
	This will skip the whole room loading screen(the one that makes you
	wait for 15 seconds while watching an ad video).
	And by commenting out the rest of the code, we even stop the
	loading screen from being drawn and written to the RAM.
	
	[JAR://home/home.js]
	By changing the order of lines between 57 to 83 you can sort the
	buttons on the home tab for your liking. You can also remove the
	button too! to avoid drawing it, meaning you save RAM!
	You remove the button by adding // at the beginning of the line.
	
	Also removed Voice button since its useless now that imvu have
	dicontinued the whole thing.
	
	On lines 100 to 108 and 129 to 136 i have removed the hardcoded
	sorting of the home tab buttons by simply commenting out the
	entries, however the functions must be defined for the client to
	work at all.
	
	[JAR://settings/SettingsController.js]
	On line 229 i commented out the version information and added
	my own version info on the line below. Now it says:
	Tweaked IMVUClient version 453.8.d.* by HikariKnight