Fixed the throttle in the wx build
This commit is contained in:
parent
c30ce554ef
commit
b729a75012
|
@ -239,7 +239,7 @@ void DirectSound::write(u16 * finalWave, int length)
|
|||
LPVOID lpvPtr2;
|
||||
DWORD dwBytes2 = 0;
|
||||
|
||||
if( !speedup && synchronize && !gopts.throttle ) {
|
||||
if (!speedup && synchronize && !gopts.throttle && !gba_joybus_active) {
|
||||
hr = dsbSecondary->GetStatus(&status);
|
||||
if( status & DSBSTATUS_PLAYING ) {
|
||||
if( !soundPaused ) {
|
||||
|
|
|
@ -290,7 +290,7 @@ void OpenAL::write(u16 * finalWave, int length)
|
|||
}
|
||||
}
|
||||
|
||||
if( !speedup && synchronize && !gopts.throttle ) {
|
||||
if (!speedup && synchronize && !gopts.throttle && !gba_joybus_active) {
|
||||
// wait until at least one buffer has finished
|
||||
while( nBuffersProcessed == 0 ) {
|
||||
winlog( " waiting...\n" );
|
||||
|
|
|
@ -907,7 +907,7 @@ bool systemCanChangeSoundQuality()
|
|||
if(panel)
|
||||
return !panel->IsRecording();
|
||||
#endif
|
||||
return true;
|
||||
return wxGetApp().IsMainLoopRunning();
|
||||
}
|
||||
|
||||
bool systemPauseOnFrame()
|
||||
|
@ -1135,7 +1135,9 @@ void log(const char *defaultMsg, ...)
|
|||
vsnprintf(buf, 2048, defaultMsg, valist);
|
||||
va_end(valist);
|
||||
wxGetApp().log.append(wxString(buf, wxConvLibc));
|
||||
LogDialog *d = wxGetApp().frame->logdlg;
|
||||
if(d)
|
||||
d->Update();
|
||||
if (wxGetApp().IsMainLoopRunning()) {
|
||||
LogDialog *d = wxGetApp().frame->logdlg;
|
||||
if(d)
|
||||
d->Update();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
// The built-in vba-over.ini
|
||||
#include "builtin-over.h"
|
||||
#include "common/ConfigManager.h"
|
||||
|
||||
IMPLEMENT_APP(wxvbamApp)
|
||||
IMPLEMENT_DYNAMIC_CLASS(MainFrame, wxFrame)
|
||||
|
@ -388,6 +389,11 @@ bool wxvbamApp::OnCmdLineParsed(wxCmdLineParser &cl)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
home = strdup((const char*)argv[0].mb_str(wxConvUTF8));
|
||||
SetHome(home);
|
||||
LoadConfig(); // Parse command line arguments (overrides ini)
|
||||
ReadOpts(argc, argv);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ public:
|
|||
}
|
||||
private:
|
||||
wxPathList config_path;
|
||||
char* home;
|
||||
};
|
||||
|
||||
DECLARE_APP(wxvbamApp);
|
||||
|
|
Loading…
Reference in New Issue