1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Remove BenchGfx

This commit is contained in:
ζeh Matt
2023-06-26 22:14:11 +03:00
parent edabd97c8a
commit d61ce4e38c
6 changed files with 0 additions and 157 deletions

View File

@@ -1,30 +0,0 @@
/*****************************************************************************
* Copyright (c) 2014-2023 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "../interface/Screenshot.h"
#include "CommandLine.hpp"
static exitcode_t HandleBenchGfx(CommandLineArgEnumerator* argEnumerator);
const CommandLineCommand CommandLine::BenchGfxCommands[]{
// Main commands
DefineCommand("", "<file> [iterations count]", nullptr, HandleBenchGfx), CommandTableEnd
};
static exitcode_t HandleBenchGfx(CommandLineArgEnumerator* argEnumerator)
{
const char** argv = const_cast<const char**>(argEnumerator->GetArguments()) + argEnumerator->GetIndex();
int32_t argc = argEnumerator->GetCount() - argEnumerator->GetIndex();
int32_t result = CommandLineForGfxbench(argv, argc);
if (result < 0)
{
return EXITCODE_FAIL;
}
return EXITCODE_OK;
}

View File

@@ -116,7 +116,6 @@ namespace CommandLine
extern const CommandLineCommand RootCommands[];
extern const CommandLineCommand ScreenshotCommands[];
extern const CommandLineCommand SpriteCommands[];
extern const CommandLineCommand BenchGfxCommands[];
extern const CommandLineCommand SimulateCommands[];
extern const CommandLineCommand ParkInfoCommands[];

View File

@@ -140,7 +140,6 @@ const CommandLineCommand CommandLine::RootCommands[]
// Sub-commands
DefineSubCommand("screenshot", CommandLine::ScreenshotCommands ),
DefineSubCommand("sprite", CommandLine::SpriteCommands ),
DefineSubCommand("benchgfx", CommandLine::BenchGfxCommands ),
DefineSubCommand("simulate", CommandLine::SimulateCommands ),
DefineSubCommand("parkinfo", CommandLine::ParkInfoCommands ),
CommandTableEnd