Linux: Call NDS_Init() early
Since NDS_Init takes no arguments, it should not hurt to call it early in the gtk frontend, too. This fixes the segfault in issue #415, although I could not get it to run a r4 kernel in a quick test.
This commit is contained in:
parent
f827be2e0f
commit
b4080b2cae
|
@ -32,8 +32,6 @@ BOOL click = FALSE;
|
||||||
|
|
||||||
void desmume_init( int disable_sound)
|
void desmume_init( int disable_sound)
|
||||||
{
|
{
|
||||||
NDS_Init();
|
|
||||||
|
|
||||||
if ( !disable_sound) {
|
if ( !disable_sound) {
|
||||||
SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4);
|
SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3599,6 +3599,8 @@ int main (int argc, char *argv[])
|
||||||
// The global menu screws up the window size...
|
// The global menu screws up the window size...
|
||||||
unsetenv("UBUNTU_MENUPROXY");
|
unsetenv("UBUNTU_MENUPROXY");
|
||||||
|
|
||||||
|
// this must be called as early as possible
|
||||||
|
NDS_Init();
|
||||||
|
|
||||||
my_config.parse(argc, argv);
|
my_config.parse(argc, argv);
|
||||||
init_configured_features( &my_config);
|
init_configured_features( &my_config);
|
||||||
|
|
Loading…
Reference in New Issue