mirror of
https://github.com/islehorse/HISP.git
synced 2025-07-20 05:51:33 +12:00
Port N00BS to linux
This commit is contained in:
parent
64fed1c6c4
commit
8297c56f21
181 changed files with 282 additions and 132 deletions
0
HorseIsleServer/LibHISP/Game/AbuseReport.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/AbuseReport.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Arena.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Arena.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Book.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Book.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/Chat.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/Chat.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/Command.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/Command.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/CommandRegister.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/CommandRegister.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/SocialType.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Chat/SocialType.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/IsleCardTradingGame.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/IsleCardTradingGame.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/ModsRevenge.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/ModsRevenge.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/RandomEvent.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/RandomEvent.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/RealTimeQuiz.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/RealTimeQuiz.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/RealTimeRiddle.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/RealTimeRiddle.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/TackShopGiveaway.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/TackShopGiveaway.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/WaterBalloonGame.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Events/WaterBalloonGame.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/GameExceptions.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/GameExceptions.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/HorseInfo.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/HorseInfo.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/HorseInstance.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/HorseInstance.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/Leaser.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/Leaser.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/WildHorse.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Horse/WildHorse.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/HorseInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/HorseInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/IInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/IInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/InventoryItem.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/InventoryItem.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/PlayerInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/PlayerInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/ShopInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Inventory/ShopInventory.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/DroppedItems.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/DroppedItems.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/Item.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/Item.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/ItemInstance.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/ItemInstance.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/Tack.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Items/Tack.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Map.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Map.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Messages.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Messages.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Meta.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Meta.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Multiroom.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Multiroom.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Npc.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Npc.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Quest.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Quest.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Ranch.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Ranch.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Riddler.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Riddler.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Auction.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Auction.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Barn.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Barn.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Farrier.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Farrier.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Groomer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Groomer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Inn.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Inn.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Pawneer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Pawneer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Shop.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Shop.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Trainer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Trainer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Transport.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Transport.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Vet.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Vet.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Workshop.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Services/Workshop.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/SwfModules/Brickpoet.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/SwfModules/Brickpoet.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/SwfModules/Drawingroom.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/SwfModules/Drawingroom.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/SwfModules/Dressup.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/SwfModules/Dressup.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Tracking.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Tracking.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Treasure.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/Treasure.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/TwoPlayer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/TwoPlayer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/World.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Game/World.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/LibHISP.csproj
Normal file → Executable file
0
HorseIsleServer/LibHISP/LibHISP.csproj
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Award.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Award.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Dance.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Dance.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Equips/CompetitionGear.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Equips/CompetitionGear.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Equips/Jewelry.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Equips/Jewelry.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Friends.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Friends.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Highscore.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Highscore.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Mailbox.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Mailbox.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/MutedPlayers.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/MutedPlayers.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/PlayerQuests.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/PlayerQuests.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/TrackedQuest.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/TrackedQuest.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Trade.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/Trade.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/User.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Player/User.cs
Normal file → Executable file
4
HorseIsleServer/LibHISP/Properties/AssemblyInfo.cs
Normal file → Executable file
4
HorseIsleServer/LibHISP/Properties/AssemblyInfo.cs
Normal file → Executable file
|
@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
|
|||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.7.110.0")]
|
||||
[assembly: AssemblyFileVersion("1.7.110.0")]
|
||||
[assembly: AssemblyVersion("1.7.112.0")]
|
||||
[assembly: AssemblyFileVersion("1.7.112.0")]
|
||||
|
|
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/AndroidARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Linux64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Linux64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/LinuxARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/LinuxARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/LinuxARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/LinuxARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Osx64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Osx64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/OsxARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/OsxARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Win32.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Win32.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Win64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/Win64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/WinARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/WinARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/WinARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/WinARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/iOSARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/iOSARM.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/iOSARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/PublishProfiles/iOSARM64.pubxml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/Resources.Designer.cs
generated
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/Resources.Designer.cs
generated
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/Resources.resx
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/Resources.resx
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/launchSettings.json
Normal file → Executable file
0
HorseIsleServer/LibHISP/Properties/launchSettings.json
Normal file → Executable file
0
HorseIsleServer/LibHISP/Resources/default_cross_domain.xml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Resources/default_cross_domain.xml
Normal file → Executable file
0
HorseIsleServer/LibHISP/Resources/server.properties
Normal file → Executable file
0
HorseIsleServer/LibHISP/Resources/server.properties
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/Authentication.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/Authentication.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/BBCode.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/BBCode.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/CrossDomainPolicy.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/CrossDomainPolicy.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/RandomID.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Security/RandomID.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/ConfigReader.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/ConfigReader.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/DataFixerUpper.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/DataFixerUpper.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/Database.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/Database.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/Entry.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/Entry.cs
Normal file → Executable file
19
HorseIsleServer/LibHISP/Server/GameClient.cs
Normal file → Executable file
19
HorseIsleServer/LibHISP/Server/GameClient.cs
Normal file → Executable file
|
@ -113,13 +113,18 @@ namespace HISP.Server
|
|||
}
|
||||
public static void CreateClient(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
do
|
||||
{
|
||||
Socket eSocket = e.AcceptSocket;
|
||||
if(eSocket != null)
|
||||
new GameClient(eSocket);
|
||||
e.AcceptSocket = null;
|
||||
} while (!GameServer.ServerSocket.AcceptAsync(e));
|
||||
try{
|
||||
do
|
||||
{
|
||||
Socket eSocket = e.AcceptSocket;
|
||||
if(eSocket != null)
|
||||
new GameClient(eSocket);
|
||||
e.AcceptSocket = null;
|
||||
|
||||
if(GameServer.ServerSocket == null)
|
||||
return;
|
||||
} while (!GameServer.ServerSocket.AcceptAsync(e));
|
||||
}catch(ObjectDisposedException) {} // server shutdown
|
||||
}
|
||||
private void timeoutTimerTick(object state)
|
||||
{
|
||||
|
|
0
HorseIsleServer/LibHISP/Server/GameDataJson.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/GameDataJson.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/GameServer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/GameServer.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/Logger.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/Logger.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/PacketBuilder.cs
Normal file → Executable file
0
HorseIsleServer/LibHISP/Server/PacketBuilder.cs
Normal file → Executable file
144
HorseIsleServer/LibHISP/Server/ServerVersion.cs
Normal file → Executable file
144
HorseIsleServer/LibHISP/Server/ServerVersion.cs
Normal file → Executable file
|
@ -1,78 +1,78 @@
|
|||
using System;
|
||||
using System.Globalization;
|
||||
using HISP.Properties;
|
||||
|
||||
namespace HISP.Server
|
||||
{
|
||||
public class ServerVersion
|
||||
{
|
||||
|
||||
public static string PRODUCT = "HISP";
|
||||
|
||||
public static string GetArchitecture()
|
||||
{
|
||||
#if ARCH_ANYCPU
|
||||
return "ANYCPU";
|
||||
#elif ARCH_X86_64
|
||||
return "x86_64";
|
||||
#elif ARCH_X86
|
||||
return "x86";
|
||||
#elif ARCH_ARM
|
||||
return "ARM";
|
||||
#elif ARCH_ARM64
|
||||
return "ARM64";
|
||||
#else
|
||||
return "UNK_ARCH";
|
||||
#endif
|
||||
}
|
||||
public static string GetPlatform()
|
||||
{
|
||||
#if OS_DEBUG
|
||||
return "DEBUG";
|
||||
#elif OS_WINDOWS
|
||||
return "WINDOWS";
|
||||
#elif OS_ANDROID
|
||||
return "ANDROID";
|
||||
#elif OS_IOS
|
||||
return "IOS";
|
||||
#elif OS_LINUX
|
||||
return "LINUX";
|
||||
#elif OS_MACOS
|
||||
return "MACOS";
|
||||
#else
|
||||
return "UNK_PLATFORM";
|
||||
#endif
|
||||
|
||||
}
|
||||
public static string GetVersionString()
|
||||
{
|
||||
return Resources.GitTag.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBranch()
|
||||
{
|
||||
return Resources.GitBranch.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBuildDate()
|
||||
{
|
||||
return Resources.BuildDate.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBuildTime()
|
||||
{
|
||||
return Resources.BuildTime.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
|
||||
|
||||
namespace HISP.Server
|
||||
{
|
||||
public class ServerVersion
|
||||
{
|
||||
|
||||
public static string PRODUCT = "HISP";
|
||||
|
||||
public static string GetArchitecture()
|
||||
{
|
||||
#if ARCH_ANYCPU
|
||||
return "ANYCPU";
|
||||
#elif ARCH_X86_64
|
||||
return "x86_64";
|
||||
#elif ARCH_X86
|
||||
return "x86";
|
||||
#elif ARCH_ARM
|
||||
return "ARM";
|
||||
#elif ARCH_ARM64
|
||||
return "ARM64";
|
||||
#else
|
||||
return "UNK_ARCH";
|
||||
#endif
|
||||
}
|
||||
public static string GetPlatform()
|
||||
{
|
||||
#if OS_DEBUG
|
||||
return "DEBUG";
|
||||
#elif OS_WINDOWS
|
||||
return "WINDOWS";
|
||||
#elif OS_ANDROID
|
||||
return "ANDROID";
|
||||
#elif OS_IOS
|
||||
return "IOS";
|
||||
#elif OS_LINUX
|
||||
return "LINUX";
|
||||
#elif OS_MACOS
|
||||
return "MACOS";
|
||||
#else
|
||||
return "UNK_PLATFORM";
|
||||
#endif
|
||||
|
||||
}
|
||||
public static string GetVersionString()
|
||||
{
|
||||
return Resources.GitTag.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBranch()
|
||||
{
|
||||
return Resources.GitBranch.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBuildDate()
|
||||
{
|
||||
return Resources.BuildDate.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBuildTime()
|
||||
{
|
||||
return Resources.BuildTime.Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
|
||||
public static string GetCommitHashVersion()
|
||||
{
|
||||
return UInt16.Parse(Resources.GitCommit.Substring(0, 4), NumberStyles.HexNumber).ToString();
|
||||
}
|
||||
|
||||
public static string GetCommitHash(int TotalBytes)
|
||||
{
|
||||
return Resources.GitCommit.Substring(0, TotalBytes).Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBuildString()
|
||||
{
|
||||
return PRODUCT + " " + GetVersionString() + " " + GetBranch() + "@" + GetCommitHash(6) + " (" + GetArchitecture() + "; " + GetPlatform() + "); Built @ " + GetBuildDate() + " " + GetBuildTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetCommitHash(int TotalBytes)
|
||||
{
|
||||
return Resources.GitCommit.Substring(0, TotalBytes).Replace("\r", "").Replace("\n", "").ToString().Trim();
|
||||
}
|
||||
public static string GetBuildString()
|
||||
{
|
||||
return PRODUCT + " " + GetVersionString() + " " + GetBranch() + "@" + GetCommitHash(6) + " (" + GetArchitecture() + "; " + GetPlatform() + "); Built @ " + GetBuildDate() + " " + GetBuildTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue