Skip to content

Commit

Permalink
step 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Deamon87 committed Jan 9, 2020
1 parent 5c6e4a9 commit 8c52f60
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 239 deletions.
16 changes: 8 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@ int main(){
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);


const char * url = "https://wow.tools/casc/file/fname?buildconfig=54b3dc4ced90d45071f72a05fecfd063&cdnconfig=524df013928ee0fa66af5cfa1862153e&filename=";
const char * urlFileId = "https://wow.tools/casc/file/fdid?buildconfig=54b3dc4ced90d45071f72a05fecfd063&cdnconfig=524df013928ee0fa66af5cfa1862153e&filename=data&filedataid=";
// const char * url = "https://wow.tools/casc/file/fname?buildconfig=54b3dc4ced90d45071f72a05fecfd063&cdnconfig=524df013928ee0fa66af5cfa1862153e&filename=";
// const char * urlFileId = "https://wow.tools/casc/file/fdid?buildconfig=54b3dc4ced90d45071f72a05fecfd063&cdnconfig=524df013928ee0fa66af5cfa1862153e&filename=data&filedataid=";
// HttpZipRequestProcessor *processor = new HttpZipRequestProcessor(url);
// ZipRequestProcessor *processor = new ZipRequestProcessor(filePath);
// MpqRequestProcessor *processor = new MpqRequestProcessor(filePath);
RequestProcessor *processor = new HttpRequestProcessor(url, urlFileId);
// RequestProcessor *processor = new HttpRequestProcessor(url, urlFileId);
// CascRequestProcessor *processor = new CascRequestProcessor(filePath);
processor->setThreaded(true);
// RequestProcessor *processor = nullptr;
// processor->setThreaded(true);
RequestProcessor *processor = nullptr;

glfwInit();

Expand Down Expand Up @@ -382,9 +382,9 @@ int main(){
CSqliteDB *sqliteDB = new CSqliteDB("./export.db3");


// WoWFilesCacheStorage *storage = nullptr;
WoWFilesCacheStorage *storage = new WoWFilesCacheStorage(processor);
processor->setFileRequester(storage);
WoWFilesCacheStorage *storage = nullptr;
// WoWFilesCacheStorage *storage = new WoWFilesCacheStorage(processor);
// processor->setFileRequester(storage);

//Create device
IDevice * device = IDeviceFactory::createDevice(rendererName, &callback);
Expand Down
2 changes: 1 addition & 1 deletion src/ui/FrontendUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FrontendUI : public IDeviceUI {
bool showAboutWindow = false;
// c bool showWorldPosTooltip = false;

bool cascOpened = true;
bool cascOpened = false;
bool mapCanBeOpened = true;

float minimapZoom = 1;
Expand Down
Loading

0 comments on commit 8c52f60

Please sign in to comment.