Fix not building prx and fix errors logged about closing files (based on issues raised in #1145, thanks Zekiu)

This commit is contained in:
UnknownShadow200 2024-02-06 08:39:29 +11:00
parent 04346551dc
commit 13a7f49658
3 changed files with 4 additions and 3 deletions

View File

@ -173,7 +173,7 @@ cc_result File_Write(cc_file file, const void* data, cc_uint32 count, cc_uint32*
}
cc_result File_Close(cc_file file) {
int result = sceIoDclose(file);
int result = sceIoClose(file);
return GetSCEResult(result);
}

View File

@ -37,6 +37,8 @@ void Window_Init(void) {
Input.Sources = INPUT_SOURCE_GAMEPAD;
sceCtrlSetSamplingCycle(0);
sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);
sceDisplaySetMode(0, SCREEN_WIDTH, SCREEN_HEIGHT);
}
void Window_Free(void) { }
@ -122,7 +124,6 @@ void Window_DrawFramebuffer(Rect2D r, struct Bitmap* bmp) {
void* fb = sceGeEdramGetAddr();
sceDisplayWaitVblankStart();
sceDisplaySetMode(0, SCREEN_WIDTH, SCREEN_HEIGHT);
sceDisplaySetFrameBuf(fb, BUFFER_WIDTH, PSP_DISPLAY_PIXEL_FORMAT_8888, PSP_DISPLAY_SETBUF_IMMEDIATE);
cc_uint32* src = (cc_uint32*)bmp->scan0 + r.x;