Building cen64 on Windows with MSVC

Discuss topics related to development here.
Post Reply
User avatar
magumagu
Posts: 1
Joined: Sat Dec 06, 2014 5:28 pm

Building cen64 on Windows with MSVC

Post by magumagu » Sat Dec 06, 2014 8:08 pm

1. I needed the following patch to build cen64 master on MSVC 2013 (8b36389):

Code: Select all

diff --git a/os/windows/winapi_window.c b/os/windows/winapi_window.c
index 59b08e4..13da9a9 100644
--- a/os/windows/winapi_window.c
+++ b/os/windows/winapi_window.c
@@ -9,6 +9,7 @@
 
 #include "common.h"
 #include "common/debug.h"
+#include "device/device.h"
 #include "os/gl_window.h"
 #include "os/input.h"
 #include "os/windows/winapi_window.h"
@@ -179,7 +180,7 @@ int destroy_gl_window(struct gl_window *window) {
     winapi_window->h_instance = NULL;
   }
 
-  DeleteCriticalSection(&gl_window->event_lock);
+  DeleteCriticalSection(&winapi_window->event_lock);
 
   free(winapi_window);
   window->window = NULL;
diff --git a/vr4300/cp1.h b/vr4300/cp1.h
index e8f5d30..9ed88ad 100644
--- a/vr4300/cp1.h
+++ b/vr4300/cp1.h
@@ -15,9 +15,6 @@
 
 struct vr4300;
 
-struct vr4300_cp1 {
-};
-
 int VR4300_BC1(struct vr4300 *vr4300, uint32_t iw, uint64_t fs, uint64_t ft);
 int VR4300_CFC1(struct vr4300 *vr4300, uint32_t iw, uint64_t rs, uint64_t rt);
 int VR4300_CTC1(struct vr4300 *vr4300, uint32_t iw, uint64_t rs, uint64_t rt);
diff --git a/vr4300/cpu.h b/vr4300/cpu.h
index 2f231cd..a5fcec1 100644
--- a/vr4300/cpu.h
+++ b/vr4300/cpu.h
@@ -97,7 +97,6 @@ struct vr4300 {
   //uint8_t padding_for_tlb[(16 - (sizeof(struct vr4300_pipeline) % 16)) % 16];
   uint8_t padding_for_tlb[16 - (sizeof(struct vr4300_pipeline) % 16)];
   struct vr4300_cp0 cp0;
-  struct vr4300_cp1 cp1;
 
   struct bus_controller *bus;
   unsigned signals;
2. It's very inconvenient to build cen64-backport (15be7e1) on Windows because there are unused files which have the same name as required files ignoring case: rsp/decoder.h, rsp/Registers.md, rsp/Interface.h.

User avatar
MarathonMan
Site Admin
Posts: 692
Joined: Fri Oct 04, 2013 4:49 pm

Re: Building cen64 on Windows with MSVC

Post by MarathonMan » Sun Dec 07, 2014 11:36 am

Thanks for the patch, committing now.

And as for the other part, I'm (now) aware of how bad of an idea that was in retrospect. However, cen64-backport will be irrelevant once the new RSP core is written in the head of CEN64, so rejoice!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest