mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-25 02:26:54 +01:00
Update graphic pack url query request (#154)
Fixed bad request url and changed URL to separate post 2.0 releases. Also updated .gitignore
This commit is contained in:
parent
4ed38a28b9
commit
ef1ce59931
5
.gitignore
vendored
5
.gitignore
vendored
@ -22,6 +22,7 @@ bin/Cemu
|
|||||||
# Cemu bin files
|
# Cemu bin files
|
||||||
bin/otp.bin
|
bin/otp.bin
|
||||||
bin/seeprom.bin
|
bin/seeprom.bin
|
||||||
|
bin/log.txt
|
||||||
bin/Cemu.pdb
|
bin/Cemu.pdb
|
||||||
bin/Cemu.ilk
|
bin/Cemu.ilk
|
||||||
bin/Cemu.exe.backup
|
bin/Cemu.exe.backup
|
||||||
@ -35,4 +36,6 @@ bin/shaderCache/*
|
|||||||
bin/controllerProfiles/*
|
bin/controllerProfiles/*
|
||||||
|
|
||||||
!bin/gameProfiles/default/*
|
!bin/gameProfiles/default/*
|
||||||
bin/gameProfiles/*
|
bin/gameProfiles/*
|
||||||
|
|
||||||
|
bin/graphicPacks/*
|
||||||
|
@ -121,9 +121,9 @@ void DownloadGraphicPacksWindow::UpdateThread()
|
|||||||
// get github url
|
// get github url
|
||||||
std::string githubAPIUrl;
|
std::string githubAPIUrl;
|
||||||
curlDownloadFileState_t tempDownloadState;
|
curlDownloadFileState_t tempDownloadState;
|
||||||
std::string queryUrl("http://cemu.info/api/query_graphicpack_url_1_17_0.php?");
|
std::string queryUrl("https://cemu.info/api2/query_graphicpack_url.php?");
|
||||||
char temp[64];
|
char temp[64];
|
||||||
sprintf(temp, "version=%d.%d.%d%s", EMULATOR_VERSION_LEAD, EMULATOR_VERSION_MAJOR, EMULATOR_VERSION_MINOR, EMULATOR_VERSION_SUFFIX);
|
sprintf(temp, "version=%d.%d.%d", EMULATOR_VERSION_LEAD, EMULATOR_VERSION_MAJOR, EMULATOR_VERSION_MINOR);
|
||||||
queryUrl.append(temp);
|
queryUrl.append(temp);
|
||||||
queryUrl.append("&");
|
queryUrl.append("&");
|
||||||
sprintf(temp, "t=%u", (uint32)std::chrono::seconds(std::time(NULL)).count()); // add a dynamic part to the url to bypass overly aggressive caching (like some proxies do)
|
sprintf(temp, "t=%u", (uint32)std::chrono::seconds(std::time(NULL)).count()); // add a dynamic part to the url to bypass overly aggressive caching (like some proxies do)
|
||||||
|
Loading…
Reference in New Issue
Block a user