diff options
author | davilla <davilla@4pi.com> | 2011-07-10 23:28:42 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2011-07-10 23:28:42 -0400 |
commit | c7339e091bd32ac2e55847dd1ca96386e4e01e34 (patch) | |
tree | 2a1c36c260159a01a25248b72c1173f698dcfeb2 /tools/EventClients | |
parent | 2d6b36433b66681690e6c4bef734b252b81f6c7e (diff) |
[osx] replace depreciated functions
Diffstat (limited to 'tools/EventClients')
-rw-r--r-- | tools/EventClients/Clients/OSXRemote/XBMCHelper.m | 2 | ||||
-rw-r--r-- | tools/EventClients/Clients/OSXRemote/xbmchelper_main.mm | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/EventClients/Clients/OSXRemote/XBMCHelper.m b/tools/EventClients/Clients/OSXRemote/XBMCHelper.m index a3d4d35f36..1e945499ec 100644 --- a/tools/EventClients/Clients/OSXRemote/XBMCHelper.m +++ b/tools/EventClients/Clients/OSXRemote/XBMCHelper.m @@ -268,7 +268,7 @@ NSFileManager *fileManager = [NSFileManager defaultManager]; if([fileManager fileExistsAtPath:mp_app_path]){ if(mp_home_path && [mp_home_path length]) - setenv("XBMC_HOME", [mp_home_path cString], 1); + setenv("XBMC_HOME", [mp_home_path UTF8String], 1); //launch or activate xbmc if(![[NSWorkspace sharedWorkspace] launchApplication:mp_app_path]) ELOG(@"Error launching %@", mp_app_path); diff --git a/tools/EventClients/Clients/OSXRemote/xbmchelper_main.mm b/tools/EventClients/Clients/OSXRemote/xbmchelper_main.mm index 8d19e5787a..57d86c5c02 100644 --- a/tools/EventClients/Clients/OSXRemote/xbmchelper_main.mm +++ b/tools/EventClients/Clients/OSXRemote/xbmchelper_main.mm @@ -88,7 +88,7 @@ void ReadConfig() int argc = args.size() + 1; char** argv = new char*[argc + 1]; int i = 0; - argv[i++] = "XBMCHelper"; + argv[i++] = (char*)"XBMCHelper"; for (vector<string>::iterator it = args.begin(); it != args.end(); ){ //fixup the arguments, here: remove '"' like bash would normally do @@ -174,11 +174,11 @@ void ConfigureHelper(){ [gp_xbmchelper enableVerboseMode:g_verbose_mode]; //set apppath to startup when pressing Menu - [gp_xbmchelper setApplicationPath:[NSString stringWithCString:g_app_path.c_str()]]; + [gp_xbmchelper setApplicationPath:[NSString stringWithUTF8String:g_app_path.c_str()]]; //set apppath to startup when pressing Menu - [gp_xbmchelper setApplicationHome:[NSString stringWithCString:g_app_home.c_str()]]; + [gp_xbmchelper setApplicationHome:[NSString stringWithUTF8String:g_app_home.c_str()]]; //connect to specified server - [gp_xbmchelper connectToServer:[NSString stringWithCString:g_server_address.c_str()] onPort:g_server_port withMode:g_mode withTimeout: g_universal_timeout]; + [gp_xbmchelper connectToServer:[NSString stringWithUTF8String:g_server_address.c_str()] onPort:g_server_port withMode:g_mode withTimeout: g_universal_timeout]; } //---------------------------------------------------------------------------- |