maint: hotreload updated to 1.13.7
This commit is contained in:
@@ -8,8 +8,11 @@ using System.Net.NetworkInformation;
|
||||
using System.Net.Sockets;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using SingularityGroup.HotReload.Editor.Localization;
|
||||
using SingularityGroup.HotReload.Localization;
|
||||
using SingularityGroup.HotReload.Newtonsoft.Json;
|
||||
using UnityEditor;
|
||||
using Translations = SingularityGroup.HotReload.Editor.Localization.Translations;
|
||||
|
||||
namespace SingularityGroup.HotReload.Editor.Cli {
|
||||
[InitializeOnLoad]
|
||||
@@ -73,10 +76,9 @@ namespace SingularityGroup.HotReload.Editor.Cli {
|
||||
static bool TryGetStartArgs(string dataPath, bool exposeServerToNetwork, bool allAssetChanges, bool createNoWindow, bool isReleaseMode, bool detailedErrorReporting, LoginData loginData, int port, out StartArgs args) {
|
||||
string serverDir;
|
||||
if(!CliUtils.TryFindServerDir(out serverDir)) {
|
||||
Log.Warning($"Failed to start the Hot Reload Server. " +
|
||||
$"Unable to locate the 'Server' directory. " +
|
||||
$"Make sure the 'Server' directory is " +
|
||||
$"somewhere in the Assets folder inside a 'HotReload' folder or in the HotReload package");
|
||||
Log.Warning(string.Format(Translations.Errors.WarningFailedToStartServer,
|
||||
Translations.Utility.UnableToLocateServer +
|
||||
Translations.Utility.UnableToLocateServerDetail));
|
||||
args = null;
|
||||
return false;
|
||||
}
|
||||
@@ -100,11 +102,11 @@ namespace SingularityGroup.HotReload.Editor.Cli {
|
||||
var info = new DirectoryInfo(Path.GetFullPath("."));
|
||||
slnPath = Path.Combine(Path.GetFullPath("."), info.Name + ".sln");
|
||||
if (!File.Exists(slnPath)) {
|
||||
Log.Warning($"Failed to start the Hot Reload Server. Cannot find solution file. Please disable \"useBuiltInProjectGeneration\" in settings to enable custom project generation.");
|
||||
Log.Warning(string.Format(Translations.Errors.WarningFailedToStartServer, Translations.Utility.CannotFindSolutionFile));
|
||||
args = null;
|
||||
return false;
|
||||
}
|
||||
Log.Info("Using default project generation. If you encounter any problem with Unity's default project generation consider disabling it to use custom project generation.");
|
||||
Log.Info(Translations.Errors.InfoDefaultProjectGeneration);
|
||||
try {
|
||||
Directory.Delete(ProjectGeneration.ProjectGeneration.tempDir, true);
|
||||
} catch(Exception ex) {
|
||||
@@ -115,7 +117,7 @@ namespace SingularityGroup.HotReload.Editor.Cli {
|
||||
}
|
||||
|
||||
if (!File.Exists(slnPath)) {
|
||||
Log.Warning($"No .sln file found. Open any c# file to generate it so Hot Reload can work properly");
|
||||
Log.Warning(Translations.Errors.WarningNoSlnFileFound);
|
||||
}
|
||||
|
||||
var searchAssemblies = string.Join(";", CodePatcher.I.GetAssemblySearchPaths());
|
||||
@@ -207,10 +209,10 @@ namespace SingularityGroup.HotReload.Editor.Cli {
|
||||
PrepareBuildInfo(buildInfo);
|
||||
} catch (Exception e) {
|
||||
if (!didLogWarning) {
|
||||
Log.Warning($"Preparing build info failed! On-device functionality might not work. Exception: {e}");
|
||||
Log.Warning(string.Format(Translations.Errors.WarningPreparingBuildInfoFailed, e));
|
||||
didLogWarning = true;
|
||||
} else {
|
||||
Log.Debug($"Preparing build info failed! On-device functionality might not work. Exception: {e}");
|
||||
Log.Debug(string.Format(Translations.Utility.PreparingBuildInfoFailed, e));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user