early-access version 1933
This commit is contained in:
parent
a1ee98a6ee
commit
e8a1e7962c
4 changed files with 9 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1931.
|
This is the source code for early-access 1933.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <exception>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -17,7 +17,7 @@ class Exception : public std::exception {
|
||||||
public:
|
public:
|
||||||
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
|
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
|
||||||
|
|
||||||
const char* what() const noexcept override {
|
[[nodiscard]] const char* what() const noexcept override {
|
||||||
return err_message.c_str();
|
return err_message.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,21 +36,21 @@ private:
|
||||||
class LogicError : public Exception {
|
class LogicError : public Exception {
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
LogicError(const char* message, Args&&... args)
|
explicit LogicError(const char* message, Args&&... args)
|
||||||
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
|
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class RuntimeError : public Exception {
|
class RuntimeError : public Exception {
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
RuntimeError(const char* message, Args&&... args)
|
explicit RuntimeError(const char* message, Args&&... args)
|
||||||
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
|
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class NotImplementedException : public Exception {
|
class NotImplementedException : public Exception {
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
NotImplementedException(const char* message, Args&&... args)
|
explicit NotImplementedException(const char* message, Args&&... args)
|
||||||
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {
|
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {
|
||||||
Append(" is not implemented");
|
Append(" is not implemented");
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ public:
|
||||||
class InvalidArgument : public Exception {
|
class InvalidArgument : public Exception {
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
InvalidArgument(const char* message, Args&&... args)
|
explicit InvalidArgument(const char* message, Args&&... args)
|
||||||
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
|
: Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -299,7 +299,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
VideoCore::RasterizerInterface* rasterizer;
|
VideoCore::RasterizerInterface* rasterizer = nullptr;
|
||||||
|
|
||||||
/// Performs the copy from the source surface to the destination surface as configured in the
|
/// Performs the copy from the source surface to the destination surface as configured in the
|
||||||
/// registers.
|
/// registers.
|
||||||
|
|
|
@ -227,7 +227,7 @@ private:
|
||||||
Core::System& system;
|
Core::System& system;
|
||||||
|
|
||||||
MemoryManager& memory_manager;
|
MemoryManager& memory_manager;
|
||||||
VideoCore::RasterizerInterface* rasterizer;
|
VideoCore::RasterizerInterface* rasterizer = nullptr;
|
||||||
|
|
||||||
std::vector<u8> read_buffer;
|
std::vector<u8> read_buffer;
|
||||||
std::vector<u8> write_buffer;
|
std::vector<u8> write_buffer;
|
||||||
|
|
Loading…
Reference in a new issue