diff --git a/src/sdmc.rs b/src/sdmc.rs index 5e98552..75a58a9 100644 --- a/src/sdmc.rs +++ b/src/sdmc.rs @@ -7,7 +7,7 @@ pub struct Sdmc { } impl Sdmc { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = sdmcInit(); if r < 0 { diff --git a/src/services/apt.rs b/src/services/apt.rs index 8f50570..28e0500 100644 --- a/src/services/apt.rs +++ b/src/services/apt.rs @@ -55,7 +55,7 @@ pub struct Apt { } impl Apt { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = apt::aptInit(); if r < 0 { diff --git a/src/services/hid.rs b/src/services/hid.rs index 1719c32..1b90194 100644 --- a/src/services/hid.rs +++ b/src/services/hid.rs @@ -78,7 +78,7 @@ pub struct Hid { } impl Hid { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = hid::hidInit(); if r < 0 { diff --git a/src/srv.rs b/src/srv.rs index bb1bb59..9c4388c 100644 --- a/src/srv.rs +++ b/src/srv.rs @@ -7,7 +7,7 @@ pub struct Srv { } impl Srv { - pub fn new() -> Result { + pub fn init() -> Result { unsafe { let r = srvInit(); if r < 0 {