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 {
|
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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user