Process commandlets without always initializing the entire engine

This commit is contained in:
Magnus Norddahl 2025-01-07 10:55:48 +01:00
commit 794cfd78c8
12 changed files with 110 additions and 25 deletions

View file

@ -20,7 +20,9 @@ LightmapBuildCmdlet::LightmapBuildCmdlet()
void LightmapBuildCmdlet::OnCommand(FArgs args)
{
Printf("Baking LIGHTMAP lump!\n");
RunInGame([]() {
Printf("Baking LIGHTMAP lump!\n");
});
}
void LightmapBuildCmdlet::OnPrintHelp()
@ -38,7 +40,9 @@ LightmapDeleteCmdlet::LightmapDeleteCmdlet()
void LightmapDeleteCmdlet::OnCommand(FArgs args)
{
Printf("Deleting LIGHTMAP lump!\n");
RunInGame([]() {
Printf("Deleting LIGHTMAP lump!\n");
});
}
void LightmapDeleteCmdlet::OnPrintHelp()