mirror of
https://github.com/open-goal/jak-project
synced 2026-09-10 12:25:21 -04:00
[decomp] get started on game info (#674)
* temp * menu text * wip * recognize handle to process * more
This commit is contained in:
@@ -67,6 +67,15 @@ std::string FieldReverseLookupOutput::Token::print() const {
|
||||
}
|
||||
}
|
||||
|
||||
bool FieldReverseLookupOutput::has_variable_token() const {
|
||||
for (const auto& tok : tokens) {
|
||||
if (tok.kind == Token::Kind::VAR_IDX) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
void try_reverse_lookup(const FieldReverseLookupInput& input,
|
||||
|
||||
@@ -104,6 +104,8 @@ struct FieldReverseLookupOutput {
|
||||
double total_score = 0.;
|
||||
TypeSpec result_type;
|
||||
std::vector<Token> tokens;
|
||||
|
||||
bool has_variable_token() const;
|
||||
};
|
||||
|
||||
struct FieldReverseMultiLookupOutput {
|
||||
|
||||
Reference in New Issue
Block a user