11 lines
415 B
Python
11 lines
415 B
Python
import os
|
|
|
|
try:
|
|
with open(r'd:\perfect-world-source\perfect-world-source\CElement\CElementClient\EC_Player.cpp', 'r', encoding='gbk') as f:
|
|
content = f.read()
|
|
with open(r'c:\Unity\CuongNV\perfect-world-unity\EC_Player_clean.cpp', 'w', encoding='utf-8') as f2:
|
|
f2.write(content.replace('\r', ''))
|
|
print("Cleaned EC_Player.cpp successfully.")
|
|
except Exception as e:
|
|
print("Error:", e)
|