diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.go b/internal/graphicsdriver/playstation5/graphics_playstation5.go index 3c295d6ab..63cd09091 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.go +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.go @@ -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), } } diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.h b/internal/graphicsdriver/playstation5/graphics_playstation5.h index e6894f2c4..8299eff5e 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.h +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.h @@ -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);