mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 17:50:19 +00:00
Store just the filename if the sound file comes from the default sound dir
And get rid of some hardcoding while we're at it
This commit is contained in:
@@ -2231,7 +2231,7 @@ sound_play (const char *file, gboolean quiet)
|
||||
}
|
||||
else
|
||||
{
|
||||
wavfile = g_build_filename (get_xdir (), "sounds", file, NULL);
|
||||
wavfile = g_build_filename (get_xdir (), HEXCHAT_SOUND_DIR, file, NULL);
|
||||
}
|
||||
|
||||
if (g_access (wavfile, R_OK) == 0)
|
||||
|
||||
Reference in New Issue
Block a user