MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / edit

Method edit

source/json_tool/editor_gui.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194int Star::edit(int argc, char* argv[], JsonPath::PathPtr const& path, Options const& options, List<Input> const& inputs) {
195 QApplication app(argc, argv);
196 StringList files;
197 for (Input const& input : inputs) {
198 if (input.is<FindInput>())
199 files.appendAll(findFiles(input.get<FindInput>()));
200 else
201 files.append(input.get<FileInput>().filename);
202 }
203 JsonEditor e(path, options, files);
204 e.show();
205 return app.exec();
206}

Callers

nothing calls this directly

Calls 4

appendAllMethod · 0.80
appendMethod · 0.45
showMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected