Skip to content

Commit

Permalink
Update MeowDSIO
Browse files Browse the repository at this point in the history
  • Loading branch information
r3sus committed Jan 23, 2020
1 parent e96d318 commit 27f8923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MeowDSIO

2 comments on commit 27f8923

@r3sus
Copy link
Owner Author

@r3sus r3sus commented on 27f8923 Feb 3, 2020

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;

        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";
        }
    }

@r3sus
Copy link
Owner Author

@r3sus r3sus commented on 27f8923 Feb 3, 2020

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)

Please sign in to comment.