mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 09:04:23 -04:00
add basic tests for os::Event/SystemEvent functionality
This commit is contained in:
parent
64a97576d0
commit
1933f35db6
11 changed files with 696 additions and 9 deletions
|
@ -543,7 +543,7 @@ namespace ams::fs::impl {
|
|||
|
||||
bool IsEnabledFileSystemAccessorAccessLog(const char *mount_name) {
|
||||
/* Get the accessor. */
|
||||
impl::FileSystemAccessor *accessor;
|
||||
impl::FileSystemAccessor *accessor = nullptr;
|
||||
if (R_FAILED(impl::Find(std::addressof(accessor), mount_name))) {
|
||||
return true;
|
||||
}
|
||||
|
@ -553,7 +553,7 @@ namespace ams::fs::impl {
|
|||
|
||||
void EnableFileSystemAccessorAccessLog(const char *mount_name) {
|
||||
/* Get the accessor. */
|
||||
impl::FileSystemAccessor *accessor;
|
||||
impl::FileSystemAccessor *accessor = nullptr;
|
||||
AMS_FS_R_ABORT_UNLESS(impl::Find(std::addressof(accessor), mount_name));
|
||||
accessor->SetAccessLogEnabled(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue