summaryrefslogtreecommitdiff
path: root/src/core/hle/service/spl
diff options
context:
space:
mode:
authorGravatar Morph2021-11-02 17:23:19 -0400
committerGravatar Morph2021-11-02 17:23:19 -0400
commitcb09ea0f0174162a85f47fdb8446b397c3c57e20 (patch)
tree5cbd9a62e1daf1c1de97444858064fe8210df077 /src/core/hle/service/spl
parenthle/result: Amend ResultVal documentation (diff)
downloadyuzu-cb09ea0f0174162a85f47fdb8446b397c3c57e20.tar.gz
yuzu-cb09ea0f0174162a85f47fdb8446b397c3c57e20.tar.xz
yuzu-cb09ea0f0174162a85f47fdb8446b397c3c57e20.zip
general: Remove MakeResult helpers
This is made obsolete by the presence of implicit constructors.
Diffstat (limited to 'src/core/hle/service/spl')
-rw-r--r--src/core/hle/service/spl/spl_module.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/hle/service/spl/spl_module.cpp b/src/core/hle/service/spl/spl_module.cpp
index ed4c06260..10f7d1461 100644
--- a/src/core/hle/service/spl/spl_module.cpp
+++ b/src/core/hle/service/spl/spl_module.cpp
@@ -120,40 +120,40 @@ ResultVal<u64> Module::Interface::GetConfigImpl(ConfigItem config_item) const {
120 return ResultSecureMonitorNotImplemented; 120 return ResultSecureMonitorNotImplemented;
121 case ConfigItem::ExosphereApiVersion: 121 case ConfigItem::ExosphereApiVersion:
122 // Get information about the current exosphere version. 122 // Get information about the current exosphere version.
123 return MakeResult((u64{HLE::ApiVersion::ATMOSPHERE_RELEASE_VERSION_MAJOR} << 56) | 123 return (u64{HLE::ApiVersion::ATMOSPHERE_RELEASE_VERSION_MAJOR} << 56) |
124 (u64{HLE::ApiVersion::ATMOSPHERE_RELEASE_VERSION_MINOR} << 48) | 124 (u64{HLE::ApiVersion::ATMOSPHERE_RELEASE_VERSION_MINOR} << 48) |
125 (u64{HLE::ApiVersion::ATMOSPHERE_RELEASE_VERSION_MICRO} << 40) | 125 (u64{HLE::ApiVersion::ATMOSPHERE_RELEASE_VERSION_MICRO} << 40) |
126 (static_cast<u64>(HLE::ApiVersion::GetTargetFirmware()))); 126 (static_cast<u64>(HLE::ApiVersion::GetTargetFirmware()));
127 case ConfigItem::ExosphereNeedsReboot: 127 case ConfigItem::ExosphereNeedsReboot:
128 // We are executing, so we aren't in the process of rebooting. 128 // We are executing, so we aren't in the process of rebooting.
129 return MakeResult(u64{0}); 129 return u64{0};
130 case ConfigItem::ExosphereNeedsShutdown: 130 case ConfigItem::ExosphereNeedsShutdown:
131 // We are executing, so we aren't in the process of shutting down. 131 // We are executing, so we aren't in the process of shutting down.
132 return MakeResult(u64{0}); 132 return u64{0};
133 case ConfigItem::ExosphereGitCommitHash: 133 case ConfigItem::ExosphereGitCommitHash:
134 // Get information about the current exosphere git commit hash. 134 // Get information about the current exosphere git commit hash.
135 return MakeResult(u64{0}); 135 return u64{0};
136 case ConfigItem::ExosphereHasRcmBugPatch: 136 case ConfigItem::ExosphereHasRcmBugPatch:
137 // Get information about whether this unit has the RCM bug patched. 137 // Get information about whether this unit has the RCM bug patched.
138 return MakeResult(u64{0}); 138 return u64{0};
139 case ConfigItem::ExosphereBlankProdInfo: 139 case ConfigItem::ExosphereBlankProdInfo:
140 // Get whether this unit should simulate a "blanked" PRODINFO. 140 // Get whether this unit should simulate a "blanked" PRODINFO.
141 return MakeResult(u64{0}); 141 return u64{0};
142 case ConfigItem::ExosphereAllowCalWrites: 142 case ConfigItem::ExosphereAllowCalWrites:
143 // Get whether this unit should allow writing to the calibration partition. 143 // Get whether this unit should allow writing to the calibration partition.
144 return MakeResult(u64{0}); 144 return u64{0};
145 case ConfigItem::ExosphereEmummcType: 145 case ConfigItem::ExosphereEmummcType:
146 // Get what kind of emummc this unit has active. 146 // Get what kind of emummc this unit has active.
147 return MakeResult(u64{0}); 147 return u64{0};
148 case ConfigItem::ExospherePayloadAddress: 148 case ConfigItem::ExospherePayloadAddress:
149 // Gets the physical address of the reboot payload buffer, if one exists. 149 // Gets the physical address of the reboot payload buffer, if one exists.
150 return ResultSecureMonitorNotInitialized; 150 return ResultSecureMonitorNotInitialized;
151 case ConfigItem::ExosphereLogConfiguration: 151 case ConfigItem::ExosphereLogConfiguration:
152 // Get the log configuration. 152 // Get the log configuration.
153 return MakeResult(u64{0}); 153 return u64{0};
154 case ConfigItem::ExosphereForceEnableUsb30: 154 case ConfigItem::ExosphereForceEnableUsb30:
155 // Get whether usb 3.0 should be force-enabled. 155 // Get whether usb 3.0 should be force-enabled.
156 return MakeResult(u64{0}); 156 return u64{0};
157 default: 157 default:
158 return ResultSecureMonitorInvalidArgument; 158 return ResultSecureMonitorInvalidArgument;
159 } 159 }