Commit Graph

66 Commits

Author SHA1 Message Date
James Moran
1e09f3b5bd Add -Wshadow on HTML5. Fixed errors relating to it. UE-14250
Fixed some potential issues from incoming SDK release. Removed unnecessary js lib.

[CL 2524336 by James Moran in Main branch]
2015-04-24 10:49:50 -04:00
Gil Gribb
c8c3d793ea UE4 - remove rhimethods.h and all of the macro stuff relating to that
[CL 2524145 by Gil Gribb in Main branch]
2015-04-24 07:50:10 -04:00
Marc Audy
4815482be4 Add a PRAGMA_DISABLE_SHADOW_WARNING to easily wrap third party code that needs shadow variables disabled
Move PRAGMA_POP out of deprecation section and in to general usability

[CL 2510496 by Marc Audy in Main branch]
2015-04-13 13:31:04 -04:00
Ankit Khare
79542f541b Allow HTML5 to download maps on the fly.
UPLAT-685 (Remove Virtual File System to reduce run-time memory overhead and allow for larger worlds in HTML5)

#codereview josh.adams, james.moran

[CL 2505577 by Ankit Khare in Main branch]
2015-04-08 14:53:36 -04:00
Jaroslaw Palczynski
b0bc8bbc87 Added EMIT_CUSTOM_WARNING_AT_LINE macro to emit warnings at given line rather than on macro location.
[CL 2490438 by Jaroslaw Palczynski in Main branch]
2015-03-25 07:44:58 -04:00
Jaroslaw Surowiec
9aee7dc31d Core - Runnable improvements
#codereview Robert.Manuszewski

[CL 2489120 by Jaroslaw Surowiec in Main branch]
2015-03-24 07:29:32 -04:00
Jaroslaw Palczynski
f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00
Jaroslaw Palczynski
fa31560e2d Enabled UHT to digest GENERATED_BODY instead of GENERATED_UCLASS_BODY, GENERATED_USTRUCT_BODY, GENERATED_UINTERFACE_BODY or GENERATED_IINTERFACE_BODY, changed every occurence to the new syntax and fixed every warning that have fallen out of this change.
#codereview Robert.Manuszewski

