Browse Source

Added support for windows command line apps that want an event loop.

tags/2021-05-28
jules 10 years ago
parent
commit
bdeb0765ea
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      modules/juce_events/messages/juce_ApplicationBase.cpp

+ 8
- 3
modules/juce_events/messages/juce_ApplicationBase.cpp View File

@@ -138,7 +138,7 @@ String JUCEApplicationBase::getCommandLineParameters() { return String(
#else
#if JUCE_WINDOWS
#if JUCE_WINDOWS && ! defined (_CONSOLE)
String JUCE_CALLTYPE JUCEApplicationBase::getCommandLineParameters()
{
@@ -171,8 +171,13 @@ StringArray JUCE_CALLTYPE JUCEApplicationBase::getCommandLineParameterArray()
extern void initialiseNSApplication();
#endif
extern const char* const* juce_argv; // declared in juce_core
extern int juce_argc;
#if JUCE_WINDOWS
const char* const* juce_argv = nullptr;
int juce_argc = 0;
#else
extern const char* const* juce_argv; // declared in juce_core
extern int juce_argc;
#endif
String JUCEApplicationBase::getCommandLineParameters()
{


Loading…
Cancel
Save