mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-17 15:57:13 +00:00
bump
This commit is contained in:
parent
c3c3abb2e3
commit
3525bd6523
|
|
@ -1,28 +0,0 @@
|
|||
import zlib
|
||||
|
||||
def decode_varint(data, offset=0):
|
||||
val = 0
|
||||
shift = 0
|
||||
while True:
|
||||
b = data[offset]
|
||||
offset += 1
|
||||
val |= (b & 0x7F) << shift
|
||||
shift += 7
|
||||
if (b & 0x80) == 0:
|
||||
break
|
||||
return val, offset
|
||||
|
||||
hex_str = "81 9b 01 78 9c ed 5b cd 92 db 44 10 9e 14 f9 71 9c 4a 41 48"
|
||||
data = bytes.fromhex(hex_str.replace(" ", ""))
|
||||
|
||||
uncompressed_len, offset = decode_varint(data)
|
||||
compressed_data = data[offset:]
|
||||
|
||||
d = zlib.decompressobj()
|
||||
dec = d.decompress(compressed_data)
|
||||
if dec:
|
||||
pkt_id, dec_offset = decode_varint(dec)
|
||||
print(f"Packet ID: {pkt_id} (0x{pkt_id:02x})")
|
||||
print(f"Next bytes: {dec[dec_offset:dec_offset+10].hex()}")
|
||||
else:
|
||||
print("Could not decompress anything (need more bytes).")
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "emerald-legacy-launcher",
|
||||
"private": true,
|
||||
"version": "1.2.1",
|
||||
"version": "1.3.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
import re
|
||||
|
||||
with open("ignore/MCProtocolLib/protocol/src/main/java/org/geysermc/mcprotocollib/protocol/codec/MinecraftCodec.java", "r") as f:
|
||||
lines = f.readlines()
|
||||
|
||||
in_game = False
|
||||
clientbound_index = 0
|
||||
|
||||
for line in lines:
|
||||
if "ProtocolState.GAME" in line:
|
||||
in_game = True
|
||||
continue
|
||||
|
||||
if in_game:
|
||||
# Check if another state starts
|
||||
if "ProtocolState." in line and "ProtocolState.GAME" not in line:
|
||||
break
|
||||
|
||||
if "registerClientboundPacket" in line:
|
||||
# Extract the class name
|
||||
m = re.search(r'registerClientboundPacket\((.*?)\.class', line)
|
||||
if m:
|
||||
packet_class = m.group(1)
|
||||
print(f"{packet_class} -> {clientbound_index} (0x{clientbound_index:02x})")
|
||||
clientbound_index += 1
|
||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
|
|
@ -1014,7 +1014,7 @@ checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
|
|||
|
||||
[[package]]
|
||||
name = "emerald-legacy-launcher"
|
||||
version = "1.2.1"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"base64 0.21.7",
|
||||
"byteorder",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "emerald-legacy-launcher"
|
||||
version = "1.2.1"
|
||||
version = "1.3.0"
|
||||
description = "A FOSS, cross-platform launcher for Minecraft Legacy Edition"
|
||||
authors = ["Emerald Team"]
|
||||
edition = "2021"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "LCE Emerald Launcher",
|
||||
"version": "1.2.1",
|
||||
"version": "1.3.0",
|
||||
"identifier": "com.emerald.legacy",
|
||||
"build": {
|
||||
"beforeDevCommand": "npm run dev",
|
||||
|
|
|
|||
Loading…
Reference in a new issue