FreeRDP/client/Mac/cli/main.m

27 lines
498 B
Mathematica
Raw Normal View History

//
// main.m
// MacClient2
//
// Created by Benoît et Kathy on 2013-05-08.
//
//
#import <Cocoa/Cocoa.h>
#include <freerdp/client/cmdline.h>
2023-09-20 17:34:04 +03:00
int main(int argc, char *argv[])
{
freerdp_client_warn_deprecated(argc, argv);
2023-01-13 13:09:49 +03:00
for (int i = 0; i < argc; i++)
{
2023-09-20 17:34:04 +03:00
char *ctemp = argv[i];
2023-01-13 13:09:49 +03:00
if (memcmp(ctemp, "/p:", 3) == 0 || memcmp(ctemp, "-p:", 3) == 0)
{
2023-09-20 17:34:04 +03:00
memset(ctemp + 3, '*', strlen(ctemp) - 3);
2023-01-13 13:09:49 +03:00
}
}
2023-09-20 17:34:04 +03:00
const char **cargv = (const char **)argv;
return NSApplicationMain(argc, cargv);
}