mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 10:02:14 +02:00
fix enum name and source function
This commit is contained in:
parent
46c42b5ec1
commit
9ec69774c2
@ -25,13 +25,13 @@ typedef enum {
|
||||
|
||||
/// Console Product Models
|
||||
typedef enum {
|
||||
MODEL_INVALID = 0, ///< Invalid Model
|
||||
MODEL_NX = 1, ///< Erista Model
|
||||
MODEL_COPPER = 2, ///< Erista "Simulation" Model
|
||||
MODEL_IOWA = 3, ///< Mariko Model
|
||||
MODEL_HOAG = 4, ///< Mariko Lite Model
|
||||
MODEL_CALCIO = 5, ///< Mariko "Simulation" Model
|
||||
MODEL_AULA = 6, ///< Mariko Pro Model(?)
|
||||
ProductModel_INVALID = 0, ///< Invalid Model
|
||||
ProductModel_NX = 1, ///< Erista Model
|
||||
ProductModel_COPPER = 2, ///< Erista "Simulation" Model
|
||||
ProductModel_IOWA = 3, ///< Mariko Model
|
||||
ProductModel_HOAG = 4, ///< Mariko Lite Model
|
||||
ProductModel_CALCIO = 5, ///< Mariko "Simulation" Model
|
||||
ProductModel_AULA = 6, ///< Mariko Pro Model(?)
|
||||
} ProductModel;
|
||||
|
||||
/// IDs for Language.
|
||||
|
@ -637,8 +637,11 @@ Result setsysSetDeviceNickname(const SetSysDeviceNickName *nickname) {
|
||||
);
|
||||
}
|
||||
|
||||
Result setsysGetProductModel(s32 *out) {
|
||||
return _setCmdNoInOutU32(&g_setsysSrv, (u32*)out, 79);
|
||||
Result setsysGetProductModel(ProductModel *out) {
|
||||
u32 product_model = 0;
|
||||
Result rc = _setCmdNoInOutU32(&g_setsysSrv, &product_model, 79);
|
||||
if (R_SUCCEEDED(rc) && out) *out = product_model;
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result setsysGetLdnChannel(s32 *out) {
|
||||
|
Loading…
Reference in New Issue
Block a user