URL:
  <http://gna.org/bugs/?9846>

                 Summary: Failed assert for a new user who creates a network
game
                 Project: Wormux
            Submitted by: snark_boojum
            Submitted on: jeudi 23.08.2007 à 14:18
                Category: Network
                Severity: 5 - Blocker
                Priority: 7 - High
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 0.8b2
         Discussion Lock: Any

    _______________________________________________________

Details:

If a *new* user (no ~/.wormux) launches the game, goes directly to network
game, and asks to create a *published* network game, then the directory
~/.wormux won't exist and the following assert from src/network/download.cpp
will kill the game :
bool Downloader::Get(const char* url, const char* save_as)
{
  FILE* fd = fopen( save_as, "w");
  ASSERT(fd);
  curl_easy_setopt(curl, CURLOPT_FILE, fd);
  curl_easy_setopt(curl, CURLOPT_URL, url);
  curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, download_callback);
  CURLcode r = curl_easy_perform(curl);
  fclose(fd);

  return (r == CURLE_OK);
}

because here we have :
url=http://www.wormux.org/server_list
save_as=/home/new_wormux_user/.wormux/server_list
and hence we need ~/.wormux/ !




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?9846>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna

Reply via email to