mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -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
@ -10,7 +10,7 @@ LIBDIR =
|
|||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
LIBS = -lm -lpspgum -lpspgu -lpspge -lpspdisplay -lpspctrl
|
LIBS = -lm -lpspgum -lpspgu -lpspge -lpspdisplay -lpspctrl
|
||||||
|
|
||||||
BUILD_PRX = 1
|
BUILD_PRX = 1
|
||||||
|
|
||||||
EXTRA_TARGETS = EBOOT.PBP
|
EXTRA_TARGETS = EBOOT.PBP
|
||||||
PSP_EBOOT_TITLE = ClassiCube
|
PSP_EBOOT_TITLE = ClassiCube
|
||||||
|
@ -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) {
|
cc_result File_Close(cc_file file) {
|
||||||
int result = sceIoDclose(file);
|
int result = sceIoClose(file);
|
||||||
return GetSCEResult(result);
|
return GetSCEResult(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ void Window_Init(void) {
|
|||||||
Input.Sources = INPUT_SOURCE_GAMEPAD;
|
Input.Sources = INPUT_SOURCE_GAMEPAD;
|
||||||
sceCtrlSetSamplingCycle(0);
|
sceCtrlSetSamplingCycle(0);
|
||||||
sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);
|
sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG);
|
||||||
|
|
||||||
|
sceDisplaySetMode(0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window_Free(void) { }
|
void Window_Free(void) { }
|
||||||
@ -122,7 +124,6 @@ void Window_DrawFramebuffer(Rect2D r, struct Bitmap* bmp) {
|
|||||||
void* fb = sceGeEdramGetAddr();
|
void* fb = sceGeEdramGetAddr();
|
||||||
|
|
||||||
sceDisplayWaitVblankStart();
|
sceDisplayWaitVblankStart();
|
||||||
sceDisplaySetMode(0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
||||||
sceDisplaySetFrameBuf(fb, BUFFER_WIDTH, PSP_DISPLAY_PIXEL_FORMAT_8888, PSP_DISPLAY_SETBUF_IMMEDIATE);
|
sceDisplaySetFrameBuf(fb, BUFFER_WIDTH, PSP_DISPLAY_PIXEL_FORMAT_8888, PSP_DISPLAY_SETBUF_IMMEDIATE);
|
||||||
|
|
||||||
cc_uint32* src = (cc_uint32*)bmp->scan0 + r.x;
|
cc_uint32* src = (cc_uint32*)bmp->scan0 + r.x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user