Josh Engebretson 10 years ago
parent
commit
a827e03d50
2 changed files with 24 additions and 2 deletions
  1. 9 1
      Source/Atomic/UI/TBUI.cpp
  2. 15 1
      Source/AtomicEditor/Source/Build/BuildWindows.cpp

+ 9 - 1
Source/Atomic/UI/TBUI.cpp

@@ -498,7 +498,7 @@ static bool InvokeShortcut(int key, SPECIAL_KEY special_key, MODIFIER_KEYS modif
 #else
 #else
     bool shortcut_key = (modifierkeys & TB_CTRL) ? true : false;
     bool shortcut_key = (modifierkeys & TB_CTRL) ? true : false;
 #endif
 #endif
-    if (!TBWidget::focused_widget || !down || !shortcut_key)
+    if (!TBWidget::focused_widget || !down || (!shortcut_key && special_key ==TB_KEY_UNDEFINED))
         return false;
         return false;
     bool reverse_key = (modifierkeys & TB_SHIFT) ? true : false;
     bool reverse_key = (modifierkeys & TB_SHIFT) ? true : false;
     int upper_key = toupr_ascii(key);
     int upper_key = toupr_ascii(key);
@@ -528,10 +528,18 @@ static bool InvokeShortcut(int key, SPECIAL_KEY special_key, MODIFIER_KEYS modif
         id = TBIDC("close");
         id = TBIDC("close");
     else if (upper_key == 'F')
     else if (upper_key == 'F')
         id = TBIDC("find");
         id = TBIDC("find");
+ #ifdef ATOMIC_PLATFORM_OSX
     else if (upper_key == 'G' && (modifierkeys & TB_SHIFT))
     else if (upper_key == 'G' && (modifierkeys & TB_SHIFT))
         id = TBIDC("findprev");
         id = TBIDC("findprev");
     else if (upper_key == 'G')
     else if (upper_key == 'G')
         id = TBIDC("findnext");
         id = TBIDC("findnext");
+#else
+    else if (special_key == TB_KEY_F3 && (modifierkeys & TB_SHIFT))
+        id = TBIDC("findprev");
+    else if (special_key == TB_KEY_F3)
+        id = TBIDC("findnext");
+
+#endif
     else if (upper_key == 'P')
     else if (upper_key == 'P')
         id = TBIDC("play");
         id = TBIDC("play");
     else if (upper_key == 'I')
     else if (upper_key == 'I')

+ 15 - 1
Source/AtomicEditor/Source/Build/BuildWindows.cpp

@@ -8,6 +8,7 @@
 #include "../Project/AEProject.h"
 #include "../Project/AEProject.h"
 
 
 #include "../Project/ProjectUtils.h"
 #include "../Project/ProjectUtils.h"
+#include "License/AELicenseSystem.h"
 
 
 #include "BuildSystem.h"
 #include "BuildSystem.h"
 #include "BuildWindows.h"
 #include "BuildWindows.h"
@@ -54,6 +55,20 @@ void BuildWindows::Build(const String& buildPath)
 
 
     Initialize();
     Initialize();
 
 
+    BuildSystem* buildSystem = GetSubsystem<BuildSystem>();
+
+// BEGIN LICENSE MANAGEMENT
+    LicenseSystem *licenseSystem = GetSubsystem<LicenseSystem>();
+    if (licenseSystem->IsStandardLicense())
+    {
+        if (containsMDL_)
+        {
+            buildSystem->BuildComplete(AE_PLATFORM_WINDOWS, buildPath_, false, true);
+            return;
+        }
+    }
+// END LICENSE MANAGEMENT
+
     FileSystem* fileSystem = GetSubsystem<FileSystem>();
     FileSystem* fileSystem = GetSubsystem<FileSystem>();
     if (fileSystem->DirExists(buildPath_))
     if (fileSystem->DirExists(buildPath_))
         fileSystem->RemoveDir(buildPath_, true);
         fileSystem->RemoveDir(buildPath_, true);
@@ -74,7 +89,6 @@ void BuildWindows::Build(const String& buildPath)
 
 
     fileSystem->Copy(buildSourceDir + "/AtomicPlayer.exe", buildPath_ + "/AtomicPlayer.exe");
     fileSystem->Copy(buildSourceDir + "/AtomicPlayer.exe", buildPath_ + "/AtomicPlayer.exe");
 
 
-    BuildSystem* buildSystem = GetSubsystem<BuildSystem>();
     buildSystem->BuildComplete(AE_PLATFORM_WINDOWS, buildPath_);
     buildSystem->BuildComplete(AE_PLATFORM_WINDOWS, buildPath_);
 
 
 }
 }