mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-06-01 10:58:01 -04:00
29 lines
886 B
C++
29 lines
886 B
C++
#include <wx/wx.h>
|
|
|
|
#include "hdnesPackEditornewProjectDialog.h"
|
|
#include "hdnesPackEditormainForm.h"
|
|
#include "main.h"
|
|
#include "coreData.h"
|
|
|
|
hdnesPackEditornewProjectDialog::hdnesPackEditornewProjectDialog( wxWindow* parent )
|
|
:
|
|
newProjectDialog( parent )
|
|
{
|
|
filePickRom->SetPath(wxString(main::mForm->romDir));
|
|
dirPickPack->SetPath(wxString(main::mForm->packDir));
|
|
}
|
|
|
|
void hdnesPackEditornewProjectDialog::fileSelected( wxCommandEvent& event )
|
|
{
|
|
if(filePickRom->GetPath().empty()){
|
|
wxMessageBox( wxT("Please select the location of the ROM file") );
|
|
}
|
|
else if(dirPickPack->GetPath().empty()){
|
|
wxMessageBox( wxT("Please select the location of the HD pack folder") );
|
|
}
|
|
else{
|
|
coreData::cData->initPath(filePickRom->GetPath().ToStdString(), dirPickPack->GetPath().ToStdString());
|
|
Show(false);
|
|
}
|
|
}
|