mirror of
https://github.com/open-goal/jak-project
synced 2026-08-11 03:26:33 -04:00
f699675ede
Notable things: - This assert is hit when trying to save the pc-settings file, NYI https://github.com/open-goal/jak-project/blob/e630b506903d7f7028dff89702be7f586c2120e7/game/kernel/common/Symbol4.h#L14 so right now settings aren't persisted. But RPC defaults to on - The existing functions can probably be made generic based off the game version, but I didn't spend time refactoring them yet as they aren't really ready to be used in jak 2 yet (we have no screenshots for the levels for example)
25 lines
746 B
C++
25 lines
746 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "common/versions.h"
|
|
|
|
#include "third-party/discord-rpc/include/discord_rpc.h"
|
|
|
|
extern int gDiscordRpcEnabled;
|
|
extern int64_t gStartTime;
|
|
|
|
void init_discord_rpc();
|
|
void set_discord_rpc(int state);
|
|
const char* jak1_get_full_level_name(const char* level_name);
|
|
const char* time_of_day_str(float time);
|
|
std::string get_time_of_day(float time);
|
|
int indoors(const char* level_name);
|
|
|
|
void handleDiscordReady(const DiscordUser* user);
|
|
void handleDiscordDisconnected(int errcode, const char* message);
|
|
void handleDiscordError(int errcode, const char* message);
|
|
void handleDiscordJoin(const char* secret);
|
|
void handleDiscordJoinRequest(const DiscordUser* request);
|
|
void handleDiscordSpectate(const char* secret);
|