diff --git a/orbisrpc/cfg.c b/orbisrpc/cfg.c index 5f4f1c9..9b664bd 100644 --- a/orbisrpc/cfg.c +++ b/orbisrpc/cfg.c @@ -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 diff --git a/orbisrpc/cfg.h b/orbisrpc/cfg.h index c81c40f..b219e1c 100644 --- a/orbisrpc/cfg.h +++ b/orbisrpc/cfg.h @@ -25,7 +25,8 @@ typedef struct { * large_image becomes .png */ char home_art[256]; /* optional: idle/home tile art. http(s) URL * (mp:-proxied) or uploaded Discord asset key. - * empty = try home.png, else none */ + * Default: project-hosted PlayStation logo. + * Empty falls back to home.png. */ int n_titles; char title_ids[CFG_MAX_TITLES][CFG_TITLEID_LEN]; char title_names[CFG_MAX_TITLES][CFG_TITLENAME_LEN]; diff --git a/tests/test_utils.c b/tests/test_utils.c index c048454..bc86f7d 100644 --- a/tests/test_utils.c +++ b/tests/test_utils.c @@ -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) {