
    qh                     P    % S SK r SSKJr  SSKJr  Sq\\S'   SS jrS	\	S\4S
 jr
g)    N   )TextModState)all_text_modsFany_hotfix_usedreturnc                      [         R                  " 5        HG  n U R                  [        R                  :X  d  M#  U R
                  c  M2  [        R                  U l        MI     Sqg)zk
Marks that a mod using hotfixes has been executed.

Irreversibly locks all other mods requiring hotfixes.
NT)r   valuesstater   Disabledspark_service_idxLockedHotfixesr   )mods    cZ:\mnt\Skyabridged\SteamLibrary\steamapps\common\Borderlands 2\sdk_mods\text_mod_loader\hotfixes.pymark_hotfixes_usedr   	   sH     ##%99---#2G2G2S$33CI & O    idxc                     U S:X  a  g [         R                  " SSU  35      nUR                  R	                  5       S:H  $ ! [         a     gf = f)z
Checks if the given Spark Service index corresponds to the hotfix service.

Args:
    idx: The Spark Service index to check.
Returns:
    True if the given service is the hotfix service.
r   TSparkServiceConfigurationz$Transient.SparkServiceConfiguration_F
micropatch)	unrealsdkfind_object
ValueErrorServiceNamelower)r   objs     r   is_hotfix_servicer      s^     ax##'23%8
 ??  "l22  s   A   
AA)r   N)r   anti_circular_importr   loaderr   r   bool__annotations__r   intr    r   r   <module>r#      s0     . ! 33 34 3r   