mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
code cleanup
This commit is contained in:
parent
39b98fcfda
commit
3ac6320ec3
4 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,6 @@
|
||||||
"configurationType": "Release",
|
"configurationType": "Release",
|
||||||
"buildRoot": "${projectDir}\\Build\\${name}",
|
"buildRoot": "${projectDir}\\Build\\${name}",
|
||||||
"installRoot": "${projectDir}\\Install\\${name}",
|
"installRoot": "${projectDir}\\Install\\${name}",
|
||||||
"cmakeCommandArgs": "-DENABLE_QT_GUI=ON -DCMAKE_PREFIX_PATH=C:\\Qt\\6.7.3\\msvc2019_64",
|
|
||||||
"buildCommandArgs": "",
|
"buildCommandArgs": "",
|
||||||
"ctestCommandArgs": "",
|
"ctestCommandArgs": "",
|
||||||
"inheritEnvironments": [ "clang_cl_x64_x64" ],
|
"inheritEnvironments": [ "clang_cl_x64_x64" ],
|
||||||
|
|
|
@ -37,7 +37,7 @@ void RPC::updatePlaying(const std::string& game, const std::string& game_id) {
|
||||||
void RPC::updateIdle() {
|
void RPC::updateIdle() {
|
||||||
|
|
||||||
DiscordRichPresence rpc{};
|
DiscordRichPresence rpc{};
|
||||||
rpc.largeImageKey = "shadps4";
|
rpc.largeImageKey = "https://github.com/shadps4-emu/shadPS4/raw/main/.github/shadps4.png";
|
||||||
rpc.largeImageText = "ShadPS4 is a PS4 emulator";
|
rpc.largeImageText = "ShadPS4 is a PS4 emulator";
|
||||||
rpc.startTimestamp = startTimestamp;
|
rpc.startTimestamp = startTimestamp;
|
||||||
rpc.details = "Idle";
|
rpc.details = "Idle";
|
||||||
|
|
|
@ -213,7 +213,7 @@ void Emulator::Run(const std::filesystem::path& file) {
|
||||||
|
|
||||||
//Discord RPC
|
//Discord RPC
|
||||||
Discord::RPC rpc;
|
Discord::RPC rpc;
|
||||||
/*rpc.init();*/
|
rpc.init();
|
||||||
rpc.updatePlaying(game_info.title, id);
|
rpc.updatePlaying(game_info.title, id);
|
||||||
|
|
||||||
// start execution
|
// start execution
|
||||||
|
|
|
@ -34,6 +34,6 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
Core::Emulator emulator;
|
Core::Emulator emulator;
|
||||||
emulator.Run(argv[1]);
|
emulator.Run(argv[1]);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue