You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lblMessage.Text = (Remaster ? "Invalid Dark Souls: Remastered game directory." : "You don't seem to have an unpacked Dark Souls: Prepare to Die Edition installation. Please run UDSFM and come back :)");
if (File.Exists($"{gameDirectory}\\DarkSouls{(Remaster ? "Remastered" : "")}.exe"))
{
txtGamePath.Text = gameDirectory;
foreach (string st in new List<string> { PARAM_DIR, ITEM_DIR, MENU_DIR })
if (!File.Exists(st))
break;
lblMessage.Text = "Files OK";
}
}
27f8923
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private void checkBoxRemaster_CheckedChanged(object sender, EventArgs e)
{
bool Remaster = checkBoxRemaster.Checked;
lblMessage.Visible = true; //Use Empty label instead of invisible
//lblMessage.ForeColor = Color.Red;
//Best optimization ever:
gameDirectory = "."; //Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
string s_dcx = (Remaster ? ".dcx" : ""),
PARAM_DIR = gameDirectory + "\param\GameParam\GameParam.parambnd" + s_dcx,
ITEM_DIR = gameDirectory + "\msg\ENGLISH\item.msgbnd" + s_dcx,
MENU_DIR = gameDirectory + "\msg\ENGLISH\menu.msgbnd" + s_dcx;
27f8923
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Form_Load seems to be useless.
To Do:
bool ex_ist, prm_ist, msg_ist.
public void dir_check(gdir).
remove checkbox (auto remaster check)