| 63 | } |
| 64 | |
| 65 | void PatchModule::initialiseModule(const IApplicationContext& ctx) |
| 66 | { |
| 67 | _settings.reset(new PatchSettings); |
| 68 | |
| 69 | registerPatchCommands(); |
| 70 | |
| 71 | // Construct and Register the patch-related preferences |
| 72 | IPreferencePage& page = GlobalPreferenceSystem().getPage(_("Settings/Patch")); |
| 73 | page.appendEntry(_("Patch Subdivide Threshold"), RKEY_PATCH_SUBDIVIDE_THRESHOLD); |
| 74 | |
| 75 | _patchTextureChanged = Patch::signal_patchTextureChanged().connect( |
| 76 | [] { radiant::TextureChangedMessage::Send(); }); |
| 77 | } |
| 78 | |
| 79 | void PatchModule::shutdownModule() |
| 80 | { |
nothing calls this directly
no test coverage detected