Using a trainer for single-player offline gaming is generally legal in most jurisdictions. You own the software license, and modifying your local memory is not a criminal offense. Trainers are fundamentally different from "hacks" because they do not break into the developer's servers.