* Pre-load textures and polys in OpenGL
0.x - Misc
- * Resume downloads (back to CURL/Soup)
* Configuration file
* Default site
* Keybindings?
GTK_DOC_CHECK(1.9)
# Check for required packages
-PKG_CHECK_MODULES(SOUP, libsoup-2.4)
+PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26)
PKG_CHECK_MODULES(GLIB, gio-2.0 gmodule-export-2.0 gobject-2.0 gthread-2.0)
PKG_CHECK_MODULES(GTK, gtk+-2.0 gtkglext-1.0)
{
gchar *parent = g_path_get_dirname(path);
if (!g_file_test(parent, G_FILE_TEST_EXISTS))
- g_mkdir_with_parents(path, 0755);
+ g_mkdir_with_parents(parent, 0755);
g_free(parent);
return fopen(path, mode);
}
{
cache_file_end_t *info = _info;
gchar *uri = soup_uri_to_string(soup_message_get_uri(message), FALSE);
- g_debug("data: cache_file_cb ([%s]->[%s])", uri, info->local);
+ g_debug("data: cache_file_cb");
if (!SOUP_STATUS_IS_SUCCESSFUL(message->status_code)) {
- g_warning("data: error copying file ([%s]->[%s])", uri, info->local);
+ g_warning("data: cache_file_cb - error copying file, status=%d\n"
+ "\tsrc=%s\n"
+ "\tdst=%s",
+ message->status_code, uri, info->local);
} else {
gint wrote = fwrite(message->response_body->data, 1,
message->response_body->length, info->fp);
//debug("reading body\n");
while ((st = fread(&size, 1, 4, input))) {
+ //debug("size=%08x\n", size);
//debug("read %u bytes\n", st);
//fwrite(&size, 1, 4, output); // DEBUG
size = abs(ntohl(size));
if (size < 0)
return 0;
//debug("size = %x\n", size);
- if (size > 10*1024*1024)
+ if (size > 20*1024*1024)
err(1, "sanity check failed, buf is to big: %d", size);
buf = realloc(buf, size);
fread (buf, 1, size, input);