client: Remove config.polycode_path

This commit is contained in:
Perttu Ahola 2014-09-22 16:38:22 +03:00
parent 977eabd1d5
commit 4fb48b4748
4 changed files with 1 additions and 18 deletions

View File

@ -240,11 +240,6 @@ struct CApp: public App, public u3d::Application
lua_pushlstring(L, path.c_str(), path.size());
return 1;
}
if(name == "polycode"){
ss_ path = g_client_config.polycode_path;
lua_pushlstring(L, path.c_str(), path.size());
return 1;
}
log_w(MODULE, "Unknown named path: \"%s\"", cs(name));
return 0;
}

View File

@ -30,12 +30,6 @@ bool Config::check_paths()
{
bool fail = false;
if(!check_file_readable(polycode_path+"/Core/Contents/Include/Polycode.h")){
log_e(MODULE, "Polycode doesn't seem to exist in polycode_path=\"%s\"",
cs(polycode_path));
fail = true;
}
if(!check_file_readable(share_path+"/extensions/test/init.lua")){
log_e(MODULE, "Static files don't seem to exist in share_path=\"%s\"",
cs(share_path));

View File

@ -8,7 +8,6 @@ namespace client
struct Config
{
ss_ server_address;
ss_ polycode_path = "../../polycode";
ss_ share_path = "..";
ss_ cache_path = "../cache";

View File

@ -50,12 +50,11 @@ int main(int argc, char *argv[])
client::Config &config = g_client_config;
const char opts[100] = "hs:p:P:C:l:";
const char opts[100] = "hs:P:C:l:";
const char usagefmt[1000] =
"Usage: %s [OPTION]...\n"
" -h Show this help\n"
" -s [address] Specify server address\n"
" -p [polycode_path] Specify polycode path\n"
" -P [share_path] Specify share/ path\n"
" -C [cache_path] Specify cache/ path\n"
" -l [integer] Set maximum log level (0...5)\n"
@ -73,10 +72,6 @@ int main(int argc, char *argv[])
fprintf(stderr, "INFO: config.server_address: %s\n", c55_optarg);
config.server_address = c55_optarg;
break;
case 'p':
fprintf(stderr, "INFO: config.polycode_path: %s\n", c55_optarg);
config.polycode_path = c55_optarg;
break;
case 'P':
fprintf(stderr, "INFO: config.share_path: %s\n", c55_optarg);
config.share_path = c55_optarg;