hxp
2025-05-08 6a9883b425e53e714b9a930ec70b7544999611a6
PySysDB/Éú³ÉIpyGameDataPY/IpyGameDataPYCreater.py
@@ -94,12 +94,14 @@
                continue
            
            if "struct" in line:
                tagIndex = line.index("tag")
                line = line.strip()
                if "{" in line:
                    tableName = line[tagIndex + 3:line.index("{")]
                    tableName = line[6:line.index("{")]
                else:
                    tableName = line[tagIndex + 3:]
                tableName = tableName.replace(" ", "") # è¡¨åè‹±æ–‡å
                    tableName = line[6:]
                tableName = tableName.replace("\t", "").replace(" ", "") # è¡¨åè‹±æ–‡å
                if tableName.startswith("tag"):
                    tableName = tableName[3:]
                continue
            
            noteInfo = " #" # å­—段注释说明
@@ -115,7 +117,7 @@
            if not fieldType:
                if "struct" not in line and "{" not in line and "}" not in line:
                    print "### ç±»åž‹å®šä¹‰é”™è¯¯è¡¨ ###"
                    print "struct tag%s" % tableName
                    print "struct %s" % tableName
                    print line
                    raise
                continue