Skip to content

Commit

Permalink
fix umd video sleep/resume
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Dec 12, 2024
1 parent a9ac6a1 commit 01df5b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/inferno/inferno.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern SceUID g_umd_cbid;
extern int g_umd_error_status;
extern int g_drive_status;

extern const char *g_iso_fn;
extern char g_iso_fn[255];
extern int g_game_fix_type;
extern SceUID g_drive_status_evf;
extern void *g_sector_buf;
Expand Down
5 changes: 3 additions & 2 deletions core/inferno/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern int sceKernelSetQTGP3(void *unk0);
extern char *GetUmdFile();

// 00002790
const char *g_iso_fn = NULL;
char g_iso_fn[255];

// 0x00002248
u8 g_umddata[16] = {
Expand All @@ -60,7 +60,8 @@ int setup_umd_device(void)
{
int ret;

g_iso_fn = GetUmdFile();
memset(g_iso_fn, 0, sizeof(g_iso_fn));
strncpy(g_iso_fn, GetUmdFile(), sizeof(g_iso_fn));
infernoSetDiscType(sctrlSEGetDiscType());
ret = sceIoAddDrv(&g_iodrv);

Expand Down

0 comments on commit 01df5b9

Please sign in to comment.