internal void SetScript(FomodScript p_fscScript) { if (p_fscScript == null) { if (HasInstallScript) { DeleteFile(m_strScriptPath); m_strScriptPath = null; } } else { if (m_strScriptPath == null) { m_strScriptPath = Path.Combine("fomod", p_fscScript.FileName); } ReplaceFile(m_strScriptPath, p_fscScript.Text); } }
internal void SetScript(FomodScript p_fscScript) { if (p_fscScript == null) { if (HasInstallScript) { DeleteFile(m_strScriptPath); m_strScriptPath = null; } } else { if (m_strScriptPath == null) m_strScriptPath = Path.Combine("fomod", p_fscScript.FileName); ReplaceFile(m_strScriptPath, p_fscScript.Text); } }