update cmdid
This commit is contained in:
parent
c6c4ae534e
commit
919aed2ecf
|
@ -1,3 +1,2 @@
|
||||||
# Grasscutter Protos
|
# Grasscutter Protos
|
||||||
This repository contains the [ProtoBuf](https://github.com/google/protobuf) `.proto` files for [Sorapointa Proto](https://github.com/Sorapointa/Sorapointa-Protos) APIs.<br/>
|
It's a mix of sources, which I'll tell you about later once this is working....
|
||||||
Then use [SoraToJava.py](/SoraToJava.py) so that it can be used for [Grasscutter](https://github.com/Grasscutters/Grasscutter).
|
|
|
@ -1,13 +0,0 @@
|
||||||
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)
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue