Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SSECK Fixes for support 1.6.438 #29

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
94db174
[SSECK]
Perchik71 Jul 5, 2022
75259a4
[SSECK]
Perchik71 Jul 5, 2022
c2ee111
[SSECK]
Perchik71 Jul 6, 2022
805210f
[SSECK]
Perchik71 Jul 7, 2022
0f77241
[SSECK]
Perchik71 Jul 15, 2022
67f7336
[SSECK]
Perchik71 Jul 15, 2022
c3c7acd
[SSECK]
Perchik71 Jul 23, 2022
c523ed6
[SSECK]
Perchik71 Jul 24, 2022
566c36f
[CKFixes]
Perchik71 Dec 18, 2022
4aa9b8c
[CKFixes]
Perchik71 Dec 18, 2022
f5b65dc
[CKFixes]
Perchik71 Dec 19, 2022
7184b45
[CKFixes]
Perchik71 Dec 22, 2022
977a21d
[CKFixes]
Perchik71 Dec 23, 2022
7836999
[CKFixes]
Perchik71 Dec 24, 2022
11625a8
[CKFixes]
Perchik71 Dec 24, 2022
e2c1952
Merge branch 'dev'
Perchik71 Dec 26, 2022
09ffb43
[SSECK]
Perchik71 Mar 3, 2023
a6d5618
[SSECK]
Perchik71 Mar 16, 2023
1afc3e7
[SSECK]
Perchik71 Mar 17, 2023
945b442
SSECK
Perchik71 Jul 18, 2023
ec5f8cb
[SSECK]
Perchik71 Jul 21, 2023
ce51309
[SSECK]
Perchik71 Jul 22, 2023
6cefa7c
[SSECK]
Perchik71 Jul 30, 2023
f616380
Merge branch 'master' of https://github.com/Perchik71/SkyrimSETest
Perchik71 Jul 30, 2023
046028c
[SSECK]
Perchik71 Aug 10, 2023
4508017
[SSECK]
Perchik71 Aug 10, 2023
d1fd573
[SSECK]
Perchik71 Aug 29, 2023
74d1f27
[SSECK]
Perchik71 Aug 31, 2023
67977cc
[SSECK]
Perchik71 Aug 31, 2023
2e6fae5
[SSECK]
Perchik71 Sep 18, 2023
0239c79
[SSECK]
Perchik71 Sep 18, 2023
bd4d625
[SSECK]
Perchik71 Nov 3, 2023
d36a22d
[SSECK]
Perchik71 Nov 3, 2023
a5e8732
[SSECK]
Perchik71 Nov 3, 2023
8050516
[SSECK]
Perchik71 Nov 3, 2023
52e0949
[SSECK]
Perchik71 Nov 3, 2023
2148a5d
[SSECK]
Perchik71 Nov 5, 2023
78764fe
[SSECK]
Perchik71 Nov 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
path = Dependencies/imgui
url = https://github.com/ocornut/imgui.git
branch = viewport
[submodule "Dependencies/tracy"]
path = Dependencies/tracy
url=https://github.com/Nukem9/tracy-skyrim64-custom.git
branch = master
[submodule "Dependencies/meshoptimizer"]
path = Dependencies/meshoptimizer
url = https://github.com/zeux/meshoptimizer.git
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<Compiler Value="D:\Developers\IDE\Lazarus64\fpc\3.0.4\bin\x86_64-win64\fpc.exe" Date="1351329191"/>
<Params Value=" -Rintel -MObjFPC -Scghi -CX -WR -O3 -Xs -XX -l -vewnhibq -FiD:\Developers\Projects\Fallout4Test\Dependencies\UnicodePlugin\CreationKitUnicodePlugin\x86_64 -FuD:\Developers\IDE\Lazarus64\lcl\units\x86_64-win64 -FuD:\Developers\IDE\Lazarus64\components\lazutils\lib\x86_64-win64 -FuD:\Developers\IDE\Lazarus64\packager\units\x86_64-win64 -FuD:\Developers\Projects\Fallout4Test\Dependencies\UnicodePlugin\ -FUD:\Developers\Projects\Fallout4Test\Dependencies\UnicodePlugin\CreationKitUnicodePlugin\x86_64\ -FED:\Developers\Projects\Fallout4Test\Dependencies\UnicodePlugin\x86_64\ -oD:\Developers\Projects\Fallout4Test\Dependencies\UnicodePlugin\x86_64\CreationKitUnicodePlugin.dll UnicodePlugin.lpr"/>
</CONFIG>
Binary file not shown.
89 changes: 89 additions & 0 deletions Dependencies/UnicodePlugin/UnicodePlugin.lpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<General>
<Flags>
<MainUnitHasCreateFormStatements Value="False"/>
<MainUnitHasTitleStatement Value="False"/>
<MainUnitHasScaledStatement Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
<UseAppBundle Value="False"/>
<ResourceType Value="res"/>
</General>
<VersionInfo>
<UseVersionInfo Value="True"/>
<MajorVersionNr Value="1"/>
<StringTable CompanyName="perchik71" FileDescription="Plugin for Creation Kit Fallout 4 include supported UTF-8" InternalName="CreationKitUnicodePlugin" LegalCopyright="perchik71, 2020" LegalTrademarks="perchik71, 2020" OriginalFilename="CreationKitUnicodePlugin.dll" ProductName="Creation Kit Unicode Plugin" ProductVersion="1.0.0.0"/>
</VersionInfo>
<BuildModes Count="1">
<Item1 Name="Release" Default="True"/>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
<UseFileFilters Value="True"/>
</PublishOptions>
<RunParams>
<FormatVersion Value="2"/>
<Modes Count="0"/>
</RunParams>
<RequiredPackages Count="1">
<Item1>
<PackageName Value="LCLBase"/>
</Item1>
</RequiredPackages>
<Units Count="1">
<Unit0>
<Filename Value="UnicodePlugin.lpr"/>
<IsPartOfProject Value="True"/>
</Unit0>
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="$(TargetCPU)\CreationKitUnicodePlugin.dll"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="CreationKitUnicodePlugin\$(TargetCPU)"/>
</SearchPaths>
<Parsing>
<Style Value="1"/>
</Parsing>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
<RelocatableUnit Value="True"/>
<Optimizations>
<OptimizationLevel Value="3"/>
</Optimizations>
</CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<StripSymbols Value="True"/>
</Debugging>
<LinkSmart Value="True"/>
<Options>
<ExecutableType Value="Library"/>
</Options>
</Linking>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>
92 changes: 92 additions & 0 deletions Dependencies/UnicodePlugin/UnicodePlugin.lpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
library UnicodePlugin;

