// Description:
// Show clean FPS counter. (created by Licat)

var pattern = scan('8B F8 8B CE 89 BD DC F7 FF FF E8 ?? ?? ?? ?? 8B C8 E8 ?? ?? ?? ?? 8B 10 8B C8 8B 42 04 FF D0 84 C0 0F 84');
var fpsStr = scan('25 00 64 00 20 00 66 00 72 00 61 00 6D 00 65 00 73 00 2F 00 73 00 65 00 63 00 2C 00');

patch(pattern.add(33), Array(6).fill(0x90));
patch(pattern.add(130), [0xE9, 0xB2, 0x00, 0x00, 0x00, 0x90]);
patch(pattern.add(461), [0x0A, 0x00, 0x00, 0x00]);
patch(pattern.add(521), [0x39, 0xC0]);
patch(fpsStr, [0x46, 0x00, 0x50, 0x00, 0x53, 0x00, 0x3A, 0x00, 0x20, 0x00, 0x25, 0x00, 0x64, 0x00, 0x00, 0x00]);

@@ -184,16 +184,166 @@
 F 84');%0A
+var pattern2 = scan('72 E3 8D 8D F0 F7 FF FF');%0Avar pattern3 = scan('8D 95 E8 F7 FF FF 52 8D 85 EC F7 FF FF 50 8B CE C7 85 E8 F7 FF FF 0A 00 16 00');%0A
 var fpsS
@@ -503,16 +503,15 @@
 tern
+2
 .add(
-130
+2
 ), %5B
@@ -565,38 +565,20 @@
 tern
+3
 .add(
+2
 4
-61
 ), %5B
-0x0A, 0x00, 0x00, 
 0x00
@@ -598,16 +598,16 @@
 tern
+3
 .add(
-521
+82
 ), %5B

Update ShowFPS.js