Skip to content

Commit

Permalink
== DC ==
Browse files Browse the repository at this point in the history
- Updated source so it compiles under latest KOS
- Fixed issue with wrong message being displayed when VMU test was present bit not a save file while auto loading on boot
- removed inline functions
- Fixed missing breaks
  • Loading branch information
ArtemioUrbina committed Nov 7, 2023
1 parent 906c339 commit d3b5e84
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions 240psuite/Dreamcast/PVR/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ void FlipV(ImagePtr image, uint16 flip);
void FlipHV(ImagePtr image, uint16 flip);
void DrawImage(ImagePtr image);
void DrawImageRotate(ImagePtr image, float angle);
inline void StartScene();
inline void EndScene();
void StartScene();
void EndScene();

typedef struct dpallette_st {
uint32_t numcolors;
Expand Down
4 changes: 2 additions & 2 deletions 240psuite/Dreamcast/PVR/vmodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ extern vid_mode_t custom_576;
void GetVideoModeStr(char *res, int shortdesc);
void AdjustVideoModes();
void LoadScanlines();
inline void ReleaseScanlines();
inline void DrawScanlines();
void ReleaseScanlines();
void DrawScanlines();
float GetScanlineIntensity();
void SetScanlineIntensity(float value);
int ScanlinesEven();
Expand Down
2 changes: 2 additions & 0 deletions 240psuite/Dreamcast/PVR/vmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ void internal_vmu_draw_lcd(maple_device_t *dev, void *bitmap)
{
case MAPLE_EAGAIN:
dbglog(DBG_ERROR, "VMU LCD could not be updated, got MAPLE_EAGAIN\n");
break;
case MAPLE_ETIMEOUT:
dbglog(DBG_ERROR, "VMU LCD could not be updated, got MAPLE_ETIMEOUT\n");
break;
default:
disableVMU_LCD_val = 1;
break;
Expand Down
4 changes: 2 additions & 2 deletions 240psuite/Dreamcast/PVR/vmu_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void vmu_clear_bitmap(uint8 bitmap[192])
bitmap[i] = 0x00;
}

inline void vmu_flip_bit(uint8 bitmap[192], uint8 x, uint8 y)
void vmu_flip_bit(uint8 bitmap[192], uint8 x, uint8 y)
/* (0, 0) is upper-left corner */
{
if (x < 48 && y < 32)
Expand All @@ -45,7 +45,7 @@ void vmu_invert_bitmap(uint8 bitmap[192])
vmu_flip_bit(bitmap, x, y);
}

inline void vmu_set_bit(uint8 bitmap[192], uint8 x, uint8 y)
void vmu_set_bit(uint8 bitmap[192], uint8 x, uint8 y)
/* (0, 0) is upper-left corner */
{
if (x < 48 && y < 32)
Expand Down
4 changes: 2 additions & 2 deletions 240psuite/Dreamcast/PVR/vmu_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
void vmu_clear_bitmap(uint8 bitmap[192]);
void vmu_invert_bitmap(uint8 bitmap[192]);

inline void vmu_flip_bit(uint8 bitmap[192], uint8 x, uint8 y);
void vmu_flip_bit(uint8 bitmap[192], uint8 x, uint8 y);
/* (0, 0) is upper-left corner */

inline void vmu_set_bit(uint8 bitmap[192], uint8 x, uint8 y);
void vmu_set_bit(uint8 bitmap[192], uint8 x, uint8 y);
/* (0, 0) is upper-left corner */

void vmu_draw_char(uint8 bitmap[192], unsigned char c, int x, int y);
Expand Down
3 changes: 2 additions & 1 deletion 240psuite/Dreamcast/PVR/vmufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ int MemcardSaveExists(char *filename, int *blocks, int *port, int *unit)

for(file = 0; file < numfiles; file++)
{
if(strncmp(filename, vmufiles[file].filename, VMU_NAME_LEN) == 0)
if(vmufiles[file].filetype == 0x33 &&
strncmp(filename, vmufiles[file].filename, VMU_NAME_LEN) == 0)
{
if(blocks)
*blocks = vmufiles[file].filesize;
Expand Down

0 comments on commit d3b5e84

Please sign in to comment.