Commit 3b1132f8 authored by keyongyu's avatar keyongyu

2.3.2.0

parent 522136b9
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 2015-5-24
* 时间: 10:55
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using System;
using System.Text;
using System.IO;
namespace DataEditorX.Common
{
/// <summary>
/// Description of MyUtils.
/// </summary>
public class MyUtils
{
/// <summary>
/// 计算文件的MD5校验
/// </summary>
/// <param name="fileName"></param>
/// <returns></returns>
public static string GetMD5HashFromFile(string fileName)
{
try
{
FileStream file = new FileStream(fileName, FileMode.Open);
System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
byte[] retVal = md5.ComputeHash(file);
file.Close();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < retVal.Length; i++)
{
sb.Append(retVal[i].ToString("x2"));
}
return sb.ToString();
}
catch
{
}
return "";
}
public static bool Md5isEmpty(string md5){
return md5==null||md5.Length<16;
}
}
}
......@@ -8,7 +8,7 @@ public class StrUtil
{
public static string AutoEnter(string str, int lineNum, char re)
{
if (str == null || str.Length == 0 || re == null)
if (str == null || str.Length == 0)
return str;
str = str.Replace("\r\n", "\n");
char[] ch = str.ToCharArray();
......
This diff is collapsed.
This diff is collapsed.
......@@ -293,7 +293,8 @@ public void SaveMSE(int num, string file, Card[] cards, bool isUpdate)
break;
i++;
worker.ReportProgress(i / count, string.Format("{0}/{1}-{2}", i, count, num));
zips.AddFile(img, Path.GetFileName(img), "");
//TODO 先裁剪图片
zips.AddFile(mseHelper.getImageCache(img), Path.GetFileName(img), "");
}
}
File.Delete(setFile);
......
......@@ -69,6 +69,7 @@
</Compile>
<Compile Include="Common\CheckUpdate.cs" />
<Compile Include="Common\ConfHelper.cs" />
<Compile Include="Common\MyUtils.cs" />
<Compile Include="Common\StrUtil.cs" />
<Compile Include="Common\XMLReader.cs" />
<Compile Include="Config\YgoPath.cs" />
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.3.1.4")]
[assembly: AssemblyVersion("2.3.2.0")]
★更新历史
2.3.2.0
MSE存档的中间图缩放
2.3.1.4
增加灵摆刻度的搜索功能
关闭数据库时清理备份文件
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### 存档最大卡片数
maxcount = 0
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
#jp setting
# spell = %%
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### Setting
maxcount = 0
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
#jp setting
# spell = %%
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### Setting
maxcount = 200
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
spell = [Sepll Card%%]
trap = [Trap Card%%]
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### Setting
maxcount = 0
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
#jp setting
spell = %%
......
[DataEditorX]2.3.1.4[DataEditorX]
[DataEditorX]2.3.2.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
......
No preview for this file type
★更新历史
2.3.2.0
MSE存档的中间图缩放
2.3.1.4
增加灵摆刻度的搜索功能
关闭数据库时清理备份文件
......
......@@ -157,4 +157,3 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x47 读取MSE存档
0x48 读取MSE存档完成!
0x49 请重启程序使更改生效
0x4c 是否同时删除卡图、脚本等资源?
\ No newline at end of file
......@@ -156,4 +156,3 @@ MainForm.mainMenu.menuitem_closeall Close All
0x47 Read MSE-set
0x48 Read MSE-set is OK.
0x49 Please restart program to apply changes.
0x4c Also delete pics and scripts?
\ No newline at end of file
......@@ -7,6 +7,9 @@ cn2tw = false
########################### 存档最大卡片数
maxcount = 0
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
#jp setting
# spell = %%
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### Setting
maxcount = 0
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
#jp setting
# spell = %%
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### Setting
maxcount = 200
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
spell = [Sepll Card%%]
trap = [Trap Card%%]
......
......@@ -7,6 +7,9 @@ cn2tw = false
########################### Setting
maxcount = 0
imagepath = ./Images
########################### 中间图
width = 345
height = 346
########################### Spell/Trap
#jp setting
spell = %%
......
[DataEditorX]2.3.1.4[DataEditorX]
[DataEditorX]2.3.2.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment