예제 #1
0
 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);
     }
 }
예제 #2
0
파일: fomod.cs 프로젝트: BioBrainX/fomm
 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);
     }
 }