MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / findProjectRoot

Function findProjectRoot

Temp/GenerateGoldenMasters.cpp:16–22  ·  view source on GitHub ↗

* @brief Finds the project root directory by navigating up from the executable's location. */

Source from the content-addressed store, hash-verified

14 * @brief Finds the project root directory by navigating up from the executable's location.
15 */
16 juce::File findProjectRoot()
17 {
18 auto executableFile = juce::File::getSpecialLocation(juce::File::currentApplicationFile);
19 auto projectRoot = executableFile.getParentDirectory().getParentDirectory();
20 jassert(projectRoot.getChildFile("tests").isDirectory());
21 return projectRoot;
22 }
23
24 /**
25 * @brief Generates an AudioBuffer containing a sine wave.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected