mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Fix not building prx and fix errors logged about closing files (based on issues raised in #1145, thanks Zekiu)
This commit is contained in:
parent
04346551dc
commit
13a7f49658
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user