mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-04-16 22:55:56 -05:00
fix: Missing closing bracket
Fix mistake that happened during conflict resolution before the merge.
This commit is contained in:
parent
ce1a004bf6
commit
549e50dfa7
41
src/main/d3d9-monitor-check/main.c
Normal file
41
src/main/d3d9-monitor-check/main.c
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "d3d9-monitor-check/cmdline.h"
|
||||
#include "d3d9-monitor-check/interactive.h"
|
||||
#include "d3d9-monitor-check/print-console.h"
|
||||
|
||||
static void _print_synopsis()
|
||||
{
|
||||
printfln_err("D3D9 monitor check tool");
|
||||
printfln_err("");
|
||||
printfln_err("A versatile tool for running various (music game relevant) monitor tests using the D3D9 rendering API");
|
||||
printfln_err("");
|
||||
printfln_err("Available commands:");
|
||||
printfln_err(" cmdline: Run the tool in command line mode");
|
||||
printfln_err(" interactive: Run the tool in interactive mode");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
const char *command;
|
||||
bool success;
|
||||
|
||||
if (argc < 2) {
|
||||
_print_synopsis();
|
||||
printfln_err("ERROR: Insufficient arguments");
|
||||
return 1;
|
||||
}
|
||||
|
||||
command = argv[1];
|
||||
|
||||
if (!strcmp(command, "cmdline")) {
|
||||
success = cmdline_main(argc - 2, argv + 2);
|
||||
} else if (!strcmp(command, "interactive")) {
|
||||
success = interactive_main(argc - 2, argv + 2);
|
||||
} else {
|
||||
_print_synopsis();
|
||||
success = false;
|
||||
}
|
||||
|
||||
return success ? 0 : 1;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user