From e4604f27947052a3ba04fda9218a3aeb40b332d0 Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Mon, 16 Mar 2026 15:59:07 +0000 Subject: Remove hardcoded (a) and (b) emote subdirectories Note: this is an old commit that was relevant prior to 10b413c ("Add asset preloading system for IC message rendering") WebAO assumes every character has an idle and talking animations which reside in fixed "(a)" and "(b)" subdirectories. This assumption, of course, breaks many valid characters that don't use these magical directory names, as it prepends them to every emote URL. This commit removes this fossil. Animation, or any character structure at all, shouldn't depend on magical subdirectory names, and instead defined explicitly. --- webAO/client/setEmote.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'webAO/client') diff --git a/webAO/client/setEmote.ts b/webAO/client/setEmote.ts index 4c05afc3..7e4a1d43 100644 --- a/webAO/client/setEmote.ts +++ b/webAO/client/setEmote.ts @@ -12,7 +12,6 @@ const setEmote = async ( client: Client, charactername: string, emotename: string, - prefix: string, pair: boolean, side: string, ) => { @@ -43,8 +42,8 @@ const setEmote = async ( )}.webp`; } else { url = `${characterFolder}${encodeURI(charactername)}/${encodeURI( - prefix, - )}${encodeURI(emotename)}${extension}`; + emotename, + )}${extension}`; } const exists = await fileExists(url); if (exists) { -- cgit