MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Open

Method Open

Applications/Shell/menu.cpp:109–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 void Open(vector2i_t pos) final {
110 for(auto& p : path){
111 char* execPath = new char[p.length() + strlen(args[0])];
112 strcpy(execPath, p.c_str());
113 strcat(execPath, args[0]);
114
115 struct stat st;
116 int ret = stat(execPath, &st);
117 if(!ret){
118 lemon_spawn(execPath, args.size(), args.data());
119
120 showMenu = false;
121 menuWindow->Minimize();
122 }
123
124 delete[] execPath;
125 }
126 }
127};
128
129std::map<uint16_t, MenuItem> items;

Callers 2

OnMouseUpMethod · 0.45
PollMenuFunction · 0.45

Calls 9

strlenFunction · 0.85
strcpyFunction · 0.85
strcatFunction · 0.85
lemon_spawnFunction · 0.85
lengthMethod · 0.80
sizeMethod · 0.80
dataMethod · 0.80
statClass · 0.70
MinimizeMethod · 0.45

Tested by

no test coverage detected