2016-12-08 08:52:44 -05:00
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
2016-01-07 04:39:47 -05:00
using System ;
2015-07-02 04:47:28 -04:00
using System.Net ;
using System.Net.Sockets ;
2015-02-20 04:41:01 -05:00
using System.Collections.Generic ;
using System.Linq ;
using System.Text ;
using System.Threading.Tasks ;
using System.Diagnostics ;
2015-05-15 09:03:27 -04:00
using System.IO ;
2015-06-04 17:21:16 -04:00
using System.Reflection ;
using System.Web ;
2015-02-20 04:41:01 -05:00
namespace HTML5LaunchHelper
{
2015-06-04 17:21:16 -04:00
class HttpServer
{
#region extension to MIME type list
// some basic mime types, not really important but for completeness sake.
private static IDictionary < string , string > MimeTypeMapping = new Dictionary < string , string > ( StringComparer . InvariantCultureIgnoreCase )
{
{ ".bin" , "application/octet-stream" } ,
{ ".css" , "text/css" } ,
{ ".dll" , "application/octet-stream" } ,
{ ".dmg" , "application/octet-stream" } ,
{ ".ear" , "application/java-archive" } ,
{ ".eot" , "application/octet-stream" } ,
{ ".exe" , "application/octet-stream" } ,
{ ".flv" , "video/x-flv" } ,
{ ".gif" , "image/gif" } ,
{ ".hqx" , "application/mac-binhex40" } ,
{ ".htc" , "text/x-component" } ,
{ ".htm" , "text/html" } ,
{ ".html" , "text/html" } ,
{ ".ico" , "image/x-icon" } ,
{ ".img" , "application/octet-stream" } ,
{ ".iso" , "application/octet-stream" } ,
{ ".jar" , "application/java-archive" } ,
{ ".jardiff" , "application/x-java-archive-diff" } ,
{ ".jng" , "image/x-jng" } ,
{ ".jnlp" , "application/x-java-jnlp-file" } ,
{ ".jpeg" , "image/jpeg" } ,
{ ".jpg" , "image/jpeg" } ,
{ ".js" , "application/x-javascript" } ,
{ ".mml" , "text/mathml" } ,
{ ".mng" , "video/x-mng" } ,
{ ".mov" , "video/quicktime" } ,
{ ".mp3" , "audio/mpeg" } ,
{ ".mpeg" , "video/mpeg" } ,
{ ".mpg" , "video/mpeg" } ,
{ ".msi" , "application/octet-stream" } ,
{ ".msm" , "application/octet-stream" } ,
{ ".msp" , "application/octet-stream" } ,
{ ".pdb" , "application/x-pilot" } ,
{ ".pdf" , "application/pdf" } ,
{ ".pem" , "application/x-x509-ca-cert" } ,
{ ".pl" , "application/x-perl" } ,
{ ".pm" , "application/x-perl" } ,
{ ".png" , "image/png" } ,
{ ".prc" , "application/x-pilot" } ,
{ ".ra" , "audio/x-realaudio" } ,
{ ".rar" , "application/x-rar-compressed" } ,
{ ".rpm" , "application/x-redhat-package-manager" } ,
{ ".rss" , "text/xml" } ,
{ ".run" , "application/x-makeself" } ,
{ ".sea" , "application/x-sea" } ,
{ ".shtml" , "text/html" } ,
{ ".sit" , "application/x-stuffit" } ,
{ ".swf" , "application/x-shockwave-flash" } ,
{ ".tcl" , "application/x-tcl" } ,
{ ".tk" , "application/x-tcl" } ,
{ ".txt" , "text/plain" } ,
{ ".war" , "application/java-archive" } ,
{ ".wbmp" , "image/vnd.wap.wbmp" } ,
{ ".wmv" , "video/x-ms-wmv" } ,
{ ".xml" , "text/xml" } ,
{ ".xpi" , "application/x-xpinstall" } ,
{ ".zip" , "application/zip" } ,
} ;
#endregion
private HttpListener WebServer = new HttpListener ( ) ;
2015-06-25 06:39:00 -04:00
private string Root ;
2015-06-04 17:21:16 -04:00
2015-07-05 22:57:28 -04:00
public HttpServer ( int Port , string ServerRoot , bool UseAllPrefixes )
2015-06-04 17:21:16 -04:00
{
Root = ServerRoot ;
2015-07-02 04:47:28 -04:00
WebServer . Prefixes . Add ( string . Format ( "http://localhost:{0}/" , Port . ToString ( ) ) ) ;
2015-07-05 22:57:28 -04:00
if ( UseAllPrefixes )
{
WebServer . Prefixes . Add ( string . Format ( "http://127.0.0.1:{0}/" , Port . ToString ( ) ) ) ;
WebServer . Prefixes . Add ( string . Format ( "http://{0}:{1}/" , Environment . MachineName , Port . ToString ( ) ) ) ;
IPHostEntry host = Dns . GetHostEntry ( Dns . GetHostName ( ) ) ;
foreach ( IPAddress ip in host . AddressList ) {
if ( ip . AddressFamily = = AddressFamily . InterNetwork ) {
WebServer . Prefixes . Add ( string . Format ( "http://{0}:{1}/" , ip . ToString ( ) , Port . ToString ( ) ) ) ;
}
2015-07-02 04:47:28 -04:00
}
}
2015-06-04 17:21:16 -04:00
}
public void Run ( )
{
System . Console . WriteLine ( "Starting Server at " + WebServer . Prefixes . First ( ) . ToString ( ) ) ;
WebServer . Start ( ) ;
Task . Factory . StartNew ( ( )
= >
{
while ( WebServer . IsListening )
{
// Handle requests in threaded mode.
Task . Factory . StartNew ( ( Ctx )
= >
{
var Context = Ctx as HttpListenerContext ;
try
{
RequestHandler ( Context ) ;
}
catch { }
finally
{
Context . Response . Close ( ) ;
}
} , WebServer . GetContext ( ) ) ;
}
}
) ;
}
private void RequestHandler ( HttpListenerContext Context )
{
if ( Directory . Exists ( Root + Context . Request . Url . LocalPath ) )
{
// Process the list of files found in the directory.
string [ ] fileEntries = Directory . GetFileSystemEntries ( Root + Context . Request . Url . LocalPath ) ;
string Response = "<html>\n" +
"<body>\n" +
"<h2>Unreal WebServer</h2>\n" +
"<h3>Directory listing for " + Context . Request . Url . LocalPath + "</h3>\n" +
"<hr>\n" ;
Response + = "<table>\n" ;
Response + = "<tr>\n" +
"\t<th>Filename</th>\n" +
"\t<th>TimeStamp</th>\n" +
"</tr>\n" ;
foreach ( string fileName in fileEntries )
{
2015-06-12 11:03:36 -04:00
string Slash = Directory . Exists ( fileName ) ? "/" : "" ;
string Url = fileName . Replace ( Root , WebServer . Prefixes . First ( ) . ToString ( ) ) ;
Response + = "<tr>\n\t<td><a href=\"" + Url + "\">" + Path . GetFileName ( fileName ) + Slash + "</a></td>\n\t<td> " + File . GetLastAccessTime ( fileName ) . ToString ( ) + "</td>\n</tr>\n" ;
2015-06-04 17:21:16 -04:00
}
Response + = "</table></html>" ;
byte [ ] buf = Encoding . UTF8 . GetBytes ( Response ) ;
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3233741)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
[NOTE: Switch changes have been removed from this list, and will be in a comment in //UE4/Main/Engine/Build/Switch/SwitchChanges.txt]
Change 3207431 on 2016/11/22 by Keith.Judge
Make VectorSign on XB1 match (incorrect) SSE implementation rather than the reference FPU implementation. Too many things seem to rely on this to change the default behaviour now.
#jira UE-36921
#jira UE-38560
Change 3208206 on 2016/11/22 by Josh.Adams
- Changed plugins upgrading a content-only project to code-based, even if the modules inside aren't compiled for the current platform. There are issues with runtime not knowing the plugin isn't needed. The proper way is to non-whitelist the platform in the project, not in the modules, if you don't want it to upgrade the project. See the comments in this change for more info.
#jira UE-38929
Change 3209137 on 2016/11/23 by Alicia.Cano
Add a check to iOS tool chain for exception flag
#jira UE-36528
#ios
Change 3209296 on 2016/11/23 by Ben.Marsh
Always send build failure notifications in Dev-Platform to Will.Fissler@epicgames.com and Owen.Stupka@epicgames.com
Change 3211316 on 2016/11/28 by Joe.Barnes
Fix some typos
Change 3211318 on 2016/11/28 by Joe.Barnes
Fix wrong function name in header file. Didn't match actual function name in RenderingThread.cpp
Change 3213227 on 2016/11/29 by Dmitry.Rekman
Add -fPIC to libwebsockets on Linux.
Change 3213463 on 2016/11/29 by Nick.Shin
helper build scripts for CentOS 7 Linux (via Docker)
LINUX: pull source and compile: zlib openssl libcurl & libwebsockets
using [ glibc 2.17 ] & [ gcc 4.8.5 ]
Docker creates an image (that is essentially a CentOS box) and runs the build script within that environment (called a container). think of this as a VM -- but waaaaaaay better -- nothing is virtualized -- it's all on the metal.
#jira UEPLAT-1246 - Update libWebsockets
#jira UEPLAT-1221 - update websocket library
#jira UEPLAT-1203 - Add Linux library for libwebsockets
#jira UEPLAT-1204 - Rebuild libwebsockets with SSL
Change 3213939 on 2016/11/29 by Michael.Trepka
Ignore parent widget's geometry scale when showing a popup menu in a separate window
#jira UE-38706
Change 3215583 on 2016/11/30 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3216345 on 2016/11/30 by Josh.Adams
Better fix for poison proxy fix
Change 3217106 on 2016/12/01 by Michael.Trepka
Fixed a crash caused by an attempt to use FPlayWorldCommands::GlobalPlayWorldActions before it's initialized when showing suppressable warning dialogs in UEditorEngine::UpdateAutoLoadProject()
#jira UE-38816
Change 3217223 on 2016/12/01 by Josh.Adams
- Fixed some TEXT macro warnings that crept in from IWYU changes
Change 3217253 on 2016/12/01 by Dmitry.Rekman
Linux: fix GL crash (UE-17649).
- Making sure all streams are set up. Fix by Cengiz.
Change 3217473 on 2016/12/01 by Daniel.Lamb
Fixed a case when we load a map it might not have it's sublevels loaded because it's not treated like a map.
#test cook run QAGame
Change 3217588 on 2016/12/01 by Peter.Sauerbrei
Pull in IPv6 fix
Change 3217654 on 2016/12/01 by Michael.Trepka
Changed the Mac-specific high DPI code to use system backingScaleFactor only if NSHighResolutionCapable in Info.plist is set to true. This solves the problem with macOS Sierra giving us actual backingScaleFactor values even in low DPI modes.
Change 3217873 on 2016/12/01 by Josh.Adams
- Added some logging to a tvOS assert, since debugging it right away is tricky
Change 3218097 on 2016/12/01 by Josh.Adams
- Fixed up the Switch MediaFramework, making editor better, etc
- ALso changed PS4 and Xbox plugins to be enabled by default by having two entries in the plugin module for the Factory modules (an editor only entry, and a platform specific runtime entry... this will make it so that UE4Game.exe won't ahve it compiled in, even with it enabled by default)
Change 3218133 on 2016/12/01 by Dmitry.Rekman
Linux: report server hangs by crashing the hung thread (UE-39164).
Change 3218512 on 2016/12/01 by Josh.Adams
- Made the MfMedia plugin to be distributable in public builds, since it's for Windows and Xbox
Change 3219804 on 2016/12/02 by Dmitry.Rekman
Linux: fix project settings crash (UE-38800).
- Also submitted as a pull request #2945.
Change 3220027 on 2016/12/02 by Nick.Shin
plow all physx libs into build
NOTE: most browsers will not function
- chrome and firefox nightly only works
checking this in as per email
#jira UE-38323 VehicleTemplate Vehicle does not move in HTML5
Change 3221620 on 2016/12/05 by Joe.Barnes
UE-37275 - Temporary workaround for log lines losing carriage returns. Add's a \n when outputting lines if there isn't one at the end.
Change 3221689 on 2016/12/05 by Dmitry.Rekman
Attempt to change/rename.
Change 3221700 on 2016/12/05 by Dmitry.Rekman
Another attempt to change renamed file (from Linux).
Change 3221731 on 2016/12/05 by Michael.Trepka
Added missing initialization for FAvfVideoSampler::MetalTextureCache
#jira UE-38689
Change 3221792 on 2016/12/05 by Michael.Trepka
Fixed a crash in FMetalDynamicRHI::RHIAsyncReallocateTexture2D for PVRTC2 textures
Change 3222675 on 2016/12/05 by Josh.Adams
- Removed some resolution setting junk that was recently added to PlatformerGame - settings resolution on AppleTV is bad, it doesn't need to change resolution on non-desktop platforms
#jira UE-39188
Change 3223546 on 2016/12/06 by Brent.Pease
+ Properly set and use the realtime compression for ios.
+ Reduce unused memory on ios from the precached first buffer
+ Fix a resource tracking issue that was causing a double free on the sound buffer
Change 3223785 on 2016/12/06 by Brent.Pease
+ Add support for iPhone7 (implemented by peter.sauerbrei, merged in from WEX)
#jira ue-38701
Change 3224314 on 2016/12/06 by Chris.Babcock
Send OnTargetPlatformChangedSupportedFormats when format changed in Android project settings in editor
#jira UE-38361
#ue4
#android
Change 3225367 on 2016/12/07 by Josh.Adams
- Added FKey::Virtual_Accept and Virtual_Back, which will map to FaceButton Right/Down appropriately based on platform (Switch swaps them)
- Made changes to ShooterGame and VehicleGame for Virtual_Accept and Back
- Added some icons for ShooterGame, and changed some text blocks to SRichTextBlock to insert the icons
Change 3225426 on 2016/12/07 by Chris.Babcock
Add missing Android UPL file for binary builds
#jira UE-39420
#ue4
#android
Change 3225471 on 2016/12/07 by Dmitry.Rekman
Update all platforms to C++14.
Change 3225525 on 2016/12/07 by Nick.Shin
Cook-On-The-Fly for HTML5
- re-enabled: ENetworkFileServerProtocol::NFSP_Http
- cleaned up port numbers used with cook-on-the-fly situations
- fixed null_ptr in NetworkFileServerHttp.cpp
- fix CORS issue with HTML5LaunchHelper (not really needed -- but doesn't hurt to have it in the test server)
- finally, the core of the jira issue:
o fix serialization bug: do not append zero sized data
o fix de-serialization bug: removed double insertion of packet "Marker and Size" header
#jira UE-38281 Quicklaunch UFE HTML5 fails to get COTF Header Size
Change 3225690 on 2016/12/07 by Dmitry.Rekman
Linux: improvements in touch support.
- Multiple fingers.
- Filtering out "moved" events from the same location.
- Consistent logging.
(Edigrating 3225194 from Wombat to Dev-Platform)
Change 3225868 on 2016/12/07 by Josh.Stoddard
Gracefully handle delete without matching new on iOS & Mac
#jira UE-39395
Change 3226159 on 2016/12/07 by Omar.Rodriguez
UEPLAT-1423 WEX: Improved virtual keyboard for Android
* Renamed old virtual keyboard functions by adding "Dialog" suffix to the name
* Added new virtual keyboard functions that use InputMethodManager to show/hide keyboard
* Hide the virtual keyboard, if shown, onPause
* Slate edit box decides which functions to call for showing/hiding keyboard
- eventually will be based on command line parameter like in IOS
#jira UEPLAT-1423
Change 3226167 on 2016/12/07 by Dmitry.Rekman
Allow running as root on ARM.
(Edigrating 3204974 to Dev-Platform)
Change 3226168 on 2016/12/07 by Dmitry.Rekman
Print current CVar value when denying an override.
(Based on CL 3205476).
Change 3226169 on 2016/12/07 by Dmitry.Rekman
Allow enabling sound (if disabled by default).
(Based on CL 3205505)
Change 3226171 on 2016/12/07 by Dmitry.Rekman
Allow running from symlinks.
(Edigrating 3205518 to Dev-Platform).
Change 3226174 on 2016/12/07 by Dmitry.Rekman
Linux: do not init SDL audio (we do not use it anyway).
(Based on CL 3205505).
Change 3226327 on 2016/12/07 by Nick.Shin
fix CIS warning
#jira UE-38281 Quicklaunch UFE HTML5 fails to get COTF Header Size
Change 3226506 on 2016/12/08 by Dmitry.Rekman
Fix one more case-sensitive misspelling (UE-39030).
- Submitted as part of PR #2976.
Change 3226542 on 2016/12/08 by Dmitry.Rekman
Linux: fix weirdness with tesselation in GL4 (UE-32865).
- Workaround by CengizT. Proper fix tracked as UE-39489.
Change 3226570 on 2016/12/08 by Dmitry.Rekman
Fix for ar failing due to too long command line (UE-39009).
- Based on PR #2973.
Change 3226575 on 2016/12/08 by Dmitry.Rekman
Add build-essential to dependencies (UE-39053).
- PR #2981 contributed by cpyarger.
Change 3227129 on 2016/12/08 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Fixed up a deferred GL error as well
Fixed some copyrights of files not in main
Change 3227260 on 2016/12/08 by Omar.Rodriguez
UE-39140 Projects with iCloud are failing provisioning check when code signing.
* Set default value of bEnableCloudKitSupport to False
* Set value of get-task-allow to true only on non-distribution builds
* Only write out the entitlements file if changes have been made
#jira UE-39140
Change 3229312 on 2016/12/09 by Dmitry.Rekman
Fix missing responses (UE-39572).
- Proper implementation of UE-39009.
Change 3230849 on 2016/12/12 by Dmitry.Rekman
Linux: fixed Android packaging (UE-39635).
- Misspelled case; fixed by JohnHenry Carawon.
#jira UE-39635
Change 3231591 on 2016/12/12 by Peter.Sauerbrei
fix for splash screen not being turned off by default
#jira UE-39591
Change 3231880 on 2016/12/12 by Josh.Adams
- Fixing StaticAnalysis warnings, but -enablecodeanalysis stopped working for some reason, and the /Zm thing has hit me really hard, so this is a hopeful checkin for static analysis issues
#jira UE-39680
Change 3232816 on 2016/12/13 by Dmitry.Rekman
Linux: fix for CEF (UE-39682)
- Fix by Cengiz.Terzibas.
Change 3232873 on 2016/12/13 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3232933 on 2016/12/13 by Josh.Adams
- Missed the files that were needed to fix up after merge from main, but didn';t come from main
Change 3233066 on 2016/12/13 by Ben.Marsh
UBT: Ignore exception if PATH variable contains invalid characters when looking for XGE.
Change 3233512 on 2016/12/13 by Ben.Marsh
Fix static analysis warnings.
[CL 3233813 by Josh Adams in Main branch]
2016-12-13 19:47:16 -05:00
Context . Response . AddHeader ( "Access-Control-Allow-Origin" , "*" ) ;
2015-06-04 17:21:16 -04:00
Context . Response . ContentLength64 = buf . Length ;
Context . Response . OutputStream . Write ( buf , 0 , buf . Length ) ;
Context . Response . Close ( ) ;
}
2015-07-27 09:36:38 -04:00
else if ( File . Exists ( Root + Context . Request . Url . LocalPath ) )
2015-06-04 17:21:16 -04:00
{
string RequestedFile = Root + Context . Request . Url . LocalPath ;
2015-09-15 10:35:25 -04:00
string RequestedFileCompressed = Root + Context . Request . Url . LocalPath + "gz" ;
if ( File . Exists ( RequestedFileCompressed ) )
{
RequestedFile = RequestedFileCompressed ;
}
2015-06-04 17:21:16 -04:00
System . Console . WriteLine ( "Serving " + RequestedFile ) ;
using ( Stream source = File . OpenRead ( RequestedFile ) )
{
string Extention = Path . GetExtension ( RequestedFile ) ;
string MimeType = "text/html" ;
if ( MimeTypeMapping . ContainsKey ( Extention ) )
{
MimeType = MimeTypeMapping [ Extention ] ;
}
// This is the crux of serving pre-compressed files.
2015-09-15 10:35:25 -04:00
if ( Extention . EndsWith ( "gz" ) )
2015-06-04 17:21:16 -04:00
{
2015-07-27 09:36:38 -04:00
Context . Response . AddHeader ( "Content-Encoding" , "gzip" ) ;
2015-06-04 17:21:16 -04:00
}
byte [ ] buffer = new byte [ source . Length ] ;
source . Read ( buffer , 0 , buffer . Length ) ;
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3233741)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
[NOTE: Switch changes have been removed from this list, and will be in a comment in //UE4/Main/Engine/Build/Switch/SwitchChanges.txt]
Change 3207431 on 2016/11/22 by Keith.Judge
Make VectorSign on XB1 match (incorrect) SSE implementation rather than the reference FPU implementation. Too many things seem to rely on this to change the default behaviour now.
#jira UE-36921
#jira UE-38560
Change 3208206 on 2016/11/22 by Josh.Adams
- Changed plugins upgrading a content-only project to code-based, even if the modules inside aren't compiled for the current platform. There are issues with runtime not knowing the plugin isn't needed. The proper way is to non-whitelist the platform in the project, not in the modules, if you don't want it to upgrade the project. See the comments in this change for more info.
#jira UE-38929
Change 3209137 on 2016/11/23 by Alicia.Cano
Add a check to iOS tool chain for exception flag
#jira UE-36528
#ios
Change 3209296 on 2016/11/23 by Ben.Marsh
Always send build failure notifications in Dev-Platform to Will.Fissler@epicgames.com and Owen.Stupka@epicgames.com
Change 3211316 on 2016/11/28 by Joe.Barnes
Fix some typos
Change 3211318 on 2016/11/28 by Joe.Barnes
Fix wrong function name in header file. Didn't match actual function name in RenderingThread.cpp
Change 3213227 on 2016/11/29 by Dmitry.Rekman
Add -fPIC to libwebsockets on Linux.
Change 3213463 on 2016/11/29 by Nick.Shin
helper build scripts for CentOS 7 Linux (via Docker)
LINUX: pull source and compile: zlib openssl libcurl & libwebsockets
using [ glibc 2.17 ] & [ gcc 4.8.5 ]
Docker creates an image (that is essentially a CentOS box) and runs the build script within that environment (called a container). think of this as a VM -- but waaaaaaay better -- nothing is virtualized -- it's all on the metal.
#jira UEPLAT-1246 - Update libWebsockets
#jira UEPLAT-1221 - update websocket library
#jira UEPLAT-1203 - Add Linux library for libwebsockets
#jira UEPLAT-1204 - Rebuild libwebsockets with SSL
Change 3213939 on 2016/11/29 by Michael.Trepka
Ignore parent widget's geometry scale when showing a popup menu in a separate window
#jira UE-38706
Change 3215583 on 2016/11/30 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3216345 on 2016/11/30 by Josh.Adams
Better fix for poison proxy fix
Change 3217106 on 2016/12/01 by Michael.Trepka
Fixed a crash caused by an attempt to use FPlayWorldCommands::GlobalPlayWorldActions before it's initialized when showing suppressable warning dialogs in UEditorEngine::UpdateAutoLoadProject()
#jira UE-38816
Change 3217223 on 2016/12/01 by Josh.Adams
- Fixed some TEXT macro warnings that crept in from IWYU changes
Change 3217253 on 2016/12/01 by Dmitry.Rekman
Linux: fix GL crash (UE-17649).
- Making sure all streams are set up. Fix by Cengiz.
Change 3217473 on 2016/12/01 by Daniel.Lamb
Fixed a case when we load a map it might not have it's sublevels loaded because it's not treated like a map.
#test cook run QAGame
Change 3217588 on 2016/12/01 by Peter.Sauerbrei
Pull in IPv6 fix
Change 3217654 on 2016/12/01 by Michael.Trepka
Changed the Mac-specific high DPI code to use system backingScaleFactor only if NSHighResolutionCapable in Info.plist is set to true. This solves the problem with macOS Sierra giving us actual backingScaleFactor values even in low DPI modes.
Change 3217873 on 2016/12/01 by Josh.Adams
- Added some logging to a tvOS assert, since debugging it right away is tricky
Change 3218097 on 2016/12/01 by Josh.Adams
- Fixed up the Switch MediaFramework, making editor better, etc
- ALso changed PS4 and Xbox plugins to be enabled by default by having two entries in the plugin module for the Factory modules (an editor only entry, and a platform specific runtime entry... this will make it so that UE4Game.exe won't ahve it compiled in, even with it enabled by default)
Change 3218133 on 2016/12/01 by Dmitry.Rekman
Linux: report server hangs by crashing the hung thread (UE-39164).
Change 3218512 on 2016/12/01 by Josh.Adams
- Made the MfMedia plugin to be distributable in public builds, since it's for Windows and Xbox
Change 3219804 on 2016/12/02 by Dmitry.Rekman
Linux: fix project settings crash (UE-38800).
- Also submitted as a pull request #2945.
Change 3220027 on 2016/12/02 by Nick.Shin
plow all physx libs into build
NOTE: most browsers will not function
- chrome and firefox nightly only works
checking this in as per email
#jira UE-38323 VehicleTemplate Vehicle does not move in HTML5
Change 3221620 on 2016/12/05 by Joe.Barnes
UE-37275 - Temporary workaround for log lines losing carriage returns. Add's a \n when outputting lines if there isn't one at the end.
Change 3221689 on 2016/12/05 by Dmitry.Rekman
Attempt to change/rename.
Change 3221700 on 2016/12/05 by Dmitry.Rekman
Another attempt to change renamed file (from Linux).
Change 3221731 on 2016/12/05 by Michael.Trepka
Added missing initialization for FAvfVideoSampler::MetalTextureCache
#jira UE-38689
Change 3221792 on 2016/12/05 by Michael.Trepka
Fixed a crash in FMetalDynamicRHI::RHIAsyncReallocateTexture2D for PVRTC2 textures
Change 3222675 on 2016/12/05 by Josh.Adams
- Removed some resolution setting junk that was recently added to PlatformerGame - settings resolution on AppleTV is bad, it doesn't need to change resolution on non-desktop platforms
#jira UE-39188
Change 3223546 on 2016/12/06 by Brent.Pease
+ Properly set and use the realtime compression for ios.
+ Reduce unused memory on ios from the precached first buffer
+ Fix a resource tracking issue that was causing a double free on the sound buffer
Change 3223785 on 2016/12/06 by Brent.Pease
+ Add support for iPhone7 (implemented by peter.sauerbrei, merged in from WEX)
#jira ue-38701
Change 3224314 on 2016/12/06 by Chris.Babcock
Send OnTargetPlatformChangedSupportedFormats when format changed in Android project settings in editor
#jira UE-38361
#ue4
#android
Change 3225367 on 2016/12/07 by Josh.Adams
- Added FKey::Virtual_Accept and Virtual_Back, which will map to FaceButton Right/Down appropriately based on platform (Switch swaps them)
- Made changes to ShooterGame and VehicleGame for Virtual_Accept and Back
- Added some icons for ShooterGame, and changed some text blocks to SRichTextBlock to insert the icons
Change 3225426 on 2016/12/07 by Chris.Babcock
Add missing Android UPL file for binary builds
#jira UE-39420
#ue4
#android
Change 3225471 on 2016/12/07 by Dmitry.Rekman
Update all platforms to C++14.
Change 3225525 on 2016/12/07 by Nick.Shin
Cook-On-The-Fly for HTML5
- re-enabled: ENetworkFileServerProtocol::NFSP_Http
- cleaned up port numbers used with cook-on-the-fly situations
- fixed null_ptr in NetworkFileServerHttp.cpp
- fix CORS issue with HTML5LaunchHelper (not really needed -- but doesn't hurt to have it in the test server)
- finally, the core of the jira issue:
o fix serialization bug: do not append zero sized data
o fix de-serialization bug: removed double insertion of packet "Marker and Size" header
#jira UE-38281 Quicklaunch UFE HTML5 fails to get COTF Header Size
Change 3225690 on 2016/12/07 by Dmitry.Rekman
Linux: improvements in touch support.
- Multiple fingers.
- Filtering out "moved" events from the same location.
- Consistent logging.
(Edigrating 3225194 from Wombat to Dev-Platform)
Change 3225868 on 2016/12/07 by Josh.Stoddard
Gracefully handle delete without matching new on iOS & Mac
#jira UE-39395
Change 3226159 on 2016/12/07 by Omar.Rodriguez
UEPLAT-1423 WEX: Improved virtual keyboard for Android
* Renamed old virtual keyboard functions by adding "Dialog" suffix to the name
* Added new virtual keyboard functions that use InputMethodManager to show/hide keyboard
* Hide the virtual keyboard, if shown, onPause
* Slate edit box decides which functions to call for showing/hiding keyboard
- eventually will be based on command line parameter like in IOS
#jira UEPLAT-1423
Change 3226167 on 2016/12/07 by Dmitry.Rekman
Allow running as root on ARM.
(Edigrating 3204974 to Dev-Platform)
Change 3226168 on 2016/12/07 by Dmitry.Rekman
Print current CVar value when denying an override.
(Based on CL 3205476).
Change 3226169 on 2016/12/07 by Dmitry.Rekman
Allow enabling sound (if disabled by default).
(Based on CL 3205505)
Change 3226171 on 2016/12/07 by Dmitry.Rekman
Allow running from symlinks.
(Edigrating 3205518 to Dev-Platform).
Change 3226174 on 2016/12/07 by Dmitry.Rekman
Linux: do not init SDL audio (we do not use it anyway).
(Based on CL 3205505).
Change 3226327 on 2016/12/07 by Nick.Shin
fix CIS warning
#jira UE-38281 Quicklaunch UFE HTML5 fails to get COTF Header Size
Change 3226506 on 2016/12/08 by Dmitry.Rekman
Fix one more case-sensitive misspelling (UE-39030).
- Submitted as part of PR #2976.
Change 3226542 on 2016/12/08 by Dmitry.Rekman
Linux: fix weirdness with tesselation in GL4 (UE-32865).
- Workaround by CengizT. Proper fix tracked as UE-39489.
Change 3226570 on 2016/12/08 by Dmitry.Rekman
Fix for ar failing due to too long command line (UE-39009).
- Based on PR #2973.
Change 3226575 on 2016/12/08 by Dmitry.Rekman
Add build-essential to dependencies (UE-39053).
- PR #2981 contributed by cpyarger.
Change 3227129 on 2016/12/08 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Fixed up a deferred GL error as well
Fixed some copyrights of files not in main
Change 3227260 on 2016/12/08 by Omar.Rodriguez
UE-39140 Projects with iCloud are failing provisioning check when code signing.
* Set default value of bEnableCloudKitSupport to False
* Set value of get-task-allow to true only on non-distribution builds
* Only write out the entitlements file if changes have been made
#jira UE-39140
Change 3229312 on 2016/12/09 by Dmitry.Rekman
Fix missing responses (UE-39572).
- Proper implementation of UE-39009.
Change 3230849 on 2016/12/12 by Dmitry.Rekman
Linux: fixed Android packaging (UE-39635).
- Misspelled case; fixed by JohnHenry Carawon.
#jira UE-39635
Change 3231591 on 2016/12/12 by Peter.Sauerbrei
fix for splash screen not being turned off by default
#jira UE-39591
Change 3231880 on 2016/12/12 by Josh.Adams
- Fixing StaticAnalysis warnings, but -enablecodeanalysis stopped working for some reason, and the /Zm thing has hit me really hard, so this is a hopeful checkin for static analysis issues
#jira UE-39680
Change 3232816 on 2016/12/13 by Dmitry.Rekman
Linux: fix for CEF (UE-39682)
- Fix by Cengiz.Terzibas.
Change 3232873 on 2016/12/13 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3232933 on 2016/12/13 by Josh.Adams
- Missed the files that were needed to fix up after merge from main, but didn';t come from main
Change 3233066 on 2016/12/13 by Ben.Marsh
UBT: Ignore exception if PATH variable contains invalid characters when looking for XGE.
Change 3233512 on 2016/12/13 by Ben.Marsh
Fix static analysis warnings.
[CL 3233813 by Josh Adams in Main branch]
2016-12-13 19:47:16 -05:00
Context . Response . AddHeader ( "Access-Control-Allow-Origin" , "*" ) ;
2015-06-04 17:21:16 -04:00
Context . Response . ContentType = MimeType ;
Context . Response . ContentLength64 = buffer . Length ;
Context . Response . OutputStream . Write ( buffer , 0 , buffer . Length ) ;
Context . Response . Close ( ) ;
}
}
2015-07-27 09:36:38 -04:00
else
{
string RequestedFile = Root + Context . Request . Url . LocalPath ;
System . Console . WriteLine ( "Not Serving " + RequestedFile ) ;
string Response = "<html>\n" +
"<body>\n" +
"<h2>404 Not Found</h2>\n" +
"</html>\n" ;
byte [ ] buf = Encoding . UTF8 . GetBytes ( Response ) ;
Context . Response . ContentLength64 = buf . Length ;
Context . Response . StatusCode = ( int ) HttpStatusCode . NotFound ;
Context . Response . ContentType = "text/html" ;
Context . Response . OutputStream . Write ( buf , 0 , buf . Length ) ;
Context . Response . Close ( ) ;
}
2015-06-04 17:21:16 -04:00
}
public void Stop ( )
{
WebServer . Stop ( ) ;
WebServer . Close ( ) ;
}
}
class ArgumentName : Attribute
{
public string Name ;
public ArgumentName ( string _Name )
{
Name = _Name ;
}
}
class DefaultArgument : Attribute
{
public string Value ;
public DefaultArgument ( string _Value )
{
Value = _Value ;
}
}
// Various command line options supported.
class Arguments
{
// if this is set - This browser is spawned and the web server blocks till the browser quits.
// if this not set - Just the server starts up and waits for key to quit.
[ArgumentName("-Browser="), DefaultArgument("")]
public string Browser
{
get ;
set ;
}
[ArgumentName("-ServerRoot="), DefaultArgument("./")]
public string ServerRoot
{
get ;
set ;
}
[ArgumentName("-ServerPort="), DefaultArgument("8000")]
public string ServerPort
{
get ;
set ;
}
[ArgumentName("-BrowserCommandLine="), DefaultArgument("")]
public string BrowserCommandLine
{
get ;
set ;
}
2015-07-05 22:57:28 -04:00
[ArgumentName("-UseAllPrefixes="), DefaultArgument("FALSE")]
public string UseAllPrefixes
{
get ;
set ;
}
2015-06-04 17:21:16 -04:00
public Arguments ( )
{ }
public bool Parse ( string [ ] args )
{
PropertyInfo [ ] Infos = typeof ( Arguments ) . GetProperties ( ) ;
foreach ( var Info in Infos )
{
object [ ] Attributes = Info . GetCustomAttributes ( false ) ;
string Name = null ;
string DefaultValue = null ;
foreach ( var Att in Attributes )
{
if ( Att . GetType ( ) = = typeof ( ArgumentName ) )
{
Name = ( Att as ArgumentName ) . Name ;
}
if ( Att . GetType ( ) = = typeof ( DefaultArgument ) )
{
DefaultValue = ( Att as DefaultArgument ) . Value ;
}
}
bool found = false ;
foreach ( var arg in args )
{
if ( arg . StartsWith ( Name ) )
{
string val = arg . Replace ( Name , "" ) ;
Info . SetValue ( this , val ) ;
found = true ;
break ;
}
}
if ( ! found & & DefaultValue ! = null )
{
Info . SetValue ( this , DefaultValue ) ;
}
else if ( ! found & & DefaultValue = = null )
{
return false ;
}
}
return true ;
}
public void ShowParsedValues ( )
{
PropertyInfo [ ] Infos = typeof ( Arguments ) . GetProperties ( ) ;
foreach ( var Info in Infos )
{
object [ ] Attributes = Info . GetCustomAttributes ( false ) ;
string Name = null ;
foreach ( var Att in Attributes )
{
if ( Att . GetType ( ) = = typeof ( ArgumentName ) )
{
Name = ( Att as ArgumentName ) . Name ;
}
}
if ( Info . GetValue ( this ) ! = null )
{
System . Console . WriteLine ( "Name: " + Name + " " + Info . GetValue ( this ) . ToString ( ) ) ;
}
}
}
public void ShowAllOptions ( )
{
PropertyInfo [ ] Infos = typeof ( Arguments ) . GetProperties ( ) ;
foreach ( var Info in Infos )
{
object [ ] Attributes = Info . GetCustomAttributes ( false ) ;
string Name = null ;
string DefaultValue = null ;
foreach ( var Att in Attributes )
{
if ( Att . GetType ( ) = = typeof ( ArgumentName ) )
{
Name = ( Att as ArgumentName ) . Name ;
}
if ( Att . GetType ( ) = = typeof ( DefaultArgument ) )
{
DefaultValue = ( Att as DefaultArgument ) . Value ;
}
}
System . Console . WriteLine ( "Option: {0}, Default Value {1}" , Name , DefaultValue = = null ? " None, this option is required " : DefaultValue ) ;
}
}
}
2015-02-20 04:41:01 -05:00
class Program
{
static private List < Process > ProcessesToKill = new List < Process > ( ) ;
static private List < Process > ProcessesToWatch = new List < Process > ( ) ;
2015-05-15 09:03:27 -04:00
static bool IsRunningOnMac ( )
{
PlatformID Platform = Environment . OSVersion . Platform ;
switch ( Platform )
{
case PlatformID . Unix :
return System . IO . File . Exists ( "/System/Library/CoreServices/SystemVersion.plist" ) ;
case PlatformID . MacOSX :
return true ;
}
return false ;
}
2015-02-20 04:41:01 -05:00
static Process SpawnBrowserProcess ( string bpath , string args )
{
2015-07-05 22:57:28 -04:00
var bIsSafari = bpath . Contains ( "Safari" ) ;
2015-02-20 04:41:01 -05:00
var Result = new Process ( ) ;
2015-05-15 09:03:27 -04:00
if ( IsRunningOnMac ( ) )
2015-02-20 04:41:01 -05:00
{
2015-07-05 22:57:28 -04:00
string BrowserArgs = bIsSafari ? "" : args ;
2015-02-20 04:41:01 -05:00
Result . StartInfo . FileName = "/usr/bin/open" ;
Result . StartInfo . UseShellExecute = false ;
Result . StartInfo . RedirectStandardOutput = true ;
Result . StartInfo . RedirectStandardInput = true ;
2015-07-05 22:57:28 -04:00
Result . StartInfo . Arguments = String . Format ( "-nW \"{0}\" --args {1}" , bpath , BrowserArgs ) ;
2015-02-20 04:41:01 -05:00
Result . EnableRaisingEvents = true ;
}
else
{
Result . StartInfo . FileName = bpath ;
Result . StartInfo . UseShellExecute = false ;
Result . StartInfo . RedirectStandardOutput = true ;
Result . StartInfo . RedirectStandardInput = true ;
Result . StartInfo . Arguments = args ;
Result . EnableRaisingEvents = true ;
}
2015-07-05 22:57:28 -04:00
Result . Start ( ) ;
2015-02-20 04:41:01 -05:00
if ( bIsSafari )
{
// Give Safari time to open...
2015-07-05 22:57:28 -04:00
System . Threading . Thread . Sleep ( 1500 ) ;
2015-02-20 04:41:01 -05:00
var Proc = new Process ( ) ;
Proc . StartInfo . FileName = "/usr/bin/osascript" ;
Proc . StartInfo . UseShellExecute = false ;
Proc . StartInfo . RedirectStandardOutput = true ;
Proc . StartInfo . RedirectStandardInput = true ;
2015-07-05 22:57:28 -04:00
Proc . StartInfo . Arguments = String . Format ( "-e 'tell application \"Safari\" to open location \"{0}\"'" , args ) ;
2015-02-20 04:41:01 -05:00
Proc . EnableRaisingEvents = true ;
Proc . Start ( ) ;
2015-06-04 17:21:16 -04:00
Proc . WaitForExit ( ) ;
2015-02-20 04:41:01 -05:00
}
2015-07-05 22:57:28 -04:00
2015-06-04 17:21:16 -04:00
System . Console . WriteLine ( "Spawning Browser Process {0} with args {1}\n" , bpath , args ) ;
return Result ;
}
static void SpawnBrowserAndBlock ( Arguments Args )
{
// Browsers can be multiprocess programs (Chrome, basically)
bool bMultiprocessBrowser = Args . Browser . Contains ( "chrome" ) ;
// so we need to catch spawning of other child processes. The trick is
// they aren't really child-processes at all. There appears to be no real binding between the two,
// So we kind of fudged it a bit here.
var PrevProcesses = Process . GetProcesses ( ) ;
var FirstProcess = SpawnBrowserProcess ( Args . Browser , Args . BrowserCommandLine ) ;
ProcessesToWatch . Add ( FirstProcess ) ;
var ProcName = FirstProcess . ProcessName ;
2015-02-20 04:41:01 -05:00
// We should now have a list of processes to watch to exit.
// Loop over the calling WaitForExit() until the list is empty.
while ( ProcessesToWatch . Count ( ) > 0 )
{
for ( var i = 0 ; i < ProcessesToWatch . Count ( ) ; + + i )
{
if ( ProcessesToWatch [ i ] . HasExited )
{
ProcessesToWatch . RemoveAt ( i ) ;
}
}
if ( bMultiprocessBrowser & & FirstProcess ! = null & & FirstProcess . HasExited )
{
var CurrentProcesses = Process . GetProcesses ( ) ;
foreach ( var item in CurrentProcesses )
{
var bWasAlive = false ;
foreach ( var pitem in PrevProcesses )
{
if ( pitem . Id = = item . Id )
{
bWasAlive = true ;
}
}
if ( ! bWasAlive )
{
2015-06-04 17:21:16 -04:00
try
{
2015-02-20 04:41:01 -05:00
if ( ! item . HasExited & & item . ProcessName . StartsWith ( ProcName ) )
{
var PID = item . Id ;
System . Console . WriteLine ( "Found Process {0} with PID {1} which started at {2}. Waiting on that process to end." , item . ProcessName , item . Id , item . StartTime . ToString ( ) ) ;
ProcessesToWatch . Add ( item ) ;
}
2015-06-04 17:21:16 -04:00
}
catch { }
2015-02-20 04:41:01 -05:00
}
}
FirstProcess = null ;
}
2015-06-04 13:19:17 -04:00
// It is considered an error if any service processes have died.
2015-02-20 04:41:01 -05:00
foreach ( var proc in ProcessesToKill )
{
if ( proc . HasExited )
{
System . Console . WriteLine ( "A spawned thread has died. Do you have a python server instance running?" ) ;
HardShutdown ( ) ;
}
}
System . Threading . Thread . Sleep ( 250 ) ;
}
System . Console . WriteLine ( "All processes being watched have exited.\n" ) ;
2015-06-04 13:19:17 -04:00
// All processes we cared about have finished, So it is time to clean up the services we spawned for them.
2015-02-20 04:41:01 -05:00
foreach ( var proc in ProcessesToKill )
{
if ( ! proc . HasExited )
{
System . Console . WriteLine ( "Killing spawned process {0}.\n" , proc . Id ) ;
proc . Kill ( ) ;
proc . WaitForExit ( ) ;
}
}
}
static void HardShutdown ( )
{
foreach ( var proc in ProcessesToKill )
{
if ( ! proc . HasExited )
{
proc . Kill ( ) ;
proc . WaitForExit ( ) ;
}
}
foreach ( var proc in ProcessesToWatch )
{
if ( ! proc . HasExited )
{
proc . Kill ( ) ;
proc . WaitForExit ( ) ;
}
}
}
2015-06-04 17:21:16 -04:00
static int Main ( string [ ] args )
2015-02-20 04:41:01 -05:00
{
2017-06-26 14:43:08 -04:00
System . Console . WriteLine ( "Version: 20170623" ) ; // date: YYYYMMDD - needed to help figure out what version QA is running...
Copying //UE4/Dev-Mobile to //UE4/Main (Source: //UE4/Dev-Mobile @ 3600060)
#rb none
#lockdown nick.penwarden
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3292215 on 2017/02/08 by Nick.Shin
HTML5 emscripten: wasm and wbegl2 support
- emscripten toolchain
#jira UEPLAT-1437 Switch [to] web assembly
#rb none
Change 3293994 on 2017/02/09 by Nick.Shin
HTML5 emscripten: wasm and webgl2 support
- OSX toolchain
#jira UEPLAT-1437 Switch [to] web assembly
#rb none
Change 3317951 on 2017/02/22 by Nick.Shin
HTML5 emscripten: wasm & webgl2 support - RC1
- emscripten toolchain
WARNING: emscripten/incoming/source/include/libc/bit (the file) might need to be deleted first
#jira UEMOB-263 Switch [to] web assembly
#jira UEMOB-201 Support ES3 / WebGL2 in HTML5
#rb none
Change 3318669 on 2017/02/23 by Nick.Shin
HTML5 emscripten: wasm & webgl2 support - RC1
- OSX toolchain
#jira UEMOB-263 Switch [to] web assembly
#jira UEMOB-201 Support ES3 / WebGL2 in HTML5
#rb none
Change 3462146 on 2017/05/26 by Nick.Shin
HTML5 - merge from Release-4.16 to Dev-Mobile
#jira none
#rb none
#rnx
Change 3504996 on 2017/06/22 by Cosmin.Sulea
UEMOB-362 - Add per-texture and per-format compression quality override settings
#rb Dmitriy.Dyomin
#jira UEMOB-362
#codereview Dmitriy.Dyomin
#codereview Jack.Porter
Change 3505056 on 2017/06/22 by Cosmin.Sulea
Back out changelist 3504996 - due to errors generated in xboxOne, PS4 and Switch versions
#rb none
Change 3508049 on 2017/06/23 by Nick.Shin
HTML5 toolchain notes corrections
#jira none
#rb none
#rnx
Change 3508663 on 2017/06/24 by Nick.Shin
HTML5LaunchHelper.exe on linux - redo
- it seems that i need to also check-in the exe and pdb file instead of having CIS make and checking-in them itself...
- modified c# program to output a version number to help track which version of HTML5LaunchHelper is running...
#jira UE-45302 HTML5LaunchHelper.exe hosts the files in the current working directory on Linux
#rnx
#rb none
Change 3509210 on 2017/06/26 by Dmitriy.Dyomin
ExposureScale will be applied during tonemap pass when MobileHDR is on
#rb jack.porter
#codereview Allan.Bentham
Change 3511058 on 2017/06/27 by Cosmin.Sulea
UEMOB-362 - Add per-texture and per-format compression quality override settings - resubmitted
#rb Dmitriy.Dyomin
#jira UEMOB-362
#codereview Dmitriy.Dyomin
Change 3511069 on 2017/06/27 by Jack.Porter
PS4, XboxOne and Switch fixes for changes to ITextureFormat interface
#rb Dmitriy.Dyomin
#jira UEMOB-362
Change 3513028 on 2017/06/28 by Jack.Porter
Merging //UE4/Dev-Main to Dev-Mobile (//UE4/Dev-Mobile)
#rb None
Change 3517409 on 2017/06/30 by Jack.Porter
Merging //UE4/Dev-Main to Dev-Mobile (//UE4/Dev-Mobile)
#rb None
Change 3517730 on 2017/06/30 by Cosmin.Sulea
UEMOB-328 - Improve handling of iOS signing key on remote Mac system keychain when using remote toolchain
#rb Jack.Porter
#jira UEMOB-328
#codereview: peter.sauerbrei
Change 3517757 on 2017/06/30 by Cosmin.Sulea
UE-46245 - Building with remote toolchain does not use Project Setting for iOS signing identity which can cause signing errors
#rb Jack.Porter
#jira UE-46245
#codereview: peter.sauerbrei
Change 3518149 on 2017/06/30 by Adrian.Chelu
UE-43035 Tilt axis for X and Z are not consistent between Android and iOS devices
#rb Jack.Porter
#jira UE-46245
#codereview: Chris Babcock <chris.babcock@epicgames.com>
Change 3524242 on 2017/07/06 by Nick.Shin
HTML5 - refraction shader
note: this CL also contains fixes to webgl2 [float4 vs half2] and a [% vs Mod()] material custom function changes to some TM-ShaderModels shaders
specifically: fixes to and similar with: DitherTemporalAA
#jria UE-46434 No Refraction in QA Game TM-Shadermodels HTML5
#rb none
#rn
#codereview jack.porter dmitriy.dyomin
Change 3535295 on 2017/07/13 by Allan.Bentham
#jira UEMOB-390
Add Android cpu stats.
add 'stat AndroidCPU' to android's console spinner UI.
increase GetCPUState's core count support to 16.
#jira UE-45888
Use cvar value to limit android cpu stat update rate.
#rb none
Change 3535306 on 2017/07/13 by Allan.Bentham
Add missing pragma once
#rb none
Change 3537047 on 2017/07/13 by Ben.Marsh
Fixing case of iOS directories, pt1
#rb none
Change 3537051 on 2017/07/13 by Ben.Marsh
Fixing case of iOS directories, pt2
#rb none
Change 3537373 on 2017/07/14 by Allan.Bentham
Add scope level android egl error verification.
work around minor issue with invalid egl config property.
#rb chris.babcock
Change 3541735 on 2017/07/18 by Allan.Bentham
Add 'sustained performance mode' support for API 24+ devices.
#jira UEMOB-386
#rb chris.babcock
Change 3543001 on 2017/07/18 by Sorin.Gradinaru
#jira UE-45766 Improved Virtual Keyboard cannot receive non-English characters.
- for Android, add an native EditBox above the virtual keyboard to receive the text and pass it to the object from the slate
#rb Chris.Babcock
Change 3554399 on 2017/07/25 by Nick.Shin
STATS disabled for non multi-threaded platforms
#jira UE-47485 ( Pri:1 - 4.18 ) Crash running Stat Command test in TM-Core on Firefox
#rnx
#rb none
Change 3554402 on 2017/07/25 by Nick.Shin
STATS TaskGraph disabled for non multi-threaded platforms
#jira UE-47486 ( Pri:1 - 4.18 ) QAGame hard locks on Firefox when triggering Task Graph Benchmark test
#rb none
#rnx
Change 3556957 on 2017/07/26 by Nick.Shin
HTML5 - WASM enabled by default - part 1 -- commenting out asmjs stuff
begin sunsetting ASM.JS
note to self: CL#3462146 "backout" asmjs
#jira UEMOB-416 WASM enabled by default
#rnx
#rb none
Change 3557654 on 2017/07/26 by Nick.Shin
HTML5 - WASM enabled by default - part 2 -- remove asmjs code
sunsetting ASM.JS
note to self: CL#3462146 "backout" asmjs
#jira UEMOB-416 WASM enabled by default
#rn
#rb none
Change 3557910 on 2017/07/27 by Jack.Porter
Support Client configuration when packaging in the editor
#jira UE-39973
#rb Dmitriy.Dyomin
Change 3557917 on 2017/07/27 by Jack.Porter
Missing file from CL 3557910
#rb trivial
Change 3559642 on 2017/07/27 by Nick.Shin
STATS TaskGraph disabled for non multi-threaded platforms
- both "LockFree stress test" and "task graph benchmark" are disabled - no multi-threading for WASM exist yet (note: ASM.JS has been sunsetted)
- stat command crash "fixed" - but, font size are totally broken - i can look at this (much) later...
- new bug: physx will crash on "gc and level load stress test" -- please bug this as a new jira
#jira UE-47486 ( Pri:1 - 4.18 ) QAGame hard locks on Firefox when triggering Task Graph Benchmark test
#rb none
#rnx
Change 3565656 on 2017/07/31 by Dmitriy.Dyomin
Added a way to lock level position in Word Composition
#jira UE-47713
#rb none
Change 3565757 on 2017/08/01 by Dmitriy.Dyomin
compile fix
#rb none
Change 3567446 on 2017/08/01 by Chris.Babcock
Allow addElement and addElements to only insert once with once="true" attribute in UPL
#jira UE-47951
#ue4
#android
#rb Peter.Sauerbrei
Change 3567592 on 2017/08/01 by Chris.Babcock
Use absolute path for repositories for Gradle
#jira UE-47952
#ue4
#android
#rb Tim.Lincoln
Change 3568690 on 2017/08/02 by Chris.Babcock
Removed warnings for once attribute in UPL
#ue4
#android
#rb none
Change 3569975 on 2017/08/02 by Chris.Babcock
Add <baseBuildGradleAdditions> to UPL to allow additions to the root-level build.gradle
#jira UE-47995
#ue4
#android
#rb Tim.Lincoln
Change 3570117 on 2017/08/02 by Chris.Babcock
Add <setBoolFromPropertyContains> to UPL
- sets bool to true if string list in ini matches contains attribute
#jira UE-47996
#ue4
#android
#rb Jack.Porter
Change 3571552 on 2017/08/03 by Chris.Babcock
Removed unneeded settings.gradle file (generated)
#jira UE-48041
#ue4
#android
#rb none
Change 3572224 on 2017/08/04 by Dmitriy.Dyomin
Better selection tracking in world composition
#rb none
Change 3573662 on 2017/08/04 by Nick.Shin
HTML5 remove PreLoadMap "feature" (was only available/used with HTML5)
- asyncronous loads are not allowed during UEngine::LoadMap()
- the files/code will be repurposed for pakfile CHUNK support
#jira UEMOB-425 HTML5 streaming content investigation (part 1 of 2)
#rn
#rb none
Change 3574471 on 2017/08/07 by Dmitriy.Dyomin
Export ULevelStreamingKismet::LoadLevelInstance function
#rb none
Change 3576262 on 2017/08/08 by Dmitriy.Dyomin
Fixed: widget clipping issues in world composition
#rb none
Change 3576845 on 2017/08/08 by Nick.Shin
set HTML5LaunchHelper application's icon to UE4.ico
#jira UE-19225 HTML5LaunchHelper application does not have an unreal icon
#rb none
#rnx
Change 3578313 on 2017/08/09 by Dmitriy.Dyomin
Added: an RHI call to invalidate/clear cached state, RHIInvalidateCachedState
#jira UEMOB-435
#rb jack.porter
Change 3578364 on 2017/08/09 by Dmitriy.Dyomin
Vertex Fog is disabled on mobile by default. If scene uses vertex fog - Mobile preview and device will show on screen message: PROJECT HAS VERTEX FOG ON MOBILE DISABLED
This saves about 90 instructions in VS and a few in PS
#jira UEMOB-166
#rb jack.porter
Change 3578703 on 2017/08/09 by Nick.Shin
set HTML5LaunchHelper application's icon to UE4.ico
forgot to check in exe and pdb file
#jira UE-19225 HTML5LaunchHelper application does not have an unreal icon
#rb none
#rnx
Change 3578961 on 2017/08/09 by Peter.Sauerbrei
deprecate IOS 8 as the minimum OS supported.
#jira UEMOB-429
#rb chris.babcock
Change 3579319 on 2017/08/09 by Peter.Sauerbrei
fixes for compile errors with Xcode 9 beta 4
#rb none
Change 3579356 on 2017/08/09 by Peter.Sauerbrei
modified minimum IOS to build with
#rb chris.babcock
Change 3579687 on 2017/08/09 by Chris.Babcock
Fix GoogleVR Gradle packaging
#jira UE-48239
#ue4
#android
#rb none
Change 3579921 on 2017/08/10 by Dmitriy.Dyomin
GitHub 3670 : More zoom levels for World Composition (300)
#contributedby: user37337
#jira UE-45977
#3670
#rb none
Change 3580576 on 2017/08/10 by Peter.Sauerbrei
detection of iPad Pro 10.5 and IPad Pro 12.9 (2nd Gen)
#rb chris.babcock
Change 3580611 on 2017/08/10 by Chris.Babcock
Set online provider back to GooglePlay and remove forcing IAP permission (contributed by umerov1999)
#jira UE-48185
#PR #3876
#ue4
#android
#rb Peter.Sauerbrei
Change 3582166 on 2017/08/11 by Nick.Shin
nuke PLATFORM_HTML5_WIN32
PLATFORM_HTML5_WIN32 code removal tested successfully with (force rebuild and repackaging):
* Win64 server (WindowsServer)
* Win64 client (WindowsNoEditor)
* HTML5 client
all playing together via websocket net driver (i've attached a screen shot of this in jira)
code changes touches: physics, audio and main build files
#jira UEMOB-433 Remove Win32 SDL "HTML5 Simulator" code
#rb ben.marsh
#rnx
#codereview josh.adams
#fyi ori.cohen, aaron.mclera
Change 3582474 on 2017/08/11 by Chris.Babcock
Don't use V2 signing for Gear VR APKs
#jira UE-48354
#ue4
#android
#rb Peter.Sauerbrei
Change 3582614 on 2017/08/11 by Chris.Babcock
Filter out unneeded architectures from APK for Gradle builds
#jira UE-48355
#ue4
#android
#rb Peter.Sauerbrei
Change 3582923 on 2017/08/11 by Nick.Shin
backport release 4.17 to dev-mobile
#jira none
#rb none
#rnx
Change 3582924 on 2017/08/11 by Nick.Shin
FNetworkFileServerHttp - error gracefully when port is already in use
#jira UE-46409 [CrashReport] Assertion on Mac: Could not create a libwebsocket - FNetworkFileServerHttp::Init()
#rnx
#rb none
Change 3582925 on 2017/08/11 by Nick.Shin
HTML5 - turn off pak file compression in favor of gzip packages
#jira UE-46729 HTML5 - on shipping builds - turn off pak file compression in favor of gzip packages
#rn
#rb none
Change 3583943 on 2017/08/14 by Cosmin.Sulea
UEMOB-363 - second iteration - Project wide texture quality control by texture group
#rb Dmitriy Dyomin
#jira UEMOB-363
Change 3583967 on 2017/08/14 by Cosmin.Sulea
Back out changelist 3583943
#rb none
Change 3584121 on 2017/08/14 by Peter.Sauerbrei
fix for mac compile failure
#rb none
Change 3587877 on 2017/08/15 by Peter.Sauerbrei
josh's suggested fix is not working for Xcode 8.3, so brute forcing for now
#rb none
Change 3588612 on 2017/08/15 by Peter.Sauerbrei
Xcode 9 project compatbility updates
#rb chris.babcock
#codereview michael.trepka
Change 3589223 on 2017/08/15 by Dmitriy.Dyomin
Fixed: bNavigationAutoUpdateEnabled was not always working when reopeinig the map
Fixed: Navigation Build was not clearing some mesh tiles when bNavigationAutoUpdateEnabled is enabled
Fixed: Streaming out a level in editor was not always updating NavMesh debug draw
#rb lukasz.furman
Change 3589900 on 2017/08/16 by Dmitriy.Dyomin
Support vulkan validation layers on Android, only in Debug and Development configuration (requires r.Vulkan.EnableValidation=1)
#codereview chris.babcock, rolando.caloca
#rb none
Change 3590592 on 2017/08/16 by Nick.Shin
HTML5 emscripten 1.37.19 OSX
#jira UE-47813
#rb none
#rn HTML5 emscripten 1.37.19 OSX
Change 3590597 on 2017/08/16 by Nick.Shin
HTML5 emscripten 1.37.19 Linux
#jira UE-47813
#rb none
#rn HTML5 emscripten 1.37.19 Linux
Change 3590624 on 2017/08/16 by Nick.Shin
HTML5 emscripten 1.37.19 toolchain
#jira UE-47813
#rb none
#rn HTML5 emscripten 1.37.19 toolchain
Change 3591720 on 2017/08/16 by Chris.Babcock
Enable Gradle by default and add button to accept Android SDK license to project settings
#jira UE-48519
#ue4
#android
#rb Tim.Lincoln
#fyi Peter.Sauerbrei
Change 3591998 on 2017/08/16 by Chris.Babcock
Fix nonunity build
#ue4
#android
#rb none
Change 3592407 on 2017/08/17 by Nick.Shin
HTML5 emscripten 1.37.19 Win64
#jira UE-47813
#rb none
#rn HTML5 emscripten 1.37.19 Win64
Change 3592479 on 2017/08/17 by Nick.Shin
HTML5 3rd Party Libs - compiled with emscripten 1.37.19
#jira UE-47813
#rb none
#rn HTML5 3rd Party Libs - compiled with emscripten 1.37.19 toolchain
Change 3592480 on 2017/08/17 by Nick.Shin
HTML5 emscripten 1.37.19 toolchain Epic edits
as well as setting UE4 HTML c# scripts to use new toolchain
#jira UE-47813
#rb none
#rn HTML5 emscripten 1.37.19 toolchain Epic edits
Change 3592481 on 2017/08/17 by Nick.Shin
HTML5 remove old emscripten toolchain
#jira UE-47813
#rb none
#rn HTML5 remove old emscripten toolchain
Change 3592485 on 2017/08/17 by Nick.Shin
HTML5 undo CanUseXGE - this might be breaking CIS for HTML5 builds...
#jira UE-47813
#rb none
#rnx
Change 3592549 on 2017/08/17 by Dmitriy.Dyomin
Added GetDiskTotalAndFreeSpace for IOS and Android
#jira UE-46479
#codereview chris.babcock, peter.sauerbrei
#rb none
Change 3594045 on 2017/08/17 by Peter.Sauerbrei
comment about potential failure case in the remote tool chain
#rb none
Change 3594342 on 2017/08/17 by Peter.Sauerbrei
Merging
//UE4/Main/...
to //UE4/Dev-Mobile/...
#rb none
Change 3594920 on 2017/08/17 by Peter.Sauerbrei
fix for non-unity builds (accidentally merged something incorrectly)
#rb none
Change 3595347 on 2017/08/17 by Chris.Babcock
merge fixes for Android
#ue4
#android
#rb Peter.Sauerbrei
#lockdown Peter.Sauerbrei
Change 3595752 on 2017/08/17 by Chris.Babcock
Update Facebook plugin to support Gradle
#jira UE-48569
#ue4
#android
#fyi Josh.Markiewicz
#rb none
#lockdown Peter.Sauerbrei
Change 3595849 on 2017/08/17 by Chris.Babcock
Fix issue with libovrplatformloader.so for non armv7 targets
#jira UE-48533
#ue4
#android
#rb none
#lockdown Peter.Sauerbrei
Change 3596419 on 2017/08/18 by Peter.Sauerbrei
fix for Mac Editor build failure
#rb none
Change 3597023 on 2017/08/18 by Peter.Sauerbrei
fix for game editor build failure
#rb none
Change 3597032 on 2017/08/18 by Peter.Sauerbrei
fix for app bundle id in Info-Editor.plist
#rb none
Change 3597034 on 2017/08/18 by Peter.Sauerbrei
put back the info.plist, found the real problem
#rb none
Change 3597197 on 2017/08/18 by Peter.Sauerbrei
pull Info.plist from the build products
#rb none
[CL 3600450 by Chris Babcock in Main branch]
2017-08-21 15:05:19 -04:00
var Args = new Arguments ( ) ;
2015-06-04 17:21:16 -04:00
if ( Args . Parse ( args ) )
2015-02-20 04:41:01 -05:00
{
2017-06-16 20:17:59 -04:00
string cwd = Directory . GetCurrentDirectory ( ) ;
if ( Args . ServerRoot . Equals ( "./" ) & & cwd . Equals ( "/" ) ) // UE-45302
{
string path = System . IO . Path . GetDirectoryName ( System . Reflection . Assembly . GetExecutingAssembly ( ) . GetName ( ) . CodeBase ) . Replace ( "file:" , "" ) ;
Directory . SetCurrentDirectory ( path ) ;
}
2015-06-04 17:21:16 -04:00
Args . ShowParsedValues ( ) ;
}
else
{
System . Console . WriteLine ( "Incorrect Command line Options.. Exiting" ) ;
Args . ShowAllOptions ( ) ;
return 0 ;
2015-02-20 04:41:01 -05:00
}
2015-07-05 22:57:28 -04:00
var Server = new HttpServer ( Convert . ToInt32 ( Args . ServerPort ) , Args . ServerRoot , Args . UseAllPrefixes = = "FALSE" ? false : true ) ;
2015-06-04 17:21:16 -04:00
Server . Run ( ) ;
if ( Args . Browser ! = "" )
{
2015-06-18 11:06:19 -04:00
if ( ( ! File . Exists ( Args . Browser ) & & ! IsRunningOnMac ( ) ) | | ( ! Directory . Exists ( Args . Browser ) & & IsRunningOnMac ( ) ) )
2015-06-04 17:21:16 -04:00
{
System . Console . WriteLine ( "Browser Not found, Please check -Browser= option" ) ;
return 0 ;
}
SpawnBrowserAndBlock ( Args ) ;
}
else
{
System . Console . WriteLine ( "Press Any key Quit Server" ) ;
System . Console . ReadKey ( ) ;
}
Server . Stop ( ) ;
return 0 ;
2015-02-20 04:41:01 -05:00
}
2015-06-04 17:21:16 -04:00
2015-02-20 04:41:01 -05:00
}
}