platform/wm/rhodes/AppManager.cpp in rhodes-2.3.0 vs platform/wm/rhodes/AppManager.cpp in rhodes-2.3.1.beta.1

- old
+ new

@@ -1,11 +1,11 @@ #include "stdafx.h" #include "AppManager.h" #ifdef ENABLE_DYNAMIC_RHOBUNDLE -#include "rho/net/NetRequest.h" +#include "net/INetRequest.h" #include "common/RhodesApp.h" #include "unzip/unzip.h" #include "ext/rho/rhoruby.h" @@ -105,13 +105,13 @@ LOG(ERROR) + "null url passed to ReloadRhoBundle"; return; } //trying to load file - rho::net::CNetRequest request; //NB: for mobile devices should use filesystem instead of RAM - NetResponse (resp, request.pullData(szUrl, null)); - if (resp.getDataSize() > 0 && resp.getCharData()) { + NetResponse resp = getNetRequest().pullData(szUrl, null); + if (resp.getDataSize() > 0 && resp.getCharData()) + { loadData = resp.getCharData(); loadSize = resp.getDataSize(); errCode = RRB_NONE_ERR; } else { errCode = RRB_LOADING_ERR; \ No newline at end of file