修复mdb提取遗漏问题
This commit is contained in:
parent
25c3ff879e
commit
96b93a722c
@ -95,9 +95,14 @@ namespace EscudeTools
|
||||
sheet.col[i] = column;
|
||||
offset += 8;
|
||||
}
|
||||
uint columnSizes = 0;
|
||||
for(int i = 0; i < sheet.cols; i++)
|
||||
{
|
||||
columnSizes += sheet.col[i].size;
|
||||
}
|
||||
//process data
|
||||
offset = 0;
|
||||
int recordNum = (int)(sheet_data.Length / (4 * sheet.cols));
|
||||
int recordNum = (int)(sheet_data.Length / (columnSizes));//fix bug
|
||||
Record recordFather = new(recordNum);
|
||||
for (int i = 0; i < recordNum; i++)
|
||||
{
|
||||
|
@ -114,7 +114,8 @@
|
||||
// foreach (string file in files)
|
||||
// {
|
||||
// dm.LoadDatabase(file);
|
||||
|
||||
// if (dm.ExportDatabase(Path.GetDirectoryName(args[0])))
|
||||
// Console.WriteLine("Export Database Success");
|
||||
// }
|
||||
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user