Skip to content

Commit

Permalink
إصلاح بعض الأخطاء التي ظهرت في windows
Browse files Browse the repository at this point in the history
تم إصلاح خلل ظهر في جلب المسار الخاص بالملف الذي سيتم تنفيذه
إصلاح بنية ملفات visual studio
  • Loading branch information
Shad7ows committed Aug 9, 2024
1 parent 5e1a058 commit 012f69a
Show file tree
Hide file tree
Showing 10 changed files with 728 additions and 382 deletions.
2 changes: 1 addition & 1 deletion source/Alif/alif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static AlifIntT alifMain_runFileObj(AlifObject* _pn, AlifObject* _fn, AlifIntT _
(const char*)((AlifUStrObject*)_pn)->UTF,
(const char*)((AlifUStrObject*)_fn)->UTF,
errno, "لا يوجد ملف او مسار بهذا الاسم");
return -2;
return 2;
}

if (_skipFirstLine) {
Expand Down
3 changes: 3 additions & 0 deletions source/AlifCore/Objects/InitConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ static AlifIntT run_absPathFilename(AlifConfig* _config) {
result = GetFullPathNameW(filename, ALIF_ARRAY_LENGTH(wOutBuf), wOutBuf, nullptr);
if (!result) return -1;

wOutBufP = (wchar_t*)alifMem_dataAlloc(result * sizeof(wchar_t));
result = GetFullPathNameW(filename, result, wOutBufP, nullptr);

absFilename = (wchar_t*)alifMem_dataAlloc(result * sizeof(wchar_t));
memcpy(absFilename, wOutBuf, result * sizeof(wchar_t));
#else
Expand Down
5 changes: 4 additions & 1 deletion winBuild/Alif.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.7.34009.444
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{776C81C7-34B9-4940-85F8-EC256AF6567A}"
ProjectSection(SolutionItems) = preProject
..\.editorconfig = ..\.editorconfig
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "alif", "Alif.vcxproj", "{6F25B086-E62D-482D-832F-C548413D585C}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AlifCore", "AlifGeneral.vcxproj", "{8604DB0E-C2A6-49F6-BE9B-755878FDA8F8}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AlifCore", "AlifCore.vcxproj", "{8604DB0E-C2A6-49F6-BE9B-755878FDA8F8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
5 changes: 1 addition & 4 deletions winBuild/Alif.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,10 @@
<ClCompile Include="..\source\Alif\alif.cpp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="AlifGeneral.vcxproj">
<ProjectReference Include="AlifCore.vcxproj">
<Project>{8604db0e-c2a6-49f6-be9b-755878fda8f8}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="..\.editorconfig" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
3 changes: 0 additions & 3 deletions winBuild/Alif.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,4 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\.editorconfig" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
202 changes: 185 additions & 17 deletions winBuild/AlifCore.vcxproj

Large diffs are not rendered by default.

Loading

0 comments on commit 012f69a

Please sign in to comment.