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 {
return &playstation5Error{
name: name,
code: int(err.code),
message: C.GoString(err.message),
code: int(err.Code),
message: C.GoString(err.Message),
}
}

View File

@ -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);