mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Add RomFS success variable
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include <cpp3ds/System/Service.hpp>
|
||||
#include <3ds.h>
|
||||
#include <malloc.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace cpp3ds {
|
||||
|
||||
@@ -39,7 +41,7 @@ bool Service::enable(ServiceName service) {
|
||||
break;
|
||||
case ROMFS:
|
||||
romfsInit();
|
||||
success = true;
|
||||
success = strcmp(getcwd(NULL,0), "romfs:/") == 0;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user