Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ bld/
[Ll]og/
[Ll]ogs/
[Oo]ut/
/dist/

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand Down
1 change: 1 addition & 0 deletions UnleashedRecomp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ set(UNLEASHED_RECOMP_CXX_SOURCES
"sdl_listener.cpp"
"stdafx.cpp"
"version.cpp"
"discord/discord_presence.cpp"

${UNLEASHED_RECOMP_KERNEL_CXX_SOURCES}
${UNLEASHED_RECOMP_LOCALE_CXX_SOURCES}
Expand Down
3 changes: 3 additions & 0 deletions UnleashedRecomp/app.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "app.h"
#include <api/SWA.h>
#include <discord/discord_presence.h>
#include <gpu/video.h>
#include <install/installer.h>
#include <kernel/function.h>
Expand All @@ -20,6 +21,7 @@ void App::Restart(std::vector<std::string> restartArgs)
void App::Exit()
{
Config::Save();
DiscordPresence::Shutdown();

#ifdef _WIN32
timeEndPeriod(1);
Expand Down Expand Up @@ -75,6 +77,7 @@ PPC_FUNC(sub_822C1130)

AudioPatches::Update(App::s_deltaTime);
InspirePatches::Update();
DiscordPresence::Update();

// Apply subtitles option.
if (auto pApplicationDocument = SWA::CApplicationDocument::GetInstance())
Expand Down
Loading