Ignore:
Timestamp:
08/24/10 09:57:23 (21 months ago)
Author:
jay
Message:

-- Added svcregistry module. This is the initial commit for using the windows registry to store the configuration file's path. The config path is hard-coded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/win32service/win32service/src/rtmpserver/rtmpserver.cpp

    r72 r97  
    3232struct RunningStatus { 
    3333    // startup parameters 
    34     int argc; 
    35  //   char **argv; 
     34 //   int argc; 
     35    char * configPath; 
    3636 
    3737    //Configuration file 
     
    5050RunningStatus gRs = {0}; 
    5151 
    52 void rtmpserver() { 
     52void rtmpserver(char * config_filePath) { 
    5353        InitNetworking(); 
    5454 
     55        gRs.configPath = config_filePath; 
    5556    do { 
    5657        //2. Reset the run flag 
     
    8283 
    8384    gRs.pConfigFile = new ConfigFile(); 
    84         string configFilePath = "C:\\rtmpd-clean\\builders\\VS2010\\Debug\\rtmpserver.lua"/*"rtmpserver.lua"*/; 
     85        string configFilePath = gRs.configPath/*"C:\\rtmpd-clean\\builders\\VS2010\\Debug\\rtmpserver.lua"*/; 
    8586    string fileName; 
    8687    string extension; 
Note: See TracChangeset for help on using the changeset viewer.