mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
17 lines
526 B
Python
17 lines
526 B
Python
from .bg3_tool_plugin import BG3ToolPlugin
|
|
|
|
|
|
class BG3ToolReparsePakMetadata(BG3ToolPlugin):
|
|
icon_file = "ui-refresh.ico"
|
|
sub_name = "Reparse Pak Metadata"
|
|
desc = "Force reparsing mod metadata immediately."
|
|
|
|
def display(self):
|
|
from ...game_baldursgate3 import BG3Game
|
|
|
|
game_plugin = self._organizer.managedGame()
|
|
if isinstance(game_plugin, BG3Game):
|
|
game_plugin.utils.construct_modsettings_xml(
|
|
exec_path="bin/bg3", force_reparse_metadata=True
|
|
)
|