mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 09:00:37 +02:00
Ship PlayStation logo default for idle tile
This commit is contained in:
1 parent
48500d2482
commit
67e256ab86
3 files changed
+8
-3
No files matched your search
+5
-1
@@ -18,7 +18,11 @@ void cfg_defaults(cfg_t *c) {
|
||||
c->poll_interval_s = 12;
|
||||
strncpy(c->token, "SET_ME", sizeof(c->token)-1);
|
||||
strncpy(c->presence_state, "On PS4", sizeof(c->presence_state)-1);
|
||||
c->home_art[0] = 0;
|
||||
/* Idle tile ships working: project-hosted PlayStation logo, resolved
|
||||
* through the mp: proxy like every other art URL. Override with any
|
||||
* http(s) URL or uploaded asset key. */
|
||||
strncpy(c->home_art, "https://raw.githubusercontent.com/SirHumza/orbisRPC/main/config/icons/home.png",
|
||||
sizeof(c->home_art)-1);
|
||||
c->n_titles = 0;
|
||||
/* Default art backend: our own Sony-CDN icon pack, resolved through
|
||||
* Discord's external-assets proxy (mp:) at post time. Works from the
|
||||
|
||||
+2
-1
@@ -25,7 +25,8 @@ typedef struct {
|
||||
* large_image becomes <base><lower titleId>.png */
|
||||
char home_art[256]; /* optional: idle/home tile art. http(s) URL
|
||||
* (mp:-proxied) or uploaded Discord asset key.
|
||||
* empty = try <art_base_url>home.png, else none */
|
||||
* Default: project-hosted PlayStation logo.
|
||||
* Empty falls back to <art_base_url>home.png. */
|
||||
int n_titles;
|
||||
char title_ids[CFG_MAX_TITLES][CFG_TITLEID_LEN];
|
||||
char title_names[CFG_MAX_TITLES][CFG_TITLENAME_LEN];
|
||||
|
||||
+1
-1
@@ -444,7 +444,7 @@ static void test_cfg_titles(void) {
|
||||
fclose(f);
|
||||
assert(cfg_load(path, &c) == 0);
|
||||
assert(c.n_titles == 0);
|
||||
assert(c.home_art[0] == 0);
|
||||
assert(!strcmp(c.home_art, "https://raw.githubusercontent.com/SirHumza/orbisRPC/main/config/icons/home.png"));
|
||||
}
|
||||
|
||||
static void test_appdb(void) {
|
||||
|
||||
Reference in new issue
Block a user