GL plugin now dumps textures in correct format, you can enable texture dumping in the settings but you have to set the directory in the ini file

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@130 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1
2008-08-04 21:29:56 +00:00
parent 494c1f3187
commit dd793a11ef
4 changed files with 14 additions and 15 deletions

View File

@ -25,7 +25,6 @@ BEGIN_EVENT_TABLE(ConfigDialog,wxDialog)
EVT_BUTTON(ID_CLOSE,ConfigDialog::OKClick)
EVT_BUTTON(ID_APPLY,ConfigDialog::OKClick)
EVT_BUTTON(ID_OK,ConfigDialog::OKClick)
EVT_BUTTON(ID_BROWSE,ConfigDialog::BrowseClick)
END_EVENT_TABLE()
@ -94,7 +93,7 @@ void ConfigDialog::CreateGUIControls()
m_Wireframe->Enable(false);
m_DumpTextures = new wxCheckBox(m_PageAdvanced, ID_DUMPTEXTURES, wxT("Dump texture to:"), wxPoint(12,88), wxSize(233,25), 0, wxDefaultValidator, wxT("DumpTextures"));
m_DumpTextures->Enable(false);
m_DumpTextures->SetValue(g_Config.bDumpTextures);
m_Statistics = new wxCheckBox(m_PageAdvanced, ID_STATISTICS, wxT("Overlay some statistics"), wxPoint(12,40), wxSize(233,25), 0, wxDefaultValidator, wxT("Statistics"));
m_Statistics->SetValue(g_Config.bOverlayStats);
@ -102,13 +101,11 @@ void ConfigDialog::CreateGUIControls()
m_ShaderErrors = new wxCheckBox(m_PageAdvanced, ID_SHADERERRORS, wxT("Show shader compilation issues"), wxPoint(12,64), wxSize(233,25), 0, wxDefaultValidator, wxT("ShaderErrors"));
m_ShaderErrors->Enable(false);
m_Browse = new wxButton(m_PageAdvanced, ID_BROWSE, wxT("Browse"), wxPoint(156,136), wxSize(65,25), 0, wxDefaultValidator, wxT("Browse"));
m_Browse = new wxDirPickerCtrl( m_PageAdvanced, wxID_ANY, wxT("path"), wxT("Select a folder"), wxPoint(12,136), wxSize(233,25), wxDIRP_DEFAULT_STYLE );
//m_Browse->SetPath(wxString::FromAscii(g_Config.texDumpPath));
m_Browse->Enable(false);
m_TexturePath = new wxTextCtrl(m_PageAdvanced, ID_TEXTUREPATH, wxT("TexturePath"), wxPoint(20,136), wxSize(129,25), 0, wxDefaultValidator, wxT("TexturePath"));
m_TexturePath->Enable(false);
SetTitle(wxT("Opengl Plugin Configuration"));
SetIcon(wxNullIcon);
SetSize(8,8,492,273);
@ -118,6 +115,7 @@ void ConfigDialog::CreateGUIControls()
m_Statistics->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( ConfigDialog::OverlayCheck ), NULL, this );
m_FullscreenCB->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( ConfigDialog::FSCB ), NULL, this );
m_WindowResolutionCB->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( ConfigDialog::WMCB ), NULL, this );
m_Browse->Connect( wxEVT_COMMAND_DIRPICKER_CHANGED, wxFileDirPickerEventHandler( ConfigDialog::BrowseChange ), NULL, this );
}
void ConfigDialog::OnClose(wxCloseEvent& /*event*/)
@ -131,9 +129,9 @@ void ConfigDialog::ConfigDialogActivate(wxActivateEvent& event)
// init dialog elements from config
}
void ConfigDialog::BrowseClick(wxCommandEvent& event)
void ConfigDialog::BrowseChange( wxFileDirPickerEvent& event )
{
// browse for folder
// Doesn't trigger an Event...Oh well //
}
void ConfigDialog::OKClick(wxCommandEvent& event)
@ -141,8 +139,6 @@ void ConfigDialog::OKClick(wxCommandEvent& event)
if ((event.GetId() == ID_APPLY) ||
(event.GetId() == ID_OK))
{
g_Config.renderToMainframe = m_RenderToMainWindow->GetValue();
g_Config.bFullscreen = m_Fullscreen->GetValue();
g_Config.Save();
}