public virtual bool Read(FileStream stream) { resourcePath = Common.GetPath(stream.Name); resourceDialog = new OpenResourceDialog(System.AppDomain.CurrentDomain.BaseDirectory, "Open JP Resource", "JP Resource Files|*.d3dmesh;*.lang;*.prop;*.scene;*.skl|D3D Mesh|*.d3dmesh|Localization|*.lang|All files (*.*)|*.*"); _stream = stream; return(true); }
public Form1() { InitializeComponent(); string baseDirectory = System.AppDomain.CurrentDomain.BaseDirectory; resourceDialog = new OpenResourceDialog(baseDirectory, "Open JP Resource", "JP Resource Files|*.d3dmesh;*.lang;*.prop;*.scene;*.skl|D3D Mesh|*.d3dmesh|Localization|*.lang|All files (*.*)|*.*"); textureDialog = new OpenResourceDialog(baseDirectory, "Open JP texture directory", "JP Textures|*.dds|All files (*.*)|*.*"); }