{$mode objfpc}{$H+}

uses
SysUtils,
Classes,
lazUtf8;

function IsUtf8(const AString: PAnsiChar): Boolean; stdcall; export;
begin
Result := False;
if Assigned(AString) then
Result := FindInvalidUTF8Codepoint(AString, StrLen(AString)) = -1;
end;

function AnsiToUTF8(const ASource: PAnsiChar; ADest: PAnsiChar): Integer;
stdcall; export;
var Utf8Str: Utf8String;
begin
Result := -1;
Utf8Str := WinCPToUTF8(RawByteString(ASource));
Result := Length(Utf8Str);
if Result = 0 then Exit;
if not Assigned(ADest) then
Result := Length(Utf8Str) + 1
else
StrLCopy(ADest, PAnsiChar(Utf8Str), Result);
end;

function UTF8ToAnsi(const ASource: PAnsiChar; ADest: PAnsiChar;
const ATestOnInvalid: Boolean): Integer;
stdcall; export;
var AnsiStr: RawByteString;
begin
Result := -1;
if ATestOnInvalid and
(FindInvalidUTF8Codepoint(ASource, Length(ASource)) <> -1) then Exit;
AnsiStr := UTF8ToWinCP(RawByteString(ASource));
Result := Length(AnsiStr);
if Result = 0 then Exit;
if not Assigned(ADest) then
Result := Length(AnsiStr) + 1
else
StrLCopy(ADest, PAnsiChar(AnsiStr), Result);
end;

