blob: 5f1261b00f47db91b78dcebbbb8e7e02ef97d5fd [file] [log] [blame]
James Kuszmaulcf324122023-01-14 14:07:17 -08001// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#include <string_view>
6
7void Application(std::string_view saveDir);
8
9#ifdef _WIN32
10int __stdcall WinMain(void* hInstance, void* hPrevInstance, char* pCmdLine,
11 int nCmdShow) {
12 int argc = __argc;
13 char** argv = __argv;
14#else
15int main(int argc, char** argv) {
16#endif
17 std::string_view saveDir;
18 if (argc == 2) {
19 saveDir = argv[1];
20 }
21
22 Application(saveDir);
23
24 return 0;
25}