diff options
author | comex | 2015-01-25 01:50:39 -0500 |
---|---|---|
committer | comex | 2015-01-25 01:50:39 -0500 |
commit | bb05b6a3422bafa2435bd82850d796e75d71c34f (patch) | |
tree | 55f0c0c645894a05c7becfe80a06a2ddc95a0800 | |
parent | fix substrate-compat; check in test (diff) | |
download | substitute-bb05b6a3422bafa2435bd82850d796e75d71c34f.tar.gz |
Add an explanatory (and legally obligatory) notice to substrate.h.
-rw-r--r-- | substrate/substrate.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/substrate/substrate.h b/substrate/substrate.h index f1b8003..d9f135c 100644 --- a/substrate/substrate.h +++ b/substrate/substrate.h @@ -2,6 +2,20 @@ * Copyright (C) 2008-2011 Jay Freeman (saurik) */ +/* Modified from git revision 904d20f414c79a2716680f4d29d833e6ce0dcea2 by comex + * to act as a compatibility shim for libsubstitute; the changes consist of + * removing MSHookMessage, MSHookProcess (for now), and some internal + * functions, and setting custom asm names for all non-inline functions. + * + * The purpose of the custom asm names is to allow the shim to be applied at + * either the source or binary level (the latter mainly for testing purposes). + * Normally, due to two-level name lookup, exposing the regular names in + * libsubstitute.dylib would suffice for this, even if it's loaded in the same + * process as Substrate, but not with DYLD_FORCE_FLAT_NAMESPACE etc. + * Therefore, making a binary use this requires hacking it up with sed. With + * source, just put the directory containing this file in your include path. + */ + /* GNU Lesser General Public License, Version 3 {{{ */ /* * Substrate is free software: you can redistribute it and/or modify it under |