mirror of
https://gitlab.com/YuukiPS/GC-Proto.git
synced 2025-08-03 11:00:13 +03:00
Hello word
This commit is contained in:
13
SoraToJava.py
Normal file
13
SoraToJava.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
|
||||
for file in os.listdir(r'./proto'):
|
||||
with open(f'./proto/{file}', 'r') as f:
|
||||
temp = '// Proto has been converted from Sorapointa to Grasscutter format\n'
|
||||
for line in f.readlines():
|
||||
if 'org.sorapointa.proto' in line:
|
||||
temp += "option java_package = \"emu.grasscutter.net.proto\";\n"
|
||||
else:
|
||||
temp += line
|
||||
|
||||
with open(f'./proto/{file}', 'w') as out:
|
||||
out.write(temp)
|
Reference in New Issue
Block a user