jak-project/lsp/protocol/completion.cpp
water111 af6f489657
[jak2] Set up extractor (#3042)
This sets up the extractor for jak 2. I was expecting that I'd have to
make some more significant changes to the decompiler/compiler path
stuff, but this was not the case!

The only real change is that you can now provide multiple ISO hashes for
an entry in `ISOMetadata`. This is needed for the two different NTSC
versions, which have the same configs, serials, and ELF hashes, but
slightly different contents.

I also didn't add the korean version because I don't have the info for
it.

---------

Co-authored-by: ManDude <7569514+ManDude@users.noreply.github.com>
2023-10-06 23:09:09 -04:00

15 lines
472 B
C++

#include "completion.h"
void LSPSpec::to_json(json& j, const CompletionParams& obj) {
j = json{{"textDocument", obj.m_textDocument}, {"position", obj.m_position}};
}
void LSPSpec::from_json(const json& j, CompletionParams& obj) {
j.at("textDocument").get_to(obj.m_textDocument);
j.at("position").get_to(obj.m_position);
}
void LSPSpec::to_json(json& /*j*/, const CompletionList& /*obj*/) {}
void LSPSpec::from_json(const json& /*j*/, CompletionList& /*obj*/) {}