public bool Init <TKey>(DbDebugItem <TKey> debug) { FileOutput = debug.FilePath; OriginalTableName = TableName = Path.GetFileNameWithoutExtension(FileOutput); if (TableName == null || OriginalTableName == null) { return(false); } if (TableName.EndsWith("_re")) { IsRenewal = true; } debug.FilePath = TempPath; debug.FileType = FileType.Txt; Builder = new StringBuilder(); if (debug.DestinationServer == ServerType.Hercules) { NewLine = NewLineFormat.Unix; IsHercules = true; } else { NewLine = NewLineFormat.Windows; IsRAthena = true; } if (debug.DestinationServer == ServerType.Hercules) { // mob_db2_re > mob_db2 // item_db2_re > item_db2 // etc TableName = OriginalTableName.Replace("2_re", "2"); FileOutput = FileOutput.Replace("2_re.sql", "2.sql"); } PrintEmptyLines = true; return(true); }