PS3: Fix to compile again

This commit is contained in:
UnknownShadow200 2023-11-30 19:12:21 +11:00
parent 677edba22e
commit ce6a8d2516
4 changed files with 17 additions and 6 deletions

View File

@ -17,8 +17,8 @@ include $(PS3DEV)/ppu_rules
#---------------------------------------------------------------------------------
TARGET := ClassiCube-PS3
BUILD := build-ps3
SOURCES := src
INCLUDES :=
SOURCES := src third_party/bearssl/src
INCLUDES := third_party/bearssl/inc
SHADERS := misc/ps3
TITLE := ClassiCube

View File

@ -82,7 +82,7 @@ And also runs on:
* PSP - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/psp), **untested on real hardware**)
* PS Vita - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/vita), **untested on real hardware**)
* Xbox - unfinished, major rendering issues (can [download from here](https://www.classicube.net/download/xbox), **untested on real hardware**)
* PS3 - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/xbox), **untested on real hardware**)
* PS3 - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/ps3), **untested on real hardware**)
* Nintendo 64 - unfinished, major rendering issues
# Compiling

View File

@ -531,7 +531,7 @@ void Gfx_UnlockVb(GfxResourceID vb) {
}
static GfxResourceID Gfx_AllocDynamicVb(VertexFormat fmt, int maxVertices)
static GfxResourceID Gfx_AllocDynamicVb(VertexFormat fmt, int maxVertices) {
return rsxMemalign(128, maxVertices * strideSizes[fmt]);
}

View File

@ -12,11 +12,15 @@
#include "ExtMath.h"
#include "Logger.h"
#include <io/pad.h>
#include <io/kb.h>
#include <sysutil/sysutil.h>
#include <sysutil/video.h>
static cc_bool launcherMode;
static padInfo pad_info;
static padData pad_data;
static KbInfo kb_info;
static KbData kb_data;
struct _DisplayData DisplayInfo;
struct _WinData WindowInfo;
@ -57,7 +61,8 @@ void Window_Init(void) {
DisplayInfo.ContentOffsetX = 10;
DisplayInfo.ContentOffsetY = 10;
ioPadInit(7);
ioPadInit(MAX_PORT_NUM);
//ioKbInit(MAX_KB_PORT_NUM);
}
void Window_Create2D(int width, int height) {
@ -133,13 +138,19 @@ static void ProcessPadInput(double delta, padData* pad) {
}
void Window_ProcessEvents(double delta) {
ioPadGetInfo(&pad_info);
Input.JoystickMovement = false;
ioPadGetInfo(&pad_info);
if (pad_info.status[0]) {
ioPadGetData(0, &pad_data);
ProcessPadInput(delta, &pad_data);
}
//ioKbGetInfo(&kb_info);
//if (kb_info.status[0]) {
// int RES = ioKbRead(0, &kb_data);
// Platform_Log1("RES: %i", &RES);
//}
}
void Cursor_SetPosition(int x, int y) { } // Makes no sense for PS Vita