Yesterday, 02:25 PM
(This post was last modified: Yesterday, 02:26 PM by DerVVulfman.)
Your statement doesn't show much in curiosity into why the use of Dir.chdir. The bulk of it is actually a statement showing that you had learned to limit its use when you began working with Gosu and insight into Hiddenchest's file system. It appears your curiosity is an afterthought.
But as towards your curiosity, I will answer.
I was not the first to use Dir.Chdir. Others had in the past. When DerkJan (or MeTm at HBGames/CreationAsylum) created his initial McSendString music looping system, it came with an editor written in Ruby that allowed the user to set loop start and stop points. And as it could affect audio within the four audio subfolders (BGM, BGS, ME, SE), he used Dir.chdir to allow switching between those subfolders.
In 2012, DuongCool inquired if anyone had the required Audio.dll file used by an ATOA(Victor Sant) script entitled "Não reinciar Música do mapa após uma batalha" (or "Do not restart Map Music after a battle") which used an audio module provided by Poccil.
There are plenty other scripts out there that use Dir.Chdir. That is not a justification of its use. It is solely an explanation as to why I first used it within my widgets project. And I will not rebuke other scripts that put it to use.
But as towards your curiosity, I will answer.
I was not the first to use Dir.Chdir. Others had in the past. When DerkJan (or MeTm at HBGames/CreationAsylum) created his initial McSendString music looping system, it came with an editor written in Ruby that allowed the user to set loop start and stop points. And as it could affect audio within the four audio subfolders (BGM, BGS, ME, SE), he used Dir.chdir to allow switching between those subfolders.
In 2012, DuongCool inquired if anyone had the required Audio.dll file used by an ATOA(Victor Sant) script entitled "Não reinciar Música do mapa após uma batalha" (or "Do not restart Map Music after a battle") which used an audio module provided by Poccil.
There are plenty other scripts out there that use Dir.Chdir. That is not a justification of its use. It is solely an explanation as to why I first used it within my widgets project. And I will not rebuke other scripts that put it to use.