mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-03 08:00:04 -04:00
Run clang-format on editor code
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
/*
|
||||
* Descent 3
|
||||
* Copyright (C) 2024 Parallax Software
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
* Descent 3
|
||||
* Copyright (C) 2024 Parallax Software
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// CustDefaultScriptSelect.cpp : implementation file
|
||||
//
|
||||
@@ -34,60 +34,53 @@ static char THIS_FILE[] = __FILE__;
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CCustDefaultScriptSelect dialog
|
||||
|
||||
|
||||
CCustDefaultScriptSelect::CCustDefaultScriptSelect(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CCustDefaultScriptSelect::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CCustDefaultScriptSelect)
|
||||
m_Name = _T("");
|
||||
m_Module = _T("");
|
||||
//}}AFX_DATA_INIT
|
||||
CCustDefaultScriptSelect::CCustDefaultScriptSelect(CWnd *pParent /*=NULL*/)
|
||||
: CDialog(CCustDefaultScriptSelect::IDD, pParent) {
|
||||
//{{AFX_DATA_INIT(CCustDefaultScriptSelect)
|
||||
m_Name = _T("");
|
||||
m_Module = _T("");
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CCustDefaultScriptSelect::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CCustDefaultScriptSelect)
|
||||
DDX_Text(pDX, IDC_NAME, m_Name);
|
||||
DDX_Text(pDX, IDC_MODULE, m_Module);
|
||||
//}}AFX_DATA_MAP
|
||||
void CCustDefaultScriptSelect::DoDataExchange(CDataExchange *pDX) {
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CCustDefaultScriptSelect)
|
||||
DDX_Text(pDX, IDC_NAME, m_Name);
|
||||
DDX_Text(pDX, IDC_MODULE, m_Module);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CCustDefaultScriptSelect, CDialog)
|
||||
//{{AFX_MSG_MAP(CCustDefaultScriptSelect)
|
||||
ON_BN_CLICKED(IDC_BROWSE, OnBrowse)
|
||||
//}}AFX_MSG_MAP
|
||||
//{{AFX_MSG_MAP(CCustDefaultScriptSelect)
|
||||
ON_BN_CLICKED(IDC_BROWSE, OnBrowse)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CCustDefaultScriptSelect message handlers
|
||||
|
||||
void CCustDefaultScriptSelect::OnOK()
|
||||
{
|
||||
// TODO: Add extra validation here
|
||||
|
||||
CDialog::OnOK();
|
||||
void CCustDefaultScriptSelect::OnOK() {
|
||||
// TODO: Add extra validation here
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
void CCustDefaultScriptSelect::OnBrowse()
|
||||
{
|
||||
void CCustDefaultScriptSelect::OnBrowse() {
|
||||
|
||||
UpdateData(true);
|
||||
UpdateData(true);
|
||||
|
||||
CString filter = "D3 Compiled Scripts (*.dll)|*.dll||";
|
||||
|
||||
char filename[_MAX_PATH];
|
||||
char pathname[_MAX_PATH],name[_MAX_PATH];
|
||||
strcpy(pathname,LocalScriptDir);
|
||||
CString filter = "D3 Compiled Scripts (*.dll)|*.dll||";
|
||||
|
||||
if (!OpenFileDialog(this, (LPCTSTR)filter, filename, pathname, sizeof(pathname)))
|
||||
return;
|
||||
char filename[_MAX_PATH];
|
||||
char pathname[_MAX_PATH], name[_MAX_PATH];
|
||||
strcpy(pathname, LocalScriptDir);
|
||||
|
||||
ddio_SplitPath (filename,NULL,name,NULL);
|
||||
if (!OpenFileDialog(this, (LPCTSTR)filter, filename, pathname, sizeof(pathname)))
|
||||
return;
|
||||
|
||||
m_Module = name;
|
||||
|
||||
UpdateData(false);
|
||||
ddio_SplitPath(filename, NULL, name, NULL);
|
||||
|
||||
m_Module = name;
|
||||
|
||||
UpdateData(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user