Commit graph

221 commits

Author SHA1 Message Date
Robert MacGregor
d7ed88494e * BugFix: Correct placement of the TORQUE_NOINLINE statements for MSVC compat. 2021-09-01 22:38:55 -04:00
Robert MacGregor
1b55dce613 * Workaround: Implement noinline attributes for problematic functions in str.cpp due to what appears to be GCC compiler bugs. 2021-09-01 21:12:12 -04:00
Robert MacGregor
3ecdf292d7 * Adjustment: Remove some unnecessary ifdef logic in UUID headers. 2021-08-20 22:53:45 -04:00
Robert MacGregor
eca3fbfa67 * [UUID] BugFix: Correct a memory mismanagement error in UUID programming due to the way xuuid_t is utilized. 2021-08-14 17:44:17 -04:00
AzaezelX
59e162abe5 void floating point error clipping courtessy higuy and hutch 2021-07-31 17:05:29 -05:00
Areloch
abf5a09bc3 Removed duplicate checkbox image
Added asset import conflict resolution option to prepend folder name
Cleanups of Project Importer and fixed importing of material and terrain materials, specifically, fallbacks in the event they are unnamed to utilize the mapTo and internalName fields, respectively
Fixed typos in guiTerrainMaterialDlg
Added AssetBrowser button to GuiEditor
Improved FileObject's PeekLine function to be able to peek forward further via an optional lineOffset argument
2021-07-28 09:26:13 -05:00
AzaezelX
b8eaefc21e refactor new IsScriptFile method to be zip-safe 2021-07-22 20:55:46 -05:00
Areloch
83b0432283
Merge pull request #489 from Azaezel/alpha40/zipPassPunt
expose a zip file password cmake config option
2021-07-17 11:03:26 -05:00
Areloch
4d40e3cab5
Merge pull request #449 from OTHGMars/Zip_Test2
Loading from zipped game directories.
2021-07-17 11:03:19 -05:00
Brian Roberts
3aa0b8d236
Merge pull request #491 from Azaezel/alpha40/StreamSafetyString
augment bitstream write error reporting
2021-06-22 12:04:31 -05:00
Jeff Hutchinson
2e8a0185b3 Fix buffer overflow issue in StringUnit::getWords.
getWords("a b c d", 2); // "c d"

that turns into this inside the engine:

getWords("a b c d", 2, 1000000);

