2013-05-31 20:48:40 +04:00
|
|
|
//
|
|
|
|
// main.m
|
|
|
|
// MacClient2
|
|
|
|
//
|
|
|
|
// Created by Benoît et Kathy on 2013-05-08.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2023-03-01 10:34:52 +03:00
|
|
|
#include <freerdp/client/cmdline.h>
|
2013-05-31 20:48:40 +04:00
|
|
|
|
2023-09-20 17:34:04 +03:00
|
|
|
int main(int argc, char *argv[])
|
2013-05-31 20:48:40 +04:00
|
|
|
{
|
2023-03-01 10:34:52 +03:00
|
|
|
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);
|
2013-05-31 20:48:40 +04:00
|
|
|
}
|