forked from CosmosOS/Cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugged a bunch of classes and implemented a few ilops. Removed most …
…of Path plugs.
- Loading branch information
1 parent
87da5be
commit b6d95e1
Showing
24 changed files
with
1,370 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Cosmos.IL2CPU.Plugs; | ||
|
||
namespace Cosmos.Core.Plugs.System.IO | ||
{ | ||
[Plug(TargetName = "System.IO.PathHelper")] | ||
public static class PathHelperImpl | ||
{ | ||
public static unsafe int GetFullPathName(ref object aThis, | ||
[FieldAccess(Name = "System.Char* System.IO.PathHelper.m_arrayPtr")] ref char* aArrayPtr) | ||
{ | ||
int xLength = 0; | ||
while (*aArrayPtr != '\0') | ||
{ | ||
xLength++; | ||
aArrayPtr++; | ||
} | ||
return xLength; | ||
} | ||
|
||
public static bool TryExpandShortFileName(ref object aThis) | ||
{ | ||
return true; | ||
} | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
source/Cosmos.Core.Plugs/System/Runtime/InteropServices/MarshalImpl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Cosmos.IL2CPU.Plugs; | ||
|
||
namespace Cosmos.Core.Plugs.System.Runtime.InteropServices | ||
{ | ||
[Plug(Target = typeof(global::System.Runtime.InteropServices.Marshal))] | ||
public static class MarshalImpl | ||
{ | ||
public static void CCtor() | ||
{ | ||
} | ||
|
||
public static int GetLastWin32Error() | ||
{ | ||
return 0; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.