Unified torzu and sudachi friend.cpp + fix android build on dma_pusher

This commit is contained in:
MrPurple666 2025-03-28 02:45:35 -03:00 committed by Briar
parent ab89fdb426
commit bb3971767e
2 changed files with 9 additions and 13 deletions

View file

@ -279,7 +279,9 @@ private:
} }
void GetUserPresenceView(HLERequestContext& ctx) { void GetUserPresenceView(HLERequestContext& ctx) {
LOG_DEBUG(Service_Friend, "(STUBBED) called"); IPC::RequestParser rp{ctx};
const auto uuid = rp.PopRaw<Common::UUID>();
LOG_DEBUG(Service_Friend, "(STUBBED) called, uuid={}.", uuid.RawString());
u8 buf[0xe0]{}; u8 buf[0xe0]{};
ctx.WriteBuffer(buf); ctx.WriteBuffer(buf);
@ -288,18 +290,6 @@ private:
rb.Push(ResultSuccess); rb.Push(ResultSuccess);
} }
void GetUserPresenceView(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto uuid = rp.PopRaw<Common::UUID>();
LOG_DEBUG(Service_Friend, "(STUBBED) called, uuid={}.", uuid.RawString());
// TODO (jarrodnorwell)
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
void GetPlayHistoryStatistics(HLERequestContext& ctx) { void GetPlayHistoryStatistics(HLERequestContext& ctx) {
LOG_ERROR(Service_Friend, "(STUBBED) called, check in out"); LOG_ERROR(Service_Friend, "(STUBBED) called, check in out");

View file

@ -15,6 +15,12 @@ namespace Tegra {
constexpr u32 MacroRegistersStart = 0xE00; constexpr u32 MacroRegistersStart = 0xE00;
constexpr u32 ComputeInline = 0x6D; constexpr u32 ComputeInline = 0x6D;
//start on PR#76 of Eden this is a unused variable in android (need to investigate)
// Dummy function that uses ComputeInline
constexpr void UseComputeInline() {
static_cast<void>(ComputeInline); // Suppress unused variable error
}
DmaPusher::DmaPusher(Core::System& system_, GPU& gpu_, MemoryManager& memory_manager_, DmaPusher::DmaPusher(Core::System& system_, GPU& gpu_, MemoryManager& memory_manager_,
Control::ChannelState& channel_state_) Control::ChannelState& channel_state_)