3DS cleanup

This commit is contained in:
Clownacy 2020-10-11 15:17:00 +01:00
parent c398ec7c25
commit 2a73c12a5f
2 changed files with 3 additions and 5 deletions

View file

@ -76,7 +76,7 @@ unsigned long SoftwareMixerBackend_Init(void (*callback)(long *stream, size_t fr
if (stream_buffer != NULL) if (stream_buffer != NULL)
{ {
if (ndspInit() == 0) if (R_SUCCEEDED(ndspInit()))
{ {
ndspSetCallback(Callback, NULL); ndspSetCallback(Callback, NULL);

View file

@ -17,9 +17,7 @@ bool Backend_Init(void (*drag_and_drop_callback)(const char *path), void (*windo
gfxInitDefault(); gfxInitDefault();
consoleInit(GFX_BOTTOM, NULL); consoleInit(GFX_BOTTOM, NULL);
Result rc = romfsInit(); if (R_SUCCEEDED(romfsInit()))
if (rc == 0)
{ {
osSetSpeedupEnable(true); // Enable New3DS speedup, since this doesn't run very well on Old3DSs yet osSetSpeedupEnable(true); // Enable New3DS speedup, since this doesn't run very well on Old3DSs yet
@ -44,7 +42,7 @@ void Backend_Deinit(void)
void Backend_PostWindowCreation(void) void Backend_PostWindowCreation(void)
{ {
// Nothing to do here
} }
bool Backend_GetBasePath(std::string *string_buffer) bool Backend_GetBasePath(std::string *string_buffer)