Skip to content

Commit

Permalink
Fix luamod autocomplete
Browse files Browse the repository at this point in the history
It will now use the actual game mods list instad of the wonky xml structure that may not be fully reliable on some scenarios (will investigate this scenarios, but in the meantime...here goes this one)
  • Loading branch information
jsgnextortex committed Oct 26, 2024
1 parent a76af5d commit d4c5491
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Additions:
* Added content and resources support for stringtable.sta, allowing for custom translation strings and categories. This also allows adding custom fortunes.
* Added the following customtag for items.xml:
* "noexpansionpack" - Prevents the active item (with 1 or 2 max charges) from being picked by Expansion Pack trinket.
Fixes:
* Fixed an issue with luamod autocomplete not displaying all the available options
/newline/
Modified:
* EntityFamiliar:
Expand Down
6 changes: 3 additions & 3 deletions repentogon/ImGuiFeatures/ConsoleMega.h
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,9 @@ struct ConsoleMega : ImGuiWindowObject {
break;
}
case MODFOLDER: {
for (auto& node : XMLStuff.ModData->nodes) {
if (node.second["enabled"] == "true") {
entries.insert(AutocompleteEntry(node.second["realdirectory"], node.second["name"]));
for (ModEntry* node : g_Manager->GetModManager()->_mods) {
if (node->IsEnabled()) {
entries.insert(AutocompleteEntry(node->GetDir(), node->GetName()));
}
}
break;
Expand Down

0 comments on commit d4c5491

Please sign in to comment.