Skip to content

Commit

Permalink
fix : logger issue where a log was presenjt to many times
Browse files Browse the repository at this point in the history
  • Loading branch information
PierroD committed Jan 28, 2024
1 parent 7161229 commit 22e2086
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions LINDRA - Market/LINDRA - Market/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.4.8.0")]
[assembly: AssemblyFileVersion("2.4.8.0")]
[assembly: AssemblyVersion("2.4.9.0")]
[assembly: AssemblyFileVersion("2.4.9.0")]
4 changes: 2 additions & 2 deletions LINDRA - Market/LINDRA - Market/Utils/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace LINDRA___Market.Utils
public static class AppSettings
{
public static bool isDarkMode { get; set; } = false;
public static string version { get; set; } = "2.4.8";
public static string latestVersion { get; set; } = "2.4.8";
public static string version { get; set; } = "2.4.9";
public static string latestVersion { get; set; } = "2.4.9";
}
}
12 changes: 9 additions & 3 deletions LINDRA - Market/LINDRA - Market/form/FpsUnlocker/fps_unlocker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public partial class fps_unlocker : Form
Form parent;
private string[] allowedSafeAreaGames = { "iw4mp", "iw5mp" };
private string previousGame = "";
private bool safeAreaPreviousState = false;
public fps_unlocker(Form parent)
{
InitializeComponent();
Expand Down Expand Up @@ -53,8 +54,13 @@ private void fps_unlocker_Load(object sender, EventArgs e)
private bool isGameAllowed(string gameName)
{
Log.setFunctionPassedThrough();
Log.Infos("isGame :", gameName, "AllowedToUseSafeArea :", allowedSafeAreaGames.Contains(gameName));
return allowedSafeAreaGames.Contains(gameName);
bool isGameAllwed = allowedSafeAreaGames.Contains(gameName);
if (buttonArea.Visible != safeAreaPreviousState)
{
safeAreaPreviousState = isGameAllwed;
Log.Infos("isGame :", gameName, "AllowedToUseSafeArea :", allowedSafeAreaGames.Contains(gameName));
}
return isGameAllwed;
}
private void loadColorTheme()
{
Expand Down Expand Up @@ -110,7 +116,7 @@ private void timerGame_Tick(object sender, EventArgs e)
string gameName = COD.GameName();
if (previousGame != gameName && gameName != null)
{
Log.Infos("Previous Game", previousGame, "Game Name", gameName);
Log.Trace("Previous Game", previousGame, "Game Name", gameName);
buttonArea.Visible = isGameAllowed(gameName);
}
if (COD.checkGame())
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Call of Duty FPS unlocker Market, is the latest version of my FPS Unlocker, if y

# Installation guide

- [Download the lastest version](https://raw.githubusercontent.com/PierroD/Market/main/_updates/Market%20v2.4.8.zip) - (check if some updates are needed)
- [Download the lastest version](https://raw.githubusercontent.com/PierroD/Market/main/_updates/Market%20v2.4.9.zip) - (check if some updates are needed)
- Unzip the archive somehere on your computer
- Start `LINDRA - Market.exe`
- Enjoy :smiley:
Expand Down
2 changes: 1 addition & 1 deletion _readmes/lastestVersion.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.8
2.4.9
4 changes: 4 additions & 0 deletions _readmes/updateChanges.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v2.4.9
- Fix Logger issue where the log files were to big, [Read FAQ](https://github.com/PierroD/Market/blob/main/_readmes/FAQ.md)
- **Please be sure to delete all the files in the log folder to gain some harddrive space**

### v2.4.8
- Add a logger (if you face any issue you will be able to send a trace log of your session), [Read FAQ](https://github.com/PierroD/Market/blob/main/_readmes/FAQ.md)

Expand Down
2 changes: 1 addition & 1 deletion _readmes/updateDownload.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://raw.githubusercontent.com/PierroD/Market/main/_updates/Market%20v2.4.8.zip
https://raw.githubusercontent.com/PierroD/Market/main/_updates/Market%20v2.4.9.zip
Binary file added _updates/Market v2.4.9.zip
Binary file not shown.

0 comments on commit 22e2086

Please sign in to comment.