that code after parsing d goes string++ which passes over the null character. This now enforces that check. Found this with the new script interpreter...how this wasn't blowing up before is beyond me.
2021-06-18 21:08:03 -04:00
AzaezelX
1da711dc4f augment bitstream write error reporting 2021-06-07 15:07:54 -05:00
AzaezelX
a34aea55f7 expose a zip file password cmake config option 2021-06-02 16:08:51 -05:00
Jeff Hutchinson
e981fd2cc3 Add support for aarch64 / apple silicon 2021-05-10 15:55:56 -04:00
AzaezelX
2e3e4228b2 make string to char* conversion automatic 2021-04-21 14:45:10 -05:00
Lukas Aldershaab
099dd4f1f3 Parametrize script extension, default to 'tscript' 2021-01-19 21:32:31 +01:00
OTHGMars
c77be80220 Zip usage notes and defines. 2021-01-11 05:04:36 -05:00
OTHGMars
0484956a1f Enables pattern searches to enter zipped sub-directories. 2021-01-11 04:53:38 -05:00
OTHGMars
e808fc4407 Clone file handle for concurrent zip access. 2021-01-11 04:49:43 -05:00
Lukas Joergensen
a241d27b58 Expand EngineAPI type definitions 2020-11-15 21:30:45 +01:00
Lukas Aldershaab
c999baf7ed Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense. 2020-10-03 14:37:55 +02:00
AzaezelX
81a4e47235 crashfix-string deconstructor
validate we aren't either empty or using the reserved empty string before we release the pointed to value (as a note, the latter at least shouldn't have been required, but might as well be paranoid about it)
2020-06-02 17:10:39 -05:00
AzaezelX
bfcc83638d uninitialized variables-core-2
(cherry picked from commit 7c329699e4e4d13a164b2483e174b5f555ea9344)
2020-05-11 15:13:29 -05:00
AzaezelX
2c1508c169 uninitialized variables-console 2020-05-11 14:40:31 -05:00
Areloch
ab9fc302fc Added D3D error code interpreter
Added sanity check for findMatch
Finished most of asset importer logic to utilize settings system
Cleaned up code for finding associated files
Added General importer settings category and integrated logic for those settings fields
Updated logic in variableGroup to support callbacks in custom fields
Updated logic in variableInspector to better handle callbacks, as well as being able to manually update when manipulating fields
Updated scripts to utilize project settings values for playGUI and mainMenuGUI names
Improved module-oriented loading of materials
Added util function for populating custom fonts
2019-08-12 01:04:17 -05:00
Areloch
e83ec69292 Merge branch 'PBR_ProbeArrayGLWIP' of https://github.com/Azaezel/Torque3D into development 2019-05-06 01:50:45 -05:00
Areloch
73cb9343d2 Tweaks to the rapidjson stuff so it all plays nice, as well as minor additions to Filestream so it works with the rapidjson stuff. 2019-04-21 04:19:38 -05:00
Azaezel
1eed979a9c Merge branch 'method_Unmangle' into PBR_PR 2018-12-12 14:54:22 -06:00
Areloch
6cf0c9e360 Merge branch 'development' into EngineAPI-Refactor 2018-12-09 14:48:50 -06:00
Areloch
c5a2734db6 Merge pull request #2267 from calvinbalke13/feature-netcode-fix
Network Code Fixes
2018-10-12 00:39:26 -05:00
Areloch
57f8549abe Shifted to the static-list arrangement for probe instance tracking to help performance as well as drastically streamline the data submission/material instance flow for probe rendering. 2018-10-07 17:32:23 -05:00
OTHGMars
e3793184b6 Improved BitStream writeQuat/readQuat methods.
Replaces the writeQuat/readQuat implementations with one that utilizes smallest three compression.
2018-10-06 03:29:15 -04:00
Calvin Balke
cf156f5056 Network Code Fixes
This should be backwards compatible with existing network code, however it fixes a bug.
2018-07-15 11:50:09 -07:00
Azaezel
13334b4d5c Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
# Conflicts:
#	Engine/source/sfx/sfxSystem.cpp
2018-04-23 10:08:14 -05:00
Lukas Joergensen
2bbc716db6 Eliminate unnecessary uses of ConsoleFunction 2018-04-17 21:41:29 +02:00
Lukas Joergensen
76908eae3c Eliminate DefineConsoleMethod 2018-04-17 21:01:50 +02:00
Lukas Joergensen
e718841467 Eliminate DefineConsoleFunction 2018-04-17 20:54:08 +02:00
Areloch
bc1b506205 Merge pull request #2146 from Azaezel/specializationShenanigans
changes find, swap, for_each, and delete_pointer from global to t3d namespace
2018-04-17 03:02:03 -05:00
Azaezel
cbce2ee805 Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
# Conflicts:
#	Engine/source/console/consoleFunctions.cpp
2018-03-28 15:42:34 -05:00
Azaezel
a0b1512857 bitstream shadowvar cleanup 2018-03-16 20:04:43 -05:00
Azaezel
f36826605f simobject, dictionary, stringtable, and taml clarificationsand cleanups 2018-03-13 17:30:33 -05:00
Azaezel
064dfbc4f4 tsignal::order to ::mOrder. yet another potential conflict with a class member vs a method input 2018-03-13 14:22:51 -05:00
Azaezel
af0922e175 remove inside a remove after a remove... yeah.... No. 2018-03-13 02:12:59 -05:00
Azaezel
f59b92bf4e winconsole many, many i vars. worldEditor path arguement, lockPtr doubleup. volume.cpp: uneccesary duplicated FileNode::Attributes attr; def 2018-03-12 19:10:55 -05:00
Glenn Smith
47d5b6ead7 As suggested, extract strlen calls from sizes into variables so it isn't called twice 2018-03-08 20:59:40 -05:00
Glenn Smith
a061923c1e Better to use strlcat and strlcpy and move them to the cpp file. Provided an implementation for platforms that don't support them (macOS only currently) 2018-03-08 00:45:24 -05:00
Glenn Smith
a46cadc487 Let dStrncat use strncat because it's probably set up for that 2018-03-07 03:58:28 -05:00
Glenn Smith
d9a723d533 More cats and cpys in files that xcode doesn't see 2018-03-07 01:13:56 -05:00
Glenn Smith
396fe5b0ad Cleaning up the checks 2018-03-06 02:37:42 -05:00
Glenn Smith
79c34c68db Use strncpy instead of strcpy because again, buffer overflows 2018-03-06 02:35:33 -05:00