aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-09-01 03:20:28 +1000
committerDavid Walter Seikel2013-09-01 03:20:28 +1000
commit2eb0e429d8c8dcc095aff7e703a9a3249c345628 (patch)
tree405c34a2f594c5d940b290579166b9e95349e418
parentMerge remote-tracking branch 'imprudence/next' into next (diff)
downloadmeta-impy-2eb0e429d8c8dcc095aff7e703a9a3249c345628.zip
meta-impy-2eb0e429d8c8dcc095aff7e703a9a3249c345628.tar.gz
meta-impy-2eb0e429d8c8dcc095aff7e703a9a3249c345628.tar.bz2
meta-impy-2eb0e429d8c8dcc095aff7e703a9a3249c345628.tar.xz
Merge post fixes so that Linux compiles.
Windows is being a pig, will take a while.
-rwxr-xr-xlinden/indra/develop.py4
-rw-r--r--linden/indra/llcommon/llstring.cpp34
-rw-r--r--linden/indra/llcommon/llstring.h2
-rw-r--r--linden/indra/newview/llstartup.cpp34
-rw-r--r--linden/indra/newview/llviewergenericmessage.cpp2
-rw-r--r--linden/indra/newview/packaging/mac/English.lproj/InfoPlist.strings6
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_clear_cache.xml2
7 files changed, 43 insertions, 41 deletions
diff --git a/linden/indra/develop.py b/linden/indra/develop.py
index f4fa1cc..100f719 100755
--- a/linden/indra/develop.py
+++ b/linden/indra/develop.py
@@ -632,9 +632,9 @@ class WindowsSetup(PlatformSetup):
632 if self.generator == 'nmake': 632 if self.generator == 'nmake':
633 # Hack around a bug in cmake that I'm surprised did not hit GUI controlled builds. 633 # Hack around a bug in cmake that I'm surprised did not hit GUI controlled builds.
634 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /GS .*$|\1|" build-nmake/win_crash_logger/CMakeFiles/windows-crash-logger.dir/flags.make') 634 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /GS .*$|\1|" build-nmake/win_crash_logger/CMakeFiles/windows-crash-logger.dir/flags.make')
635 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /GS .*$|\1|" build-nmake/newview/CMakeFiles/imprudence-bin.dir/flags.make') 635 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /GS .*$|\1|" build-nmake/newview/CMakeFiles/meta-impy-bin.dir/flags.make')
636 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /EHsc .*/Zm1000 \($\)|\1\2|" build-nmake/win_crash_logger/CMakeFiles/windows-crash-logger.dir/flags.make') 636 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /EHsc .*/Zm1000 \($\)|\1\2|" build-nmake/win_crash_logger/CMakeFiles/windows-crash-logger.dir/flags.make')
637 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /EHsc .*/Zm1000 \($\)|\1\2|" build-nmake/newview/CMakeFiles/imprudence-bin.dir/flags.make') 637 self.run(r'sed -i "s|\(^RC_FLAGS .* \) /EHsc .*/Zm1000 \($\)|\1\2|" build-nmake/newview/CMakeFiles/meta-impy-bin.dir/flags.make')
638 # Evil hack. 638 # Evil hack.
639 self.run(r'touch newview/touched.bat') 639 self.run(r'touch newview/touched.bat')
640 return 'nmake' 640 return 'nmake'
diff --git a/linden/indra/llcommon/llstring.cpp b/linden/indra/llcommon/llstring.cpp
index 95aa7b5..fe0ab2a 100644
--- a/linden/indra/llcommon/llstring.cpp
+++ b/linden/indra/llcommon/llstring.cpp
@@ -596,6 +596,40 @@ std::string utf8str_removeCRLF(const std::string& utf8str)
596 return out; 596 return out;
597} 597}
598 598
599bool is_hex_string(U8* str, S32 len)
600{
601 bool rv = true;
602 U8* c = str;
603 while(rv && len--)
604 {
605 switch(*c)
606 {
607 case '0':
608 case '1':
609 case '2':
610 case '3':
611 case '4':
612 case '5':
613 case '6':
614 case '7':
615 case '8':
616 case '9':
617 case 'a':
618 case 'b':
619 case 'c':
620 case 'd':
621 case 'e':
622 case 'f':
623 ++c;
624 break;
625 default:
626 rv = false;
627 break;
628 }
629 }
630 return rv;
631}
632
599bool LLStringOps::isHexString(const std::string& str) 633bool LLStringOps::isHexString(const std::string& str)
600{ 634{
601 const char* buf = str.c_str(); 635 const char* buf = str.c_str();
diff --git a/linden/indra/llcommon/llstring.h b/linden/indra/llcommon/llstring.h
index ced9713..e1b5cbd 100644
--- a/linden/indra/llcommon/llstring.h
+++ b/linden/indra/llcommon/llstring.h
@@ -458,6 +458,8 @@ LL_COMMON_API std::string mbcsstring_makeASCII(const std::string& str);
458 458
459LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str); 459LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str);
460 460
461LL_COMMON_API bool is_hex_string(U8* str, S32 len);
462
461 463
462#if LL_WINDOWS 464#if LL_WINDOWS
463/* @name Windows string helpers 465/* @name Windows string helpers
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 12fde5c..d232ea8 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -268,7 +268,6 @@ bool LLStartUp::sLoginFailed = false;
268 268
269void login_show(); 269void login_show();
270void login_callback(S32 option, void* userdata); 270void login_callback(S32 option, void* userdata);
271bool is_hex_string(U8* str, S32 len);
272void show_first_run_dialog(); 271void show_first_run_dialog();
273bool first_run_dialog_callback(const LLSD& notification, const LLSD& response); 272bool first_run_dialog_callback(const LLSD& notification, const LLSD& response);
274void set_startup_status(const F32 frac, const std::string& string, const std::string& msg); 273void set_startup_status(const F32 frac, const std::string& string, const std::string& msg);
@@ -3270,39 +3269,6 @@ void LLStartUp::deletePasswordFromDisk()
3270 LLFile::remove(filepath); 3269 LLFile::remove(filepath);
3271} 3270}
3272 3271
3273bool is_hex_string(U8* str, S32 len)
3274{
3275 bool rv = true;
3276 U8* c = str;
3277 while(rv && len--)
3278 {
3279 switch(*c)
3280 {
3281 case '0':
3282 case '1':
3283 case '2':
3284 case '3':
3285 case '4':
3286 case '5':
3287 case '6':
3288 case '7':
3289 case '8':
3290 case '9':
3291 case 'a':
3292 case 'b':
3293 case 'c':
3294 case 'd':
3295 case 'e':
3296 case 'f':
3297 ++c;
3298 break;
3299 default:
3300 rv = false;
3301 break;
3302 }
3303 }
3304 return rv;
3305}
3306 3272
3307void show_first_run_dialog() 3273void show_first_run_dialog()
3308{ 3274{
diff --git a/linden/indra/newview/llviewergenericmessage.cpp b/linden/indra/newview/llviewergenericmessage.cpp
index 36c61ab..e4b325d 100644
--- a/linden/indra/newview/llviewergenericmessage.cpp
+++ b/linden/indra/newview/llviewergenericmessage.cpp
@@ -93,7 +93,7 @@ void process_generic_message(LLMessageSystem* msg, void**)
93 } 93 }
94 else if(method == "WindlightReset") 94 else if(method == "WindlightReset")
95 { 95 {
96 WindlightMessage::resetRegion(); 96 LightShare::resetRegion();
97 return; 97 return;
98 } 98 }
99 99
diff --git a/linden/indra/newview/packaging/mac/English.lproj/InfoPlist.strings b/linden/indra/newview/packaging/mac/English.lproj/InfoPlist.strings
index e0014d3..5b4a12e 100644
--- a/linden/indra/newview/packaging/mac/English.lproj/InfoPlist.strings
+++ b/linden/indra/newview/packaging/mac/English.lproj/InfoPlist.strings
@@ -1,5 +1,5 @@
1/* Localized versions of Info.plist keys */ 1/* Localized versions of Info.plist keys */
2 2
3CFBundleName = "Imprudence"; 3CFBundleName = "meta-impy";
4CFBundleShortVersionString = "Imprudence 1.4.0.3 exp 1"; 4CFBundleShortVersionString = "meta-impy 1.4.0.3 exp 1";
5CFBundleGetInfoString = "Imprudence 1.4.0.3 exp 1"; 5CFBundleGetInfoString = "meta-impy 1.4.0.3 exp 1";
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_clear_cache.xml b/linden/indra/newview/skins/default/xui/en-us/floater_clear_cache.xml
index 7974d85..c00a86d 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_clear_cache.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_clear_cache.xml
@@ -7,7 +7,7 @@
7 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="20" 7 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="20"
8 mouse_opaque="true" name="cache_label" v_pad="0" width="185"> 8 mouse_opaque="true" name="cache_label" v_pad="0" width="185">
9Cache Will Be Cleared After 9Cache Will Be Cleared After
10You Restart Imprudence 10You Restart meta-impy
11 </text> 11 </text>
12 <check_box bottom_delta="-37" follows="left|top" font="SansSerifSmall" height="20" 12 <check_box bottom_delta="-37" follows="left|top" font="SansSerifSmall" height="20"
13 initial_value="false" label="Clear texture cache" left="10" 13 initial_value="false" label="Clear texture cache" left="10"