James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 1 | // 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 |
|
| 7 | void Application(std::string_view saveDir);
|
| 8 |
|
| 9 | #ifdef _WIN32
|
| 10 | int __stdcall WinMain(void* hInstance, void* hPrevInstance, char* pCmdLine,
|
| 11 | int nCmdShow) {
|
| 12 | int argc = __argc;
|
| 13 | char** argv = __argv;
|
| 14 | #else
|
| 15 | int 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 | }
|