mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 11:30:04 +00:00
Merge pull request #1025 from ogniK5377/bad-cast
Fixed invalid cast in loader
This commit is contained in:
commit
424e90f0f5
@ -13,7 +13,7 @@
|
||||
#include "core/file_sys/vfs.h"
|
||||
|
||||
namespace Loader {
|
||||
enum class ResultStatus;
|
||||
enum class ResultStatus : u16;
|
||||
}
|
||||
|
||||
namespace FileSys {
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "partition_filesystem.h"
|
||||
|
||||
namespace Loader {
|
||||
enum class ResultStatus;
|
||||
enum class ResultStatus : u16;
|
||||
}
|
||||
|
||||
namespace FileSys {
|
||||
|
@ -126,7 +126,7 @@ constexpr std::array<const char*, 36> RESULT_MESSAGES{
|
||||
};
|
||||
|
||||
std::string GetMessageForResultStatus(ResultStatus status) {
|
||||
return GetMessageForResultStatus(static_cast<size_t>(status));
|
||||
return GetMessageForResultStatus(static_cast<u16>(status));
|
||||
}
|
||||
|
||||
std::string GetMessageForResultStatus(u16 status) {
|
||||
|
@ -56,7 +56,7 @@ FileType GuessFromFilename(const std::string& name);
|
||||
std::string GetFileTypeString(FileType type);
|
||||
|
||||
/// Return type for functions in Loader namespace
|
||||
enum class ResultStatus {
|
||||
enum class ResultStatus : u16 {
|
||||
Success,
|
||||
ErrorAlreadyLoaded,
|
||||
ErrorNotImplemented,
|
||||
|
Loading…
Reference in New Issue
Block a user