/programs/other/Weather/Tupfile.lua |
---|
0,0 → 1,10 |
if tup.getconfig("NO_TCC") ~= "" then return end |
TCC="kos32-tcc" |
CFLAGS = "-I../../develop/ktcc/trunk/libc/include" |
LDFLAGS = "-nostdlib ../../develop/ktcc/trunk/bin/lib/start.o -L../../develop/ktcc/trunk/bin/lib -Ljson" |
LIBS = "-ljson -lck -limg -lhttp" |
COMMAND=string.format("%s %s %s %s %s ", TCC, CFLAGS, "%f -o %o", LDFLAGS, LIBS) |
tup.rule("weather.c", COMMAND .. tup.getconfig("KPACK_CMD"), "weather") |
/programs/other/Weather/weather.c |
---|
228,7 → 228,7 |
void get_config(char **City, char **Token, char **Units) // Загружаем конфиг |
{ |
FILE *config_j = fopen("weather.json", "rb"); |
FILE *config_j = fopen("/sys/Settings/weather.json", "rb"); |
if(config_j==NULL){ |
notify_show("'Configuration file not found!' -E"); |
exit(0); |
/programs/other/Weather/weather.json |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/json |