mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/graphicsdriver/playstation5: change struct member names
This commit is contained in:
parent
dc8dfae3bf
commit
a6d7cadab7
@ -36,8 +36,8 @@ type playstation5Error struct {
|
||||
func newPlaystation5Error(name string, err C.ebitengine_Error) *playstation5Error {
|
||||
return &playstation5Error{
|
||||
name: name,
|
||||
code: int(err.code),
|
||||
message: C.GoString(err.message),
|
||||
code: int(err.Code),
|
||||
message: C.GoString(err.Message),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,12 +25,12 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct ebitengine_Error {
|
||||
const char* message;
|
||||
int code;
|
||||
const char* Message;
|
||||
int Code;
|
||||
} ebitengine_Error;
|
||||
|
||||
static bool ebitengine_IsErrorNil(ebitengine_Error* err) {
|
||||
return err->message == NULL && err->code == 0;
|
||||
return err->Message == NULL && err->Code == 0;
|
||||
}
|
||||
|
||||
ebitengine_Error ebitengine_InitializeGraphics(void);
|
||||
|
Loading…
Reference in New Issue
Block a user