Files
praxisandClaude Fable 5.2 8a24c445b0 Content pipeline and operator tools
367 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

29 lines
1.1 KiB
Python

"""Preserve the qualified70334 StoreMicroButton entry.
The Source catalogue is supplied by native_source_store inside Forever's own
StoreFrame. The retired standalone addon must never intercept this button.
This compatibility preparation entry remains usable by older build recipes.
"""
from pathlib import Path
import argparse
def adapt_store_button(original: bytes) -> bytes:
s = original.decode()
start = s.index('StoreMicroButtonMixin = {};')
end = s.index('HelpMicroButtonMixin = {};', start)
store = s[start:end]
if store.count('\tToggleStoreUI(self:GetButtonContext());') != 1:
raise ValueError('Expected original Forever store entry')
if 'Turtle_ShopUI' in store or 'ShopFrame_Toggle' in store:
raise ValueError('Regenerate from the original store entry, not the retired addon adapter')
return original
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("original", type=Path)
parser.add_argument("output", type=Path)
args = parser.parse_args()
args.output.write_bytes(adapt_store_button(args.original.read_bytes()))