function UTF8ToWide(const ASource: PAnsiChar; ADest: PWideChar;
const ATestOnInvalid: Boolean): Integer;
stdcall; export;
var WideStr: WideString;
begin
Result := -1;
if ATestOnInvalid and
(FindInvalidUTF8Codepoint(ASource, Length(ASource)) <> -1) then Exit;
WideStr := UTF8ToUTF16(RawByteString(ASource));
Result := Length(WideStr);
if Result = 0 then Exit;
if not Assigned(ADest) then
Result := Length(WideStr) + 1
else
StrLCopy(ADest, PWideChar(WideStr), Result);
end;

function WideToUTF8(const ASource: PWideChar; ADest: PAnsiChar): Integer;
stdcall; export;
var Utf8Str: Utf8String;
begin
Result := -1;
Utf8Str := UTF16ToUTF8(WideString(ASource));
Result := Length(Utf8Str);
if Result = 0 then Exit;
if not Assigned(ADest) then
Result := Length(Utf8Str) + 1
else
StrLCopy(ADest, PAnsiChar(Utf8Str), Result);
end;

{ exports }

exports
UTF8ToAnsi index 1,
AnsiToUTF8 index 2,
UTF8ToWide index 3,
WideToUTF8 index 4,
IsUtf8 index 5;

{$R *.res}

begin
end.

89 changes: 89 additions & 0 deletions Dependencies/UnicodePlugin/UnicodePlugin.lps
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectSession>
<PathDelim Value="\"/>
<Version Value="11"/>
<BuildModes Active="Release"/>
<Units Count="5">
<Unit0>
<Filename Value="UnicodePlugin.lpr"/>
<IsPartOfProject Value="True"/>
<IsVisibleTab Value="True"/>
<TopLine Value="24"/>
<CursorPos X="59" Y="31"/>
<UsageCount Value="21"/>
<Loaded Value="True"/>
</Unit0>
<Unit1>
<Filename Value="C:\Users\4918~1\AppData\Local\Temp\7zO4B219A28\CKUP_TranslatorString.pas"/>
<EditorIndex Value="-1"/>
<TopLine Value="223"/>
<CursorPos X="25" Y="248"/>
<UsageCount Value="10"/>
</Unit1>
<Unit2>
<Filename Value="C:\Users\4918~1\AppData\Local\Temp\7zO8822A4FD\CKUP_UnicodePlugin.pas"/>
<EditorIndex Value="-1"/>
<TopLine Value="123"/>
<UsageCount Value="10"/>
</Unit2>
<Unit3>
<Filename Value="..\..\..\..\IDE\Lazarus64\components\lazutils\lazutf8.pas"/>
<UnitName Value="LazUTF8"/>
<EditorIndex Value="-1"/>
<TopLine Value="119"/>
<CursorPos X="10" Y="134"/>
<UsageCount Value="10"/>
</Unit3>
<Unit4>
<Filename Value="C:\Users\4918~1\AppData\Local\Temp\7zO455EC0E2\CreationKitUnicodePlugin.lpr"/>
<EditorIndex Value="-1"/>
<TopLine Value="106"/>
<CursorPos X="75" Y="129"/>
<UsageCount Value="10"/>
</Unit4>
</Units>
<JumpHistory Count="9" HistoryIndex="8">
<Position1>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="13" Column="24"/>
</Position1>
<Position2>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="12" Column="37"/>
</Position2>
<Position3>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="13" Column="37"/>
</Position3>
<Position4>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="50" Column="13"/>
</Position4>
<Position5>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="13" Column="28"/>
</Position5>
<Position6>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="41" Column="50" TopLine="22"/>
</Position6>
<Position7>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="37" Column="60" TopLine="22"/>
</Position7>
<Position8>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="42" Column="35" TopLine="22"/>
</Position8>
<Position9>
<Filename Value="UnicodePlugin.lpr"/>
<Caret Line="45" Column="38" TopLine="19"/>
</Position9>
</JumpHistory>
<RunParams>
<FormatVersion Value="2"/>
<Modes Count="0" ActiveMode=""/>
</RunParams>
</ProjectSession>
</CONFIG>
Binary file added Dependencies/UnicodePlugin/UnicodePlugin.res
Binary file not shown.
Loading