smaller fixes

This commit is contained in:
Simone
2024-01-18 13:32:52 +01:00
parent 25d1e4c51f
commit 25a6a9f23d
5 changed files with 6 additions and 6 deletions

View File

@@ -184,11 +184,6 @@ void LoadParallelRDP(const u8* rdram) {
}
}
void InitParallelRDP(const u8* rdram, SDL_Window* window) {
LoadWSIPlatform(new SDLWSIPlatform(window), std::make_unique<SDLParallelRdpWindowInfo>(window));
LoadParallelRDP(rdram);
}
void DrawFullscreenTexturedQuad(Util::IntrusivePtr<Image> image, Util::IntrusivePtr<CommandBuffer> cmd) {
cmd->set_texture(0, 0, image->get_view(), Vulkan::StockSampler::LinearClamp);
cmd->set_program(fullscreen_quad_program);

View File

@@ -32,7 +32,8 @@ uint32_t GetVkGraphicsQueueFamily();
VkFormat GetVkFormat();
VkCommandBuffer GetVkCommandBuffer();
void SubmitRequestedVkCommandBuffer();
void InitParallelRDP(const u8* rdram, SDL_Window* window);
void LoadParallelRDP(const u8* rdram);
Vulkan::WSI* LoadWSIPlatform(Vulkan::WSIPlatform* wsi_platform, std::unique_ptr<ParallelRdpWindowInfo>&& newWindowInfo);
void UpdateScreenParallelRdp(n64::Core& core, n64::VI& vi);
void ParallelRdpEnqueueCommand(int command_length, u32* buffer);
void ParallelRdpOnFullSync();

View File

@@ -1,5 +1,6 @@
#include <Core.hpp>
#include <Scheduler.hpp>
#include <ParallelRDPWrapper.hpp>
namespace n64 {
u32 extraCycles = 0;

View File

@@ -153,6 +153,8 @@ void Mem::LoadROM(bool isArchive, const std::string& filename) {
memcpy(&rom.header, buf, sizeof(ROMHeader));
memcpy(rom.gameNameCart, rom.header.imageName, sizeof(rom.header.imageName));
free(buf);
rom.header.clockRate = be32toh(rom.header.clockRate);
rom.header.programCounter = be32toh(rom.header.programCounter);
rom.header.release = be32toh(rom.header.release);

View File

@@ -25,4 +25,5 @@ void KaizenQt::ConnectMainWindowSignalsToSlots() noexcept
void KaizenQt::LoadROM(const QString& file_name) noexcept
{
emuThread->core.LoadROM(file_name.toStdString());
emuThread->start();
}