Browse Source

Move autopatch info into README

nosoop 2 years ago
2 changed files with 11 additions and 5 deletions
  1. 10 1
  2. 1 4

+ 10 - 1

@@ -1,4 +1,4 @@
-# \0String Patch
+# \0~~S~~tring Patch
 Patches in-binary strings to start with the null terminator, primarily intended so they never
 get displayed in the server console (for things that MM:S / SM can't reach, like the Steam
@@ -14,3 +14,12 @@ Copy `str0.example.ini` to `str0.ini`, add your sections, then run `python3 str0
 shut those "RecordSteamInterfaceCreation" messages up for good.
 Additional configuration files may be provided by passing `-c ${CONFIGFILE}` to the script.
+## Dealing with autoupdates
+`incrontab` works great for automatically patching binaries after game updates.  Add the
+following entry:
+/path/containing/bin	IN_MOVED_TO	python3 /path/to/ $@/$# -c /path/to/config.ini

+ 1 - 4

@@ -5,12 +5,9 @@
 Finds the location of strings and patches the first character to the null terminator,
 preventing the messages from being displayed in the server console.
-This can be executed while the server is running (on Linux, may not be successful on Windows).
+This can be executed while the server is running (on Linux; may not be successful on Windows).
-# to automatically patch after game updates use the following incron:
-# /path/to/binary IN_CLOSE_WRITE,loopable=true python3 /path/to/ $@/$# -c /path/to/config.txt
 import argparse
 import ast
 import configparser