mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 11:05:08 -05:00
Compare commits
6 commits
680860610a
...
33137420b7
Author | SHA1 | Date | |
---|---|---|---|
|
33137420b7 | ||
|
24294c7361 | ||
|
74a70112a4 | ||
|
544689c945 | ||
|
44a70d391b | ||
|
7566292157 |
4 changed files with 23 additions and 5 deletions
|
@ -1,15 +1,15 @@
|
|||
!insertmacro LANGFILE_EXT SpanishInternational
|
||||
|
||||
!pragma warning disable 6030
|
||||
${LangFileString} MUI_TEXT_WELCOME_INFO_TEXT "Este asistente le guiará durante la instalación de $(^NameDA) en su computadora.$\r$\n$\r$\nAntes de iniciar la instalación, asegúrese de que Geometry Dash no se está ejecutando$\r$\n$\r$\n$_CLICK"
|
||||
${LangFileString} MUI_UNTEXT_WELCOME_INFO_TEXT "Este asistente le guiará durante la desinstalación de $(^NameDA).$\r$\n$\r$\nAntes de iniciar la desinstalación, asegúrese de que Geometry Dash no se está ejecutando.$\r$\n$\r$\n$_CLICK"
|
||||
${LangFileString} MUI_TEXT_WELCOME_INFO_TEXT "Este asistente le guiará durante la instalación de Geode en su computadora.$\r$\n$\r$\nAntes de iniciar la instalación, asegúrese de que Geometry Dash no se está ejecutando$\r$\n$\r$\n$_CLICK"
|
||||
${LangFileString} MUI_UNTEXT_WELCOME_INFO_TEXT "Este asistente le guiará durante la desinstalación de Geode.$\r$\n$\r$\nAntes de iniciar la desinstalación, asegúrese de que Geometry Dash no se está ejecutando.$\r$\n$\r$\n$_CLICK"
|
||||
!pragma warning default 6030
|
||||
|
||||
; installer
|
||||
|
||||
${LangFileString} GEODE_TEXT_GD_MISSING "$\r$\n$\r$\n¡Geometry Dash no está instalado en esta ruta!"
|
||||
${LangFileString} GEODE_TEXT_GD_OLD "$\r$\n$\r$\nYour version of Geometry Dash is too old for this version of Geode!"
|
||||
${LangFileString} GEODE_TEXT_MOD_LOADER_ALREADY_INSTALLED "This path has other mods installed!$\r$\nThey will be overwritten by Geode. (the dll trademark)"
|
||||
${LangFileString} GEODE_TEXT_GD_OLD "$\r$\n$\r$\n¡Su versión de Geometry Dash es demasiado antigua para esta versión de Geode!"
|
||||
${LangFileString} GEODE_TEXT_MOD_LOADER_ALREADY_INSTALLED "¡Esta ruta ya tiene otros mods instalados!$\r$\nVan a ser sobreescritos por Geode. (the dll trademark)"
|
||||
|
||||
; uninstaller
|
||||
|
||||
|
|
|
@ -203,6 +203,15 @@ namespace geode::utils::web {
|
|||
*/
|
||||
WebRequest& followRedirects(bool enabled);
|
||||
|
||||
/**
|
||||
* Enables or disables ignoring the content length header.
|
||||
* The default is false.
|
||||
*
|
||||
* @param enabled
|
||||
* @return WebRequest&
|
||||
*/
|
||||
WebRequest& ignoreContentLength(bool enabled);
|
||||
|
||||
/**
|
||||
* Sets the Certificate Authority (CA) bundle content.
|
||||
* Defaults to not sending a CA bundle.
|
||||
|
|
|
@ -47,7 +47,7 @@ const char* geode::getCommonFilterAllowedChars(CommonFilter filter) {
|
|||
case CommonFilter::Float: return "-.0123456789";
|
||||
case CommonFilter::ID: return "abcdefghijklmnopqrstuvwxyz0123456789-_.";
|
||||
case CommonFilter::Name: return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ ";
|
||||
case CommonFilter::Any: return "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+/\\&$%^~*\'\"{}()[]<>=!?@,;.:|• ";
|
||||
case CommonFilter::Any: return "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ#_-+/\\&$%^~*\'\"{}()[]<>=!?@,;.:|• ";
|
||||
case CommonFilter::Hex: return "0123456789abcdefABCDEF";
|
||||
case CommonFilter::Base64Normal: return "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/=";
|
||||
case CommonFilter::Base64URL: return "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_=";
|
||||
|
|
|
@ -202,6 +202,7 @@ public:
|
|||
bool m_certVerification = true;
|
||||
bool m_transferBody = true;
|
||||
bool m_followRedirects = true;
|
||||
bool m_ignoreContentLength = false;
|
||||
std::string m_CABundleContent;
|
||||
ProxyOpts m_proxyOpts = {};
|
||||
HttpVersion m_httpVersion = HttpVersion::DEFAULT;
|
||||
|
@ -382,6 +383,9 @@ WebTask WebRequest::send(std::string_view method, std::string_view url) {
|
|||
// Follow request through 3xx responses
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, impl->m_followRedirects ? 1L : 0L);
|
||||
|
||||
// Ignore content length
|
||||
curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, impl->m_ignoreContentLength ? 1L : 0L);
|
||||
|
||||
// Track progress
|
||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
|
||||
|
||||
|
@ -556,6 +560,11 @@ WebRequest& WebRequest::followRedirects(bool enabled) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
WebRequest& WebRequest::ignoreContentLength(bool enabled) {
|
||||
m_impl->m_ignoreContentLength = enabled;
|
||||
return *this;
|
||||
}
|
||||
|
||||
WebRequest& WebRequest::CABundleContent(std::string_view content) {
|
||||
m_impl->m_CABundleContent = content;
|
||||
return *this;
|
||||
|
|
Loading…
Reference in a new issue