More nice touches to DiscordRPC
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <Scheduler.hpp>
|
||||
|
||||
namespace n64 {
|
||||
Core::Core(ParallelRDP ¶llel) : cpu(std::make_unique<JIT>(parallel)) {}
|
||||
Core::Core(ParallelRDP ¶llel) : cpu(std::make_unique<Interpreter>(parallel)) {}
|
||||
|
||||
void Core::Stop() {
|
||||
render = false;
|
||||
|
||||
@@ -29,6 +29,7 @@ union TASMovieControllerData {
|
||||
static_assert(sizeof(TASMovieControllerData) == 4);
|
||||
|
||||
bool MupenMovie::Load(const fs::path &path) {
|
||||
filename = path.stem().string();
|
||||
loadedTasMovie = Util::ReadFileBinary(path.string());
|
||||
if (!IsLoaded()) {
|
||||
Util::error("Error loading movie!");
|
||||
|
||||
@@ -51,9 +51,11 @@ struct MupenMovie {
|
||||
bool Load(const fs::path &);
|
||||
void Reset();
|
||||
n64::Controller NextInputs();
|
||||
bool IsLoaded() const { return !loadedTasMovie.empty(); }
|
||||
[[nodiscard]] bool IsLoaded() const { return !loadedTasMovie.empty(); }
|
||||
[[nodiscard]] const std::string &GetFilename() const { return filename; }
|
||||
|
||||
private:
|
||||
std::string filename{};
|
||||
std::vector<u8> loadedTasMovie = {};
|
||||
TASMovieHeader loadedTasMovieHeader = {};
|
||||
uint32_t loadedTasMovieIndex = 0;
|
||||
|
||||
Reference in New Issue
Block a user