Fix exit issue
Fixed an issue whereby the 3DS would crash when attempting to exit the 3DSX version of ctrmus. Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Submodule buildtools updated: 2ef982ddbd...29ab2234e7
@@ -19,11 +19,6 @@ int playFile(const char* file)
|
|||||||
bool lastbuf = false;
|
bool lastbuf = false;
|
||||||
|
|
||||||
printf("Here: %d\n", __LINE__);
|
printf("Here: %d\n", __LINE__);
|
||||||
if(R_FAILED(ndspInit()))
|
|
||||||
{
|
|
||||||
printf("Initialising ndsp failed.");
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch(getFileType(file))
|
switch(getFileType(file))
|
||||||
{
|
{
|
||||||
@@ -50,6 +45,12 @@ int playFile(const char* file)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(R_FAILED(ndspInit()))
|
||||||
|
{
|
||||||
|
printf("Initialising ndsp failed.");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
printf("Here: %d\n", __LINE__);
|
printf("Here: %d\n", __LINE__);
|
||||||
buffer1 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
buffer1 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
||||||
buffer2 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
buffer2 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
||||||
|
|||||||
Reference in New Issue
Block a user