Eternal-Walnut / Apex-NoRecoil-Alpha

An official branch version that I can modify and update myself
GNU General Public License v3.0
56 stars 3 forks source link

UUID_generator.exe这个要怎么使用呢? #12

Closed sjiebn closed 3 months ago

sjiebn commented 9 months ago

双击进去后,弹出报错窗口 Image_1697184327814

Eternal-Walnut commented 9 months ago

把apexmaster.ahk改成paircs就行 没必要用

MakaveliN1 commented 9 months ago

Update the UpdateUUID Method as: This explicitly sets the working directory to script directory and then extracts the directory from absolute path ` def updateUUID(filename, new_uuid): script_dir = os.path.dirname(os.path.abspath(file)) # Get the directory of the script file_path = os.path.join(script_dir, filename) # Create the full path to the file

with open(file_path, "r") as f:
    content = f.read()

new_uuid_str = 'global UUID := "' + new_uuid + '"'

content_new = re.sub('global UUID := ".+"', new_uuid_str, content)

with open(file_path, "w") as f:
    f.write(content_new)

`

sjiebn commented 9 months ago

把apexmaster.ahk改成paircs就行 没必要用

谢谢大佬