fix enum name and source function

This commit is contained in:
TurtleP 2021-04-01 15:57:57 -04:00
parent 46c42b5ec1
commit 9ec69774c2
2 changed files with 12 additions and 9 deletions

View File

@ -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.

View File

@ -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) {