Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions PayCheckServerLib/Jsons/ServerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public partial class CInDevFeatures
[JsonProperty("UsePWInsteadSteamToken")]
public bool UsePWInsteadSteamToken { get; set; }

[JsonProperty("GiveMeMoneyCheat", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
public int GiveMeMoney { get; set; } = 0;

[JsonProperty("UseBasicWeaponTable")]
public bool UseBasicWeaponTable { get; set; }
}
Expand Down
4 changes: 2 additions & 2 deletions PayCheckServerLib/Responses/CloudSave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public static bool GetUserCloudSaveEntry(HttpRequest _, ServerStruct serverStruc
Namespace = serverStruct.Parameters["namespace"],
Key = serverStruct.Parameters["key"],
SetBy = "CLIENT",
//IsPublic = false,
//UserId = serverStruct.Parameters["userId"],
IsPublic = false,
UserId = serverStruct.Parameters["userId"],
CreatedAt = "0001-01-01T01:01:01.001Z00:00",
UpdatedAt = "0001-01-01T01:01:01.001Z00:00"
};
Expand Down
4 changes: 1 addition & 3 deletions PayCheckServerLib/Responses/Currency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ public static bool GetUserCurrency(HttpRequest request, ServerStruct serverStruc
// return fake data for now

ResponseCreator response = new ResponseCreator();
int balance = 0;
if (ConfigHelper.ServerConfig.InDevFeatures.GiveMeMoney > 0)
balance = ConfigHelper.ServerConfig.InDevFeatures.GiveMeMoney;
int balance = 0;
CurrencyJson currencyReponse = new()
{
Balance = balance,
Expand Down
4 changes: 0 additions & 4 deletions PayCheckServerLib/ServerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ public PayCheck3UrlNotHandledException(string method, string url)
public static void Pre()
{
Debugger.logger.Info("Lib Info: " + BranchHelper.GetBranch() + " - " + BranchHelper.GetBuildDate() + " " + BranchHelper.GetCommitId());
if (ConfigHelper.ServerConfig.InDevFeatures.GiveMeMoney > 0)
{
Debugger.PrintDebug("GiveMeMoney Cheat Activated");
}
if (ArgumentHandler.DebugAll)
DebugPrinter.PrintToConsole = true;
else
Expand Down
4 changes: 3 additions & 1 deletion PayCheckServerLib/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ public class Updater

public static void CheckForJsonUpdates(bool UIHandleUpdate = false)
{
return;
Dictionary<string, string> LocalFiles = new();
bool updateall = false;
if (!Directory.Exists("./Files"))
{
Debugger.PrintWarn("Files directory does not exist creating");
Directory.CreateDirectory("./Files");
}
Dictionary<string, string> LocalFiles = new();
foreach (var file in Directory.GetFiles("./Files"))
{
string hash = BitConverter.ToString(SHA256.HashData(File.ReadAllBytes(file))).Replace("-", "").ToLower();
Expand Down Expand Up @@ -120,6 +121,7 @@ public static void UpdateFile(string filesUrl, string key)

public static void DownloadBetaFiles()
{
return;
Dictionary<string, string> LocalFiles = new();
foreach (var file in Directory.GetFiles("./Files"))
{
Expand Down
Loading