mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 11:10:06 +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"
|
#include "core/file_sys/vfs.h"
|
||||||
|
|
||||||
namespace Loader {
|
namespace Loader {
|
||||||
enum class ResultStatus;
|
enum class ResultStatus : u16;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "partition_filesystem.h"
|
#include "partition_filesystem.h"
|
||||||
|
|
||||||
namespace Loader {
|
namespace Loader {
|
||||||
enum class ResultStatus;
|
enum class ResultStatus : u16;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
@ -126,7 +126,7 @@ constexpr std::array<const char*, 36> RESULT_MESSAGES{
|
|||||||
};
|
};
|
||||||
|
|
||||||
std::string GetMessageForResultStatus(ResultStatus status) {
|
std::string GetMessageForResultStatus(ResultStatus status) {
|
||||||
return GetMessageForResultStatus(static_cast<size_t>(status));
|
return GetMessageForResultStatus(static_cast<u16>(status));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetMessageForResultStatus(u16 status) {
|
std::string GetMessageForResultStatus(u16 status) {
|
||||||
|
@ -56,7 +56,7 @@ FileType GuessFromFilename(const std::string& name);
|
|||||||
std::string GetFileTypeString(FileType type);
|
std::string GetFileTypeString(FileType type);
|
||||||
|
|
||||||
/// Return type for functions in Loader namespace
|
/// Return type for functions in Loader namespace
|
||||||
enum class ResultStatus {
|
enum class ResultStatus : u16 {
|
||||||
Success,
|
Success,
|
||||||
ErrorAlreadyLoaded,
|
ErrorAlreadyLoaded,
|
||||||
ErrorNotImplemented,
|
ErrorNotImplemented,
|
||||||
|
Loading…
Reference in New Issue
Block a user