HarbourMasters / HarbourMasters/Shipwright

ImGui swapped colors and no sfx audio

Open
#4,513 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
5.4k
Forks
837
Avg merge
1d 9h
Merged PRs (30d)
72

Description

Hello everyone, I hope everything is alright.
So, I compiled the Ship on a PowerMac G5 running Debian sid PPC64. It works but I have the colors on the ImGui swapped due to big endian.
![20241102_113856](https://github.com/user-attachments/assets/2367eca4-2445-4b0f-9d6a-2db800a0f17b)
The order of color channels in an uint32 color is inverted, after generating the cmake ninja build, in the file imconfig.h I added
```
#define IM_COL32_R_SHIFT 24
#define IM_COL32_G_SHIFT 16
#define IM_COL32_B_SHIFT 8
#define IM_COL32_A_SHIFT 0
#define IM_COL32_A_MASK 0x000000FF
```

The result of a new compilation with modified imconfig.h
![20241102_170007](https://github.com/user-attachments/assets/1dd2b44b-5c06-4781-8bb9-a51480bc4c2f)
The only problem now is the SFX audio, there's only music, but no sfx
I was messing with the z64audio.h where ifdef IS_BIGENDIAN is located, but when trying to compile got errors on console related to "ocarina notes" and failed to compile.

Best regards,
Link.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.