Ticket #2427: 2427.5.patch

File 2427.5.patch, 2.0 KB (added by trompetin17, 10 years ago)
  • source/lib/sysdep/os/osx/dir_watch.cpp

     
    1 /* Copyright (c) 2013 Wildfire Games
     1/* Copyright (c) 2014 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
    44 * a copy of this software and associated documentation files (the
     
    188188{
    189189  if ( g_Stream == NULL )
    190190  {
    191     g_Stream = CreateEventStream( g_RootPaths );   
     191    if (!g_RootPaths.empty())
     192    {
     193      g_Stream = CreateEventStream( g_RootPaths );
     194    }
    192195  }
    193196  else
    194197  {
  • source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp

     
    1 /* Copyright (C) 2012 Wildfire Games.
     1/* Copyright (C) 2014 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
    44 * 0 A.D. is free software: you can redistribute it and/or modify
     
    144144    int argc = 1;
    145145    char atlas[] = "atlas";
    146146    char *argv[] = {atlas, NULL};
    147     wxEntry(argc, argv);
     147   
     148    //Because this is not a bundle app(maverick requirement)
     149    //and OSXIsGUIApplication return false, wxEntry doesn't call run main loop
     150    //so We need to start GUI Manually
     151   
     152    //This function can be used to perform the initialization of wxWidgets if you can't use the default initialization code for any reason.
     153    //wxEntryCleanup must be called afterwards
     154    wxEntryStart(argc, argv);
     155   
     156    wxTheApp->OnInit();
     157    wxTheApp->OnRun();
     158    wxTheApp->OnExit();
     159   
     160    wxEntryCleanup();
     161   
    148162#endif
    149163}
    150164
     
    174188class AtlasDLLApp : public wxApp
    175189{
    176190public:
    177 
     191    virtual bool OSXIsGUIApplication()
     192    {
     193        //Because this is not a bundle app(maverick requirement) return false
     194        return false;
     195    }
    178196    virtual bool OnInit()
    179197    {
    180198//      _CrtSetBreakAlloc(5632);