1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-29 02:40:05 +00:00

Added a File::invokedExecutableFile key that can be used to find the name of the file or link that launched the exe

This commit is contained in:
Julian Storer 2009-11-13 15:56:29 +00:00
parent ca727ec2bb
commit 1b0e85d187
5 changed files with 33 additions and 0 deletions

View file

@ -273,9 +273,17 @@ int JUCEApplication::shutdownAppAndClearUp()
extern int juce_IPhoneMain (int argc, char* argv[], JUCEApplication* app);
#endif
#if ! JUCE_WINDOWS
extern const char* juce_Argv0;
#endif
int JUCEApplication::main (int argc, char* argv[],
JUCEApplication* const newApp)
{
#if ! JUCE_WINDOWS
juce_Argv0 = argv[0];
#endif
#if JUCE_IPHONE
const ScopedAutoReleasePool pool;
return juce_IPhoneMain (argc, argv, newApp);