diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/indra_constants.cpp | 5 | ||||
-rw-r--r-- | linden/indra/llcommon/indra_constants.h | 14 | ||||
-rw-r--r-- | linden/indra/llcommon/linden_common.h | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llassettype.h | 4 | ||||
-rw-r--r-- | linden/indra/llcommon/llavatarname.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llavatarname.h | 18 | ||||
-rw-r--r-- | linden/indra/llcommon/llpreprocessor.h | 2 | ||||
-rw-r--r-- | linden/indra/llcommon/llstring.cpp | 36 | ||||
-rw-r--r-- | linden/indra/llcommon/llstring.h | 4 | ||||
-rw-r--r-- | linden/indra/llcommon/llversionviewer.h | 8 | ||||
-rw-r--r-- | linden/indra/llcommon/roles_constants.h | 6 |
11 files changed, 34 insertions, 67 deletions
diff --git a/linden/indra/llcommon/indra_constants.cpp b/linden/indra/llcommon/indra_constants.cpp index 64cbb11..1ab47d0 100644 --- a/linden/indra/llcommon/indra_constants.cpp +++ b/linden/indra/llcommon/indra_constants.cpp | |||
@@ -40,8 +40,5 @@ | |||
40 | const LLUUID LL_UUID_ALL_AGENTS("44e87126-e794-4ded-05b3-7c42da3d5cdb"); | 40 | const LLUUID LL_UUID_ALL_AGENTS("44e87126-e794-4ded-05b3-7c42da3d5cdb"); |
41 | 41 | ||
42 | // Governor Linden's agent id. | 42 | // Governor Linden's agent id. |
43 | // FIXME for meta-impy: Gotta get rid of this. | ||
43 | const LLUUID ALEXANDRIA_LINDEN_ID("ba2a564a-f0f1-4b82-9c61-b7520bfcd09f"); | 44 | const LLUUID ALEXANDRIA_LINDEN_ID("ba2a564a-f0f1-4b82-9c61-b7520bfcd09f"); |
44 | const LLUUID GOVERNOR_LINDEN_ID("3d6181b0-6a4b-97ef-18d8-722652995cf1"); | ||
45 | const LLUUID REALESTATE_LINDEN_ID("3d6181b0-6a4b-97ef-18d8-722652995cf1"); | ||
46 | // Maintenance's group id. | ||
47 | const LLUUID MAINTENANCE_GROUP_ID("dc7b21cd-3c89-fcaa-31c8-25f9ffd224cd"); | ||
diff --git a/linden/indra/llcommon/indra_constants.h b/linden/indra/llcommon/indra_constants.h index b765d4d..e64ee62 100644 --- a/linden/indra/llcommon/indra_constants.h +++ b/linden/indra/llcommon/indra_constants.h | |||
@@ -61,7 +61,8 @@ static const F32 REGION_WIDTH_METERS = 256.f; | |||
61 | static const S32 REGION_WIDTH_UNITS = 256; | 61 | static const S32 REGION_WIDTH_UNITS = 256; |
62 | static const U32 REGION_WIDTH_U32 = 256; | 62 | static const U32 REGION_WIDTH_U32 = 256; |
63 | 63 | ||
64 | const F32 REGION_HEIGHT_METERS = 4096.f; | 64 | // TODO - this is not actually used anywhere, but updating it anyway. |
65 | const F32 REGION_HEIGHT_METERS = 16383.f; | ||
65 | 66 | ||
66 | // Bits for simulator performance query flags | 67 | // Bits for simulator performance query flags |
67 | enum LAND_STAT_FLAGS | 68 | enum LAND_STAT_FLAGS |
@@ -153,11 +154,6 @@ const char WATER_LAYER_CODE = 'W'; | |||
153 | const char WIND_LAYER_CODE = '7'; | 154 | const char WIND_LAYER_CODE = '7'; |
154 | const char CLOUD_LAYER_CODE = '8'; | 155 | const char CLOUD_LAYER_CODE = '8'; |
155 | 156 | ||
156 | // Extended land layer for Aurora Sim | ||
157 | const char AURORA_LAND_LAYER_CODE = 'M'; | ||
158 | const char AURORA_WIND_LAYER_CODE = '9'; | ||
159 | const char AURORA_CLOUD_LAYER_CODE = ':'; | ||
160 | |||
161 | // keys | 157 | // keys |
162 | // Bit masks for various keyboard modifier keys. | 158 | // Bit masks for various keyboard modifier keys. |
163 | const MASK MASK_NONE = 0x0000; | 159 | const MASK MASK_NONE = 0x0000; |
@@ -271,13 +267,9 @@ const U8 GOD_NOT = 0; | |||
271 | LL_COMMON_API extern const LLUUID LL_UUID_ALL_AGENTS; | 267 | LL_COMMON_API extern const LLUUID LL_UUID_ALL_AGENTS; |
272 | 268 | ||
273 | // inventory library owner | 269 | // inventory library owner |
270 | // FIXME for meta-impy: Gotta get rid of this. | ||
274 | LL_COMMON_API extern const LLUUID ALEXANDRIA_LINDEN_ID; | 271 | LL_COMMON_API extern const LLUUID ALEXANDRIA_LINDEN_ID; |
275 | 272 | ||
276 | LL_COMMON_API extern const LLUUID GOVERNOR_LINDEN_ID; | ||
277 | LL_COMMON_API extern const LLUUID REALESTATE_LINDEN_ID; | ||
278 | // Maintenance's group id. | ||
279 | LL_COMMON_API extern const LLUUID MAINTENANCE_GROUP_ID; | ||
280 | |||
281 | // Flags for kick message | 273 | // Flags for kick message |
282 | const U32 KICK_FLAGS_DEFAULT = 0x0; | 274 | const U32 KICK_FLAGS_DEFAULT = 0x0; |
283 | const U32 KICK_FLAGS_FREEZE = 1 << 0; | 275 | const U32 KICK_FLAGS_FREEZE = 1 << 0; |
diff --git a/linden/indra/llcommon/linden_common.h b/linden/indra/llcommon/linden_common.h index bf844b9..cfb2dce 100644 --- a/linden/indra/llcommon/linden_common.h +++ b/linden/indra/llcommon/linden_common.h | |||
@@ -82,7 +82,7 @@ | |||
82 | // moved msvc warnings to llpreprocessor.h *TODO - delete this comment after merge conflicts are unlikely -brad | 82 | // moved msvc warnings to llpreprocessor.h *TODO - delete this comment after merge conflicts are unlikely -brad |
83 | #endif // LL_WINDOWS | 83 | #endif // LL_WINDOWS |
84 | 84 | ||
85 | // Linden only libs in alpha-order other than stdtypes.h | 85 | // Viewer only libs in alpha-order other than stdtypes.h |
86 | // *NOTE: Please keep includes here to a minimum, see above. | 86 | // *NOTE: Please keep includes here to a minimum, see above. |
87 | #include "stdtypes.h" | 87 | #include "stdtypes.h" |
88 | #include "lldefs.h" | 88 | #include "lldefs.h" |
diff --git a/linden/indra/llcommon/llassettype.h b/linden/indra/llcommon/llassettype.h index 9f611ae..5465cc3 100644 --- a/linden/indra/llcommon/llassettype.h +++ b/linden/indra/llcommon/llassettype.h | |||
@@ -50,12 +50,12 @@ public: | |||
50 | AT_SOUND = 1, | 50 | AT_SOUND = 1, |
51 | 51 | ||
52 | // Links instant message access to the user on the card. eg, a | 52 | // Links instant message access to the user on the card. eg, a |
53 | // card for yourself, a card for linden support, a card for | 53 | // card for yourself, a card for grid support, a card for |
54 | // the guy you were talking to in the coliseum. | 54 | // the guy you were talking to in the coliseum. |
55 | AT_CALLINGCARD = 2, | 55 | AT_CALLINGCARD = 2, |
56 | 56 | ||
57 | // Links to places in the world with location and a screen | 57 | // Links to places in the world with location and a screen |
58 | // shot or image saved. eg, home, linden headquarters, the | 58 | // shot or image saved. eg, home, grid headquarters, the |
59 | // coliseum, or destinations where we want to increase | 59 | // coliseum, or destinations where we want to increase |
60 | // traffic. | 60 | // traffic. |
61 | AT_LANDMARK = 3, | 61 | AT_LANDMARK = 3, |
diff --git a/linden/indra/llcommon/llavatarname.cpp b/linden/indra/llcommon/llavatarname.cpp index ebe8c88..4a2c7ab 100644 --- a/linden/indra/llcommon/llavatarname.cpp +++ b/linden/indra/llcommon/llavatarname.cpp | |||
@@ -1,7 +1,7 @@ | |||
1 | /** | 1 | /** |
2 | * @file llavatarname.cpp | 2 | * @file llavatarname.cpp |
3 | * @brief Represents name-related data for an avatar, such as the | 3 | * @brief Represents name-related data for an avatar, such as the |
4 | * username/SLID ("bobsmith123" or "james.linden") and the display | 4 | * username/SLID ("bobsmith123" or "james.green") and the display |
5 | * name ("James Cook") | 5 | * name ("James Cook") |
6 | * | 6 | * |
7 | * $LicenseInfo:firstyear=2010&license=viewerlgpl$ | 7 | * $LicenseInfo:firstyear=2010&license=viewerlgpl$ |
diff --git a/linden/indra/llcommon/llavatarname.h b/linden/indra/llcommon/llavatarname.h index 3b6c6ea..1e141dc 100644 --- a/linden/indra/llcommon/llavatarname.h +++ b/linden/indra/llcommon/llavatarname.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /** | 1 | /** |
2 | * @file llavatarname.h | 2 | * @file llavatarname.h |
3 | * @brief Represents name-related data for an avatar, such as the | 3 | * @brief Represents name-related data for an avatar, such as the |
4 | * username/SLID ("bobsmith123" or "james.linden") and the display | 4 | * username/SLID ("bobsmith123" or "james.green") and the display |
5 | * name ("James Cook") | 5 | * name ("James Cook") |
6 | * | 6 | * |
7 | * $LicenseInfo:firstyear=2010&license=viewerlgpl$ | 7 | * $LicenseInfo:firstyear=2010&license=viewerlgpl$ |
@@ -43,8 +43,8 @@ public: | |||
43 | 43 | ||
44 | void fromLLSD(const LLSD& sd); | 44 | void fromLLSD(const LLSD& sd); |
45 | 45 | ||
46 | // For normal names, returns "James Linden (james.linden)" | 46 | // For normal names, returns "James Green (james.green)" |
47 | // When display names are disabled returns just "James Linden" | 47 | // When display names are disabled returns just "James Green" |
48 | std::string getCompleteName() const; | 48 | std::string getCompleteName() const; |
49 | 49 | ||
50 | // For normal names, returns "Whatever Display Name (John Doe)" when | 50 | // For normal names, returns "Whatever Display Name (John Doe)" when |
@@ -55,31 +55,31 @@ public: | |||
55 | // line feed. | 55 | // line feed. |
56 | std::string getNames(bool linefeed = false) const; | 56 | std::string getNames(bool linefeed = false) const; |
57 | 57 | ||
58 | // Returns "James Linden" or "bobsmith123 Resident" for backwards | 58 | // Returns "James Green" or "bobsmith123 Resident" for backwards |
59 | // compatibility with systems like voice and muting | 59 | // compatibility with systems like voice and muting |
60 | std::string getLegacyName() const; | 60 | std::string getLegacyName() const; |
61 | 61 | ||
62 | // "bobsmith123" or "james.linden", US-ASCII only | 62 | // "bobsmith123" or "james.green", US-ASCII only |
63 | std::string mUsername; | 63 | std::string mUsername; |
64 | 64 | ||
65 | // "Jose' Sanchez" or "James Linden", UTF-8 encoded Unicode | 65 | // "Jose' Sanchez" or "James Green", UTF-8 encoded Unicode |
66 | // Contains data whether or not user has explicitly set | 66 | // Contains data whether or not user has explicitly set |
67 | // a display name; may duplicate their username. | 67 | // a display name; may duplicate their username. |
68 | std::string mDisplayName; | 68 | std::string mDisplayName; |
69 | 69 | ||
70 | // For "James Linden", "James" | 70 | // For "James Green", "James" |
71 | // For "bobsmith123", "bobsmith123" | 71 | // For "bobsmith123", "bobsmith123" |
72 | // Used to communicate with legacy systems like voice and muting which | 72 | // Used to communicate with legacy systems like voice and muting which |
73 | // rely on old-style names. | 73 | // rely on old-style names. |
74 | std::string mLegacyFirstName; | 74 | std::string mLegacyFirstName; |
75 | 75 | ||
76 | // For "James Linden", "Linden" | 76 | // For "James Green", "Green" |
77 | // For "bobsmith123", "Resident" | 77 | // For "bobsmith123", "Resident" |
78 | // see above for rationale | 78 | // see above for rationale |
79 | std::string mLegacyLastName; | 79 | std::string mLegacyLastName; |
80 | 80 | ||
81 | // If true, both display name and SLID were generated from | 81 | // If true, both display name and SLID were generated from |
82 | // a legacy first and last name, like "James Linden (james.linden)" | 82 | // a legacy first and last name, like "James Green (james.green)" |
83 | bool mIsDisplayNameDefault; | 83 | bool mIsDisplayNameDefault; |
84 | 84 | ||
85 | // Under error conditions, we may insert "dummy" records with | 85 | // Under error conditions, we may insert "dummy" records with |
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h index 6886e3a..29d90ba 100644 --- a/linden/indra/llcommon/llpreprocessor.h +++ b/linden/indra/llcommon/llpreprocessor.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /** | 1 | /** |
2 | * @file llpreprocessor.h | 2 | * @file llpreprocessor.h |
3 | * @brief This file should be included in all Linden Lab files and | 3 | * @brief This file should be included in all viewer files and |
4 | * should only contain special preprocessor directives | 4 | * should only contain special preprocessor directives |
5 | * | 5 | * |
6 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 6 | * $LicenseInfo:firstyear=2001&license=viewergpl$ |
diff --git a/linden/indra/llcommon/llstring.cpp b/linden/indra/llcommon/llstring.cpp index cd5a9f2..069365b 100644 --- a/linden/indra/llcommon/llstring.cpp +++ b/linden/indra/llcommon/llstring.cpp | |||
@@ -596,38 +596,16 @@ std::string utf8str_removeCRLF(const std::string& utf8str) | |||
596 | return out; | 596 | return out; |
597 | } | 597 | } |
598 | 598 | ||
599 | bool is_hex_string(U8* str, S32 len) | 599 | bool LLStringOps::isHexString(const std::string& str) |
600 | { | 600 | { |
601 | bool rv = true; | 601 | const char* buf = str.c_str(); |
602 | U8* c = str; | 602 | int len = str.size(); |
603 | while(rv && len--) | 603 | while (--len >= 0) |
604 | { | 604 | { |
605 | switch(*c) | 605 | if (!isxdigit(buf[len])) return false; |
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 | } | 606 | } |
630 | return rv; | 607 | |
608 | return true; | ||
631 | } | 609 | } |
632 | 610 | ||
633 | #if LL_WINDOWS | 611 | #if LL_WINDOWS |
diff --git a/linden/indra/llcommon/llstring.h b/linden/indra/llcommon/llstring.h index a592e2c..1717479 100644 --- a/linden/indra/llcommon/llstring.h +++ b/linden/indra/llcommon/llstring.h | |||
@@ -175,6 +175,8 @@ public: | |||
175 | 175 | ||
176 | static S32 collate(const char* a, const char* b) { return strcoll(a, b); } | 176 | static S32 collate(const char* a, const char* b) { return strcoll(a, b); } |
177 | static S32 collate(const llwchar* a, const llwchar* b); | 177 | static S32 collate(const llwchar* a, const llwchar* b); |
178 | |||
179 | static bool isHexString(const std::string& str); | ||
178 | }; | 180 | }; |
179 | 181 | ||
180 | /** | 182 | /** |
@@ -456,8 +458,6 @@ LL_COMMON_API std::string mbcsstring_makeASCII(const std::string& str); | |||
456 | 458 | ||
457 | LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str); | 459 | LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str); |
458 | 460 | ||
459 | LL_COMMON_API bool is_hex_string(U8* str, S32 len); | ||
460 | |||
461 | 461 | ||
462 | #if LL_WINDOWS | 462 | #if LL_WINDOWS |
463 | /* @name Windows string helpers | 463 | /* @name Windows string helpers |
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h index ab74a3f..a571b95 100644 --- a/linden/indra/llcommon/llversionviewer.h +++ b/linden/indra/llcommon/llversionviewer.h | |||
@@ -40,15 +40,15 @@ const S32 LL_VERSION_MINOR = 23; | |||
40 | const S32 LL_VERSION_PATCH = 5; | 40 | const S32 LL_VERSION_PATCH = 5; |
41 | const S32 LL_VERSION_BUILD = 136262; | 41 | const S32 LL_VERSION_BUILD = 136262; |
42 | 42 | ||
43 | const char * const LL_VIEWER_NAME = "Second Life"; | 43 | const char * const LL_VIEWER_NAME = "meta-impy"; |
44 | 44 | ||
45 | // These aren't used anymore. | 45 | // These aren't used anymore. |
46 | // The channel is ViewerChannelName in settings.xml | 46 | // The channel is ViewerChannelName in settings.xml |
47 | // The Imprudence version is set in app_settings\viewerversion.xml -- MC | 47 | // The meta-impy version is set in app_settings\viewerversion.xml -- MC |
48 | 48 | ||
49 | /*const char * const LL_CHANNEL = "Imprudence"; | 49 | /*const char * const LL_CHANNEL = "meta-impy"; |
50 | 50 | ||
51 | const char * const IMP_VIEWER_NAME = "Imprudence"; | 51 | const char * const IMP_VIEWER_NAME = "meta-impy"; |
52 | 52 | ||
53 | const S32 IMP_VERSION_MAJOR = 1; | 53 | const S32 IMP_VERSION_MAJOR = 1; |
54 | const S32 IMP_VERSION_MINOR = 3; | 54 | const S32 IMP_VERSION_MINOR = 3; |
diff --git a/linden/indra/llcommon/roles_constants.h b/linden/indra/llcommon/roles_constants.h index 854a153..7c5ebdc 100644 --- a/linden/indra/llcommon/roles_constants.h +++ b/linden/indra/llcommon/roles_constants.h | |||
@@ -34,7 +34,7 @@ | |||
34 | #define LL_ROLES_CONSTANTS_H | 34 | #define LL_ROLES_CONSTANTS_H |
35 | 35 | ||
36 | // This value includes the everyone group. | 36 | // This value includes the everyone group. |
37 | const S32 MAX_ROLES = 10; | 37 | const S32 MAX_ROLES = 25; |
38 | 38 | ||
39 | enum LLRoleMemberChangeType | 39 | enum LLRoleMemberChangeType |
40 | { | 40 | { |
@@ -89,7 +89,7 @@ const U64 GP_GROUP_CHANGE_IDENTITY = 0x1 << 11; // Charter, insignia, 'Show In G | |||
89 | 89 | ||
90 | // Parcel Management | 90 | // Parcel Management |
91 | const U64 GP_LAND_DEED = 0x1 << 12; // Deed Land and Buy Land for Group | 91 | const U64 GP_LAND_DEED = 0x1 << 12; // Deed Land and Buy Land for Group |
92 | const U64 GP_LAND_RELEASE = 0x1 << 13; // Release Land (to Gov. Linden) | 92 | const U64 GP_LAND_RELEASE = 0x1 << 13; // Release Land (abandon it back to the grid owners) |
93 | const U64 GP_LAND_SET_SALE_INFO = 0x1 << 14; // Set for sale info (Toggle "For Sale", Set Price, Set Target, Toggle "Sell objects with the land") | 93 | const U64 GP_LAND_SET_SALE_INFO = 0x1 << 14; // Set for sale info (Toggle "For Sale", Set Price, Set Target, Toggle "Sell objects with the land") |
94 | const U64 GP_LAND_DIVIDE_JOIN = 0x1 << 15; // Divide and Join Parcels | 94 | const U64 GP_LAND_DIVIDE_JOIN = 0x1 << 15; // Divide and Join Parcels |
95 | 95 | ||
@@ -126,7 +126,7 @@ const U64 GP_LAND_RETURN = GP_LAND_RETURN_GROUP_OWNED | |||
126 | | GP_LAND_RETURN_GROUP_SET | 126 | | GP_LAND_RETURN_GROUP_SET |
127 | | GP_LAND_RETURN_NON_GROUP; | 127 | | GP_LAND_RETURN_NON_GROUP; |
128 | 128 | ||
129 | const U64 GP_LAND_GARDENING = 0x1LL << 35; // Parcel Gardening - plant and move linden trees | 129 | const U64 GP_LAND_GARDENING = 0x1LL << 35; // Parcel Gardening - plant and move tree prims |
130 | 130 | ||
131 | // Object Management | 131 | // Object Management |
132 | const U64 GP_OBJECT_DEED = 0x1LL << 36; // Deed Object | 132 | const U64 GP_OBJECT_DEED = 0x1LL << 36; // Deed Object |