MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / initialiseModule

Method initialiseModule

radiantcore/patch/PatchModule.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void 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
79void PatchModule::shutdownModule()
80{

Callers

nothing calls this directly

Calls 5

getPageMethod · 0.80
appendEntryMethod · 0.80
_Function · 0.50
resetMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected