Fix #112978: MacOS no longer has a path associated with the window #113227

Merged
Germano Cavalcante merged 1 commits from mano-wii/blender:fix_112978 into main 2023-10-05 02:26:19 +02:00

1 Commits

Author SHA1 Message Date
d6b2b5d0c5 Fix #112978: MacOS no longer has a path associated with the window
All checks were successful
buildbot/v400-code-daily-coordinator Build done.
The problem was introduced in 636f3697ee

MacOS has a different way of handling the title.

In this OS the directory is searched and taken from the title string
which is then formatted.

This limits the title format and makes it prone to errors.

This commit makes the code more generic by splitting each component of
the title beforehand and allowing the associated directory to be informed
with `GHOST_SetTitle`.
2023-10-04 21:23:38 -03:00