Skip to content

Commit

Permalink
- Released version 1.1
Browse files Browse the repository at this point in the history
- Allow page to load local files (insecure, but no need http server)
  • Loading branch information
kkEngine committed Aug 12, 2024
1 parent ff10ffb commit dba8c90
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option(BUILD_AS_SHARED "Build as dll skse plugin else build as static lib" ON)

# Version
set(LIB_MAJOR_VERSION 1)
set(LIB_MINOR_VERSION 0)
set(LIB_MINOR_VERSION 1)
set(API_MAJOR_VERSION 1)
set(API_MINOR_VERSION 0)

Expand Down
2 changes: 1 addition & 1 deletion WinBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if (!$Work) {
$buildDir = mkdir -Force build
Set-Location $buildDir

cmake .. -DVCPKG_ROOT="F:\vcpkg"
cmake .. -DVCPKG_ROOT="F:\vcpkg" -DOUTPUT_PATH="F:/Steam/steamapps/common/Skyrim Special Edition_NirnLabUIPlatform"
cmake --build . --config Release --parallel 4
13 changes: 13 additions & 0 deletions WinBuildLocal.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
param($Work)

# restart PowerShell with -noexit, the same script, and 1
if (!$Work) {
powershell -noexit -file $MyInvocation.MyCommand.Path 1
return
}

$buildDir = mkdir -Force build
Set-Location $buildDir

cmake .. -DVCPKG_ROOT="F:\vcpkg" -UOUTPUT_PATH
cmake --build . --config Release --parallel 4
2 changes: 1 addition & 1 deletion WinInit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if (!$Work) {
$buildDir = mkdir -Force build
Set-Location $buildDir

cmake .. -DVCPKG_ROOT="F:\vcpkg"
cmake .. -DVCPKG_ROOT="F:\vcpkg" -DOUTPUT_PATH="F:/Steam/steamapps/common/Skyrim Special Edition_NirnLabUIPlatform"
4 changes: 4 additions & 0 deletions src/UIPlatform/CEF/NirnLabCefApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ namespace NL::CEF
// requiring the muted attribute or user interaction
command_line->AppendSwitchWithValue("autoplay-policy", "no-user-gesture-required");

// Allow local files
command_line->AppendSwitch("allow-file-access-from-files");
command_line->AppendSwitch("allow-insecure-localhost");

// https://chromium.googlesource.com/chromium/src/+/main/docs/process_model_and_site_isolation.md
command_line->AppendSwitch("disable-site-isolation-for-policy");
command_line->AppendSwitch("disable-site-isolation-trials");
Expand Down
4 changes: 2 additions & 2 deletions src/UIPlatform/NirnLabUIPlatformAPI/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
namespace NL::UI::LibVersion
{
inline constexpr std::uint32_t MAJOR = 1;
inline constexpr std::uint32_t MINOR = 0;
inline constexpr std::uint32_t MINOR = 1;
inline constexpr auto PROJECT_NAME = "NirnLabUIPlatform";

inline constexpr auto MAJOR_MULT = 100000;
inline constexpr auto AS_STRING = "1.0";
inline constexpr auto AS_STRING = "1.1";
inline constexpr std::uint32_t AS_INT = (static_cast<std::uint32_t>(MAJOR * MAJOR_MULT + MINOR));

inline std::uint32_t GetMajorVersion(std::uint32_t a_version)
Expand Down
4 changes: 2 additions & 2 deletions src/UIPlatformTest/NirnLabUIPlatformAPI/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
namespace NL::UI::LibVersion
{
inline constexpr std::uint32_t MAJOR = 1;
inline constexpr std::uint32_t MINOR = 0;
inline constexpr std::uint32_t MINOR = 1;
inline constexpr auto PROJECT_NAME = "NirnLabUIPlatform";

inline constexpr auto MAJOR_MULT = 100000;
inline constexpr auto AS_STRING = "1.0";
inline constexpr auto AS_STRING = "1.1";
inline constexpr std::uint32_t AS_INT = (static_cast<std::uint32_t>(MAJOR * MAJOR_MULT + MINOR));

inline std::uint32_t GetMajorVersion(std::uint32_t a_version)
Expand Down

0 comments on commit dba8c90

Please sign in to comment.