public string DecompileLuacListing(string luacListing)
        {
            string[] lines = luacListing.Replace("\r\n", "\n").Split("\n".ToCharArray());

            sClosureMapping.Clear();
            LuaChunk mainChunk = new LuaChunk();

            ProcessLines(lines, mainChunk);
            return(mainChunk.ToString());
        }
Exemple #2
0
        public string DecompileLuacListing(string luacListing)
        {
            string[] lines = luacListing.Replace("\r\n", "\n").Split("\n".ToCharArray());
            sLocalsAssigned.Clear();
            LuaChunk mainChunk = new LuaChunk();

            ProcessLines(lines, mainChunk, null);
            string retVal =
                "-- Decompiled with SWBF2CodeHelper\n" +
                mainChunk.ToString();

            return(retVal);
        }