feat: load direct to menu

This commit is contained in:
aclist committed 2026-05-28 03:34:11 +09:00
1 parent 15d928026a
commit fd9eb33714
6 files changed
+66 -8

No files matched your search

+6
View File
@@ -61,6 +61,8 @@ class Details:
@dataclass(slots=True)
class Record:
# TODO: investigate whether this enum is still being used;
# can this be frozen?
"""
The gameport field is manipulated by the RowType.CONN_BY_IP method
"""
@@ -509,6 +511,10 @@ def fqip_to_record(addr: str) -> Optional[Record]:
return Record(r[0], int(r[1]), int(r[2]))
def record_to_fqip(record: Record) -> str:
return f"{record.ip}:{record.gameport}:{record.qport}"
def response_to_fqip(res: dict) -> str:
ip = res["addr"].split(":")[0]
gameport = res["gameport"]