Ignore:
Timestamp:
Oct 11, 2018 11:55:05 AM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
969bc2d
Parents:
7e9d193
Message:

OSX Launcher: Refactor deployment code to own file, + code cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/AppDelegate.h

    r7e9d193 r7dbf568  
    1919#include "RouterTask.h"
    2020
    21 
    22 #define DEF_I2P_VERSION "0.9.36"
    23 #define APPDOMAIN "net.i2p.launcher"
    24 #define NSAPPDOMAIN @APPDOMAIN
    25 #define CFAPPDOMAIN CFSTR(APPDOMAIN)
    26 #define APP_IDSTR @"I2P Launcher"
     21#include "version.h"
    2722
    2823@class SwiftMainDelegate;
     
    5651  auto homeDir = RealHomeDirectory();
    5752  const char* pathFromHome = "%s/Library/I2P";
     53  char buffer[strlen(homeDir)+strlen(pathFromHome)];
     54  sprintf(buffer, pathFromHome, homeDir);
     55  std::string i2pBaseDir(buffer);
     56  return i2pBaseDir;
     57}
     58
     59inline std::string getDefaultLogDir()
     60{
     61  // Figure out log directory
     62  auto homeDir = RealHomeDirectory();
     63  const char* pathFromHome = "%s/Library/Logs/I2P";
    5864  char buffer[strlen(homeDir)+strlen(pathFromHome)];
    5965  sprintf(buffer, pathFromHome, homeDir);
Note: See TracChangeset for help on using the changeset viewer.