This commit is contained in:
2008-10-03 11:09:04 +00:00
parent a775337ba0
commit 4ea65e4bf6
10 changed files with 361 additions and 220 deletions

View File

@@ -437,8 +437,10 @@ namespace fmtxml
private string fmtName;
private VE_Font DefBaseFont;
private VE_Font DefPlantFont;
public FmtToXml(string nm)
private string MyPath;
public FmtToXml(string nm, string path)
{
MyPath = path;
fmtName = nm;
try
{
@@ -542,7 +544,7 @@ namespace fmtxml
string str = null;
// read in title.
string fnm = "E:\\ve-proms\\format\\"+fname;
string fnm = MyPath + @"\" + fname;
Console.WriteLine(fname);
brFmt = new BinaryReader(File.Open(fnm,System.IO.FileMode.Open,System.IO.FileAccess.ReadWrite,FileShare.ReadWrite));
short len = brFmt.ReadInt16();
@@ -659,7 +661,7 @@ namespace fmtxml
string str = null;
// read in title.
string fnm = "E:\\ve-proms\\format\\"+fname;
string fnm = MyPath + @"\" + fname;
Console.WriteLine(fname);
brFmt = new BinaryReader(File.Open(fnm,System.IO.FileMode.Open,System.IO.FileAccess.ReadWrite,FileShare.ReadWrite));
short len = brFmt.ReadInt16();