internal/graphicsdriver/playstation5: change struct member names

This commit is contained in:
Hajime Hoshi 2024-06-17 03:04:18 +09:00
parent dc8dfae3bf
commit a6d7cadab7
2 changed files with 5 additions and 5 deletions

View File

@ -36,8 +36,8 @@ type playstation5Error struct {
func newPlaystation5Error(name string, err C.ebitengine_Error) *playstation5Error { func newPlaystation5Error(name string, err C.ebitengine_Error) *playstation5Error {
return &playstation5Error{ return &playstation5Error{
name: name, name: name,
code: int(err.code), code: int(err.Code),
message: C.GoString(err.message), message: C.GoString(err.Message),
} }
} }

View File

@ -25,12 +25,12 @@ extern "C" {
#endif #endif
typedef struct ebitengine_Error { typedef struct ebitengine_Error {
const char* message; const char* Message;
int code; int Code;
} ebitengine_Error; } ebitengine_Error;
static bool ebitengine_IsErrorNil(ebitengine_Error* err) { 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); ebitengine_Error ebitengine_InitializeGraphics(void);