[CL 2481333 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:19:11 -04:00
Josh Adams
a98d6d5f5c - Changed Android ES31+AEP support from a TargetPlatform to a checkbox that works with any Android TP
- Moved HighQualityLightmap support check to IOSTargetPlatform so it can check project settings for Metal support
- Fixed some issues running on an x86_64 device
- Cleaned up some unused functions in TargetPlatform
#codereview niklas.smedberg

[CL 2478853 by Josh Adams in Main branch]
2015-03-13 14:05:13 -04:00
Mikolaj Sieluzycki
01acd9263c Log debug message before assertion macros.
#codereview Steve.Robb

[CL 2475034 by Mikolaj Sieluzycki in Main branch]
2015-03-11 09:07:48 -04:00
Mikolaj Sieluzycki
d7a081e634 Disable deprecation warnings in code generated by UHT.
[CL 2473643 by Mikolaj Sieluzycki in Main branch]
2015-03-10 08:24:59 -04:00
Gareth Martin
4615e5fe32 Fixes to TLazyObjectPtr, style improvements and new features:
New define: PLATFORM_COMPILER_HAS_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS, indicating whether function templates can have default template args or whether workarounds are needed. This is effectively a global version of ENABLE_TFUNCTIONREF_WORKAROUND from TFunction. Only needed for VS 2012, once we drop that we can remove this.
Now constructs from T* instead of (templated) U*. It cast to a T* anyway, so would have failed to compile with anything that couldn't already bind to a T* arg, so the template was pointless.
As a result no constructor from TYPE_OF_NULL is needed (calls the T* constructor with NULL), so it has been removed. nullptr also now works!
Comparison operators have been made symmetrical (TLazyObjectPtr can now be the right-hand argument as well) and comparisons with nullptr now compile
Implicit upcasting is now enabled in the constructor and assignment, so "TLazyObjectPtr<Base> mybaselazyptr = TLazyObjectPtr<Derived>()" now works, as does passing a TLazyObjectPtr<Derived> to a function that expects a TLazyObjectPtr<Base>. As this is always safe, this works even if the object isn't currently loaded!
The constructor from a TWeakObjectPtr has been removed because it didn't even compile
#codereview Steve.Robb

[CL 2471454 by Gareth Martin in Main branch]
2015-03-06 14:21:05 -05:00
James Moran
94f2e53582 Fix for assert getting exe name on startup in HTML5.
Implements FPlatformProcess::ExecutableName()

[CL 2462334 by James Moran in Main branch]
2015-02-26 12:11:18 -05:00
James Moran
e442a260d5 Safari fullscreen fix. UE-10530
Implement LaunchURL for HTML5. UE-10852
Possible fix for bogus mouse coordinates in Safari

#codereview Ankit.Khare

[CL 2461964 by James Moran in Main branch]
2015-02-26 05:37:56 -05:00
James Moran
f1320865f9 Many improvements to HTML5.
- Fixes to the Mac HTML5 Device selection. .app files now work correctly.
- Re-enabled HTML5 in Mac Editor.
- Added HTML5LaunchHelper executable to clean up the process of LaunchOn for HTML5.
- Improve HTML5 SDK Settings Editor interface. Only the emscripten install directory is needed now, SDK version are automatically picked up and selected for use.
- Change UnrealPak to also account for bytes saved (>64KB) and percentage size of original file (<90%) when choosing to automatically turn off compression.
- Added Server Port option for HTML5 deploy to stop clashes on port 8000
- Adding more logging for use during debugging & tracing.
- Added an option to turn on HTML5 tracing api and added calls to the api.
- Fix up check() macros to throw alert messages and be more clear that something has gone wrong on HTML5.

#codereview Ankit.Khare

[CL 2452979 by James Moran in Main branch]
2015-02-20 04:41:01 -05:00
Mikolaj Sieluzycki
e6b8af27ab Make check/ensure trigger debug break in current stack frame, not in AssertFailed internals.
#codereview Robert.Manuszewski

[CL 2425530 by Mikolaj Sieluzycki in Main branch]
2015-01-30 06:59:40 -05:00
Mikolaj Sieluzycki
bf1a1af268 Implement conditional and no stats version of Sleep.
#codereview Robert.Manuszewski

[CL 2410728 by Mikolaj Sieluzycki in Main branch]
2015-01-19 06:13:39 -05:00
Mikolaj Sieluzycki
4b1f513db4 Emit warning if GetLifetimeReplicatedProps and functions with _Implementation and _Validate suffixes aren't declared.
#codereview Robert.Manuszewski

[CL 2385673 by Mikolaj Sieluzycki in Main branch]
2014-12-11 11:49:41 -05:00
Ankit Khare
d6cac24497 Gamepad for HTML5.
[CL 2383472 by Ankit Khare in Main branch]
2014-12-10 10:13:02 -05:00
Ankit Khare
6121c1f4af Fix HTML5-win32 build.
[CL 2383468 by Ankit Khare in Main branch]
2014-12-10 10:12:33 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Steve Robb
e480904935 Pragma enable/disable deprecation macros moved into Platform.
Deprecation unified across all platforms in *CompilerPreSetup.h headers.

#codereview robert.manuszewski,marcus.wassmer

[CL 2373781 by Steve Robb in Main branch]
2014-12-02 11:22:29 -05:00
Ankit Khare
f0430510cd SDL2 upgrade from the SDK provided SDL1.3 for HTML5 Platform.
[CL 2365228 by Ankit Khare in Main branch]
2014-11-19 13:56:35 -05:00
Ben Zeigler
02a9e1dd4e Merging Dev -> Main using UE4-Fortnite-To-UE4 from CL 2340802
Includes following engine changes:

Getting display metrics only once at construct time when using SSafeZone. GetDisplayMetrics is expensive in Windows so it is impractical to call it every frame.
- Some AI API improvements, mostly switchig pointer function parameters to references.
- minor refactor of UCrowdFollowingComponent's queryinf functions:
    - IsCrowd*Enabled functions refactored to  IsCrowd*Active
    - implemented IsCrowd*Enabled that return acrual values of relevant properties
- Added a function to CrowdManager to query for location of agents neighbouring given agent
Added support for PS4 touchpad-based cursor
You can now choose to skip synchronously scanning for asset data in object libraries and just use the data that is currently in the asset registry. The data will be refereshed automatically later once the global scan completes. The only applies to non-commandlet editor instances.
Crash fixes for trying to access NULL Metal surfaces on IOS
Slate: Cleaned up some atlas code related to padding and corrected some comments

[CL 2347323 by Ben Zeigler in Main branch]
2014-11-03 15:47:28 -05:00
Steve Robb
d662588246 Applied changes from CL# 2331703 to all Clang platforms.
#codereview robert.manuszewski,dmitry.rekman

[CL 2340999 by Steve Robb in Main branch]
2014-10-27 07:59:21 -04:00