Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions runtime/src/settings_overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,12 @@ void DrawRumbleSetting() {
extern "C" const char* AuroraSwitchPlayerController(int player); // aurora lib/switch/input_switch.cpp
extern "C" int AuroraSwitchPlayerPressing(int player);
extern "C" int AuroraSwitchShowControllerApplet();
} // namespace
} // namespace settings_overlay
// Global scope: GCC 15 gives an extern "C" variable declared in an unnamed namespace that namespace.
extern "C" const unsigned char kAuroraSwitchPlayerColors[4][3];
namespace settings_overlay {
namespace {

ImVec4 SwitchPlayerColor(int player) {
return ImVec4(kAuroraSwitchPlayerColors[player][0] / 255.0f, kAuroraSwitchPlayerColors[player][1] / 255.0f,
Expand Down
3 changes: 3 additions & 0 deletions runtime/src/system_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ std::optional<TranslatedFunctionInfo> FindNearestTranslatedFunction(uint32_t add

// generated/guest_symbol_table.cpp (or the stub when it is absent): the
// project's function-map names, sorted by address, for crash symbolization.
} // namespace
// Global scope: GCC 15 gives an extern "C" variable declared in an unnamed namespace that namespace.
extern "C" {
extern const uint32_t kGuestMapSymbolCount;
extern const uint32_t kGuestMapSymbolAddresses[];
extern const char* const kGuestMapSymbolNames[];
}
namespace {

// Floor lookup into the function-map name table with the same gap cap as the
// registry heuristic above. Returns nullptr when no named symbol is close.
Expand Down