1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Introduce Config namespace and struct

This commit is contained in:
Aaron van Geffen
2024-05-10 12:10:21 +02:00
parent 9e206d5528
commit a63d86c488
101 changed files with 1162 additions and 1108 deletions

View File

@@ -377,7 +377,7 @@ void ScreenshotGiant()
{
viewport.flags = vp->flags;
}
if (gConfigGeneral.TransparentScreenshot)
if (Config::Get().general.TransparentScreenshot)
{
viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND;
}
@@ -445,7 +445,7 @@ static void ApplyOptions(const ScreenshotOptions* options, Viewport& viewport)
CheatsSet(CheatType::RemoveLitter);
}
if (options->transparent || gConfigGeneral.TransparentScreenshot)
if (options->transparent || Config::Get().general.TransparentScreenshot)
{
viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND;
}