Skip to content

Commit b62a617

Browse files
authored
Merge pull request #371 from pspdev/add-sceGuGetInit
Add guGetInit function
2 parents b1ad4f7 + 6a5ccb7 commit b62a617

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/gu/pspgu.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,15 @@ int sceGuInit(void);
476476
**/
477477
void sceGuTerm(void);
478478

479+
/**
480+
* Get if the GU system has been initialized
481+
*
482+
* Returns 1 after sceGuInit() has been called, returns 0 otherwise or after sceGuTerm() has been called.
483+
*
484+
* @return Whether the GU system has been initialized or not
485+
**/
486+
int guGetInit();
487+
479488
/**
480489
* Break the display list
481490
*

src/gu/sceGuInit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,7 @@ int sceGuInit(void)
375375
gu_first_start = 1;
376376
return 0;
377377
}
378+
379+
int guGetInit() {
380+
return gu_init;
381+
}

0 commit comments

Comments
 (0)