Merge with develop
--HG-- branch : compatibility-develop
This commit is contained in:
commit
9c6d5322a7
7 changed files with 28 additions and 8 deletions
|
@ -211,6 +211,8 @@ FXAA_ps1 = 1;
|
||||||
FXAA_ps2 = 1;
|
FXAA_ps2 = 1;
|
||||||
FXAA_ps3 = 1;
|
FXAA_ps3 = 1;
|
||||||
|
|
||||||
|
AnisotropicFilter = 0;
|
||||||
|
|
||||||
Bloom = 1;
|
Bloom = 1;
|
||||||
Bloom_ps0 = 0;
|
Bloom_ps0 = 0;
|
||||||
Bloom_ps1 = 1;
|
Bloom_ps1 = 1;
|
||||||
|
|
|
@ -151,6 +151,10 @@ function game:configInit()
|
||||||
langNb = 2;
|
langNb = 2;
|
||||||
elseif (lang == 'fr') then
|
elseif (lang == 'fr') then
|
||||||
langNb = 1;
|
langNb = 1;
|
||||||
|
elseif (lang == 'ru') then
|
||||||
|
langNb = 3;
|
||||||
|
elseif (lang == 'es') then
|
||||||
|
langNb = 4;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- force observers call
|
-- force observers call
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
<!-- ************** -->
|
<!-- ************** -->
|
||||||
<!-- CURRENT ACTION -->
|
<!-- CURRENT ACTION -->
|
||||||
<!-- ************** -->
|
<!-- ************** -->
|
||||||
<!-- Must pass through an other DB, to allow multiple isntances of the action bar template -->
|
<!-- Must pass through an other DB, to allow multiple instances of the action bar template -->
|
||||||
<variable entry="UI:PHRASE:ACT_BAR_LEN"
|
<variable entry="UI:PHRASE:ACT_BAR_LEN"
|
||||||
type="sint32"
|
type="sint32"
|
||||||
value="0" />
|
value="0" />
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
|
@ -27,13 +29,21 @@
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
|
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}.0</string>
|
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
|
||||||
<key>LSFileQuarantineEnabled</key>
|
<key>LSFileQuarantineEnabled</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>CSResourcesFileMapped</key>
|
<key>CSResourcesFileMapped</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>LSRequiresCarbon</key>
|
<key>LSRequiresCarbon</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>CFBundleLocalizations</key>
|
||||||
|
<array>
|
||||||
|
<string>en</string>
|
||||||
|
<string>fr</string>
|
||||||
|
<string>de</string>
|
||||||
|
<string>ru</string>
|
||||||
|
<string>es</string>
|
||||||
|
</array>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
<string>public.app-category.role-playing-games</string>
|
<string>public.app-category.role-playing-games</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
@ -182,7 +182,6 @@ struct CStatThread : public NLMISC::IRunnable
|
||||||
CURL *curl = curl_easy_init();
|
CURL *curl = curl_easy_init();
|
||||||
if(!curl) return;
|
if(!curl) return;
|
||||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
|
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
|
||||||
// curl_easy_setopt(curl, CURLOPT_USERAGENT, "unknown");
|
|
||||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)");
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)");
|
||||||
curl_easy_setopt(curl, CURLOPT_REFERER, string("http://www.ryzom.com/" + referer).c_str());
|
curl_easy_setopt(curl, CURLOPT_REFERER, string("http://www.ryzom.com/" + referer).c_str());
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
|
|
|
@ -3517,6 +3517,7 @@ class CHandlerGameConfigApply : public IActionHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// **** Apply Anisotropic Filtering
|
// **** Apply Anisotropic Filtering
|
||||||
|
// read value from DB, it's a combo so value is the index of text
|
||||||
sint nAnisotropic = NLGUI::CDBManager::getInstance()->getDbProp( GAME_CONFIG_ANISOTROPIC_DB )->getValue32();
|
sint nAnisotropic = NLGUI::CDBManager::getInstance()->getDbProp( GAME_CONFIG_ANISOTROPIC_DB )->getValue32();
|
||||||
|
|
||||||
if (nAnisotropic >= 0)
|
if (nAnisotropic >= 0)
|
||||||
|
@ -3526,24 +3527,22 @@ class CHandlerGameConfigApply : public IActionHandler
|
||||||
// compute the real anisotropic value
|
// compute the real anisotropic value
|
||||||
if (nAnisotropic > 0)
|
if (nAnisotropic > 0)
|
||||||
{
|
{
|
||||||
anisotropic = 1;
|
anisotropic = 2;
|
||||||
|
|
||||||
for(size_t i = 0; i < nAnisotropic; ++i)
|
for(size_t i = 1; i < nAnisotropic; ++i)
|
||||||
{
|
{
|
||||||
anisotropic <<= 1;
|
anisotropic <<= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ClientCfg.AnisotropicFilter != anisotropic)
|
if (ClientCfg.AnisotropicFilter != anisotropic)
|
||||||
{
|
{
|
||||||
ClientCfg.AnisotropicFilter = anisotropic;
|
ClientCfg.AnisotropicFilter = anisotropic;
|
||||||
ClientCfg.writeInt("AnisotropicFilter", anisotropic);
|
ClientCfg.writeInt("AnisotropicFilter", ClientCfg.AnisotropicFilter);
|
||||||
requestReboot = true;
|
requestReboot = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// *** Apply the Screen AR
|
// *** Apply the Screen AR
|
||||||
// since already set in the config file, need only to bkup the current version
|
// since already set in the config file, need only to bkup the current version
|
||||||
CHandlerGameConfigInit::BkupScreenAspectRatio= ClientCfg.ScreenAspectRatio;
|
CHandlerGameConfigInit::BkupScreenAspectRatio= ClientCfg.ScreenAspectRatio;
|
||||||
|
|
|
@ -237,6 +237,12 @@ void updateFromClientCfg()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------
|
||||||
|
if (ClientCfg.AnisotropicFilter != LastClientCfg.AnisotropicFilter)
|
||||||
|
{
|
||||||
|
Driver->setAnisotropicFilter(ClientCfg.AnisotropicFilter);
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------
|
//---------------------------------------------------
|
||||||
if (ClientCfg.FXAA != LastClientCfg.FXAA)
|
if (ClientCfg.FXAA != LastClientCfg.FXAA)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue