feat: Updated file paths and build artifacts
All checks were successful
Build / Build (push) Successful in 30s
All checks were successful
Build / Build (push) Successful in 30s
This commit updates file paths and build artifacts for the ArmaRAMDb extension. Specifically, the following changes were made: * **Main.cs:** * Defined `DEFAULT_ARDB_PATH` to store the default path for the ARDB file. * Updated `ARDB_LOGFOLDER` to use `Path.DirectorySeparatorChar` for cross-platform compatibility. * Used `DEFAULT_ARDB_PATH` when checking for the existence of the ARDB file. * **RAMDb.cs:** * Removed the `DEFAULT_ARDB_PATH` constant. * Modified the constructor to accept an optional `ardbPath` parameter and use `Main.DEFAULT_ARDB_PATH` as the default if none is provided. * **Build Artifacts:** * Updated the `ArmaRAMDb_x64.dll` and `ArmaRAMDb_x64.so` files in the extension/bin/Release/net8.0/win-x64/publish and extension/bin/Release/net8.0/linux-x64/publish directories, as well as the root directory.
This commit is contained in:
parent
ab6c65216e
commit
3af3adeec6
Binary file not shown.
BIN
ArmaRAMDb_x64.so
BIN
ArmaRAMDb_x64.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -19,7 +19,8 @@ namespace ArmaRAMDb
|
||||
{
|
||||
private const string ARDB_VERSION = "1.0.0";
|
||||
public const int ARDB_BUFFERSIZE = 1024;
|
||||
public static string ARDB_LOGFOLDER { get; private set; } = "\\@ramdb\\logs";
|
||||
public static readonly string DEFAULT_ARDB_PATH = $"@ramdb{Path.DirectorySeparatorChar}ArmaRAMDb.ardb";
|
||||
public static string ARDB_LOGFOLDER { get; private set; } = $"{Path.DirectorySeparatorChar}@ramdb{Path.DirectorySeparatorChar}logs";
|
||||
public static bool ARDB_DEBUG {get; private set; } = false;
|
||||
public static bool ARDB_INITCHECK {get; private set; } = false;
|
||||
public static string STEAMID {get; private set; } = "";
|
||||
@ -83,7 +84,7 @@ namespace ArmaRAMDb
|
||||
|
||||
// First, load any existing RDB file
|
||||
var db = new RAMDb();
|
||||
if (File.Exists(Path.Combine(Environment.CurrentDirectory, RAMDb.DEFAULT_ARDB_PATH)))
|
||||
if (File.Exists(Path.Combine(Environment.CurrentDirectory, DEFAULT_ARDB_PATH)))
|
||||
{
|
||||
db.ImportFromArdb();
|
||||
ARDB_ISLOADED = true;
|
||||
|
@ -4,10 +4,9 @@ using System.Collections.Concurrent;
|
||||
namespace ArmaRAMDb
|
||||
#pragma warning restore IDE0130 // Namespace does not match folder structure
|
||||
{
|
||||
internal class RAMDb(string ardbPath = RAMDb.DEFAULT_ARDB_PATH) : IDisposable
|
||||
internal class RAMDb(string ardbPath = null) : IDisposable
|
||||
{
|
||||
public const string DEFAULT_ARDB_PATH = "@ramdb\\ArmaRAMDb.ardb";
|
||||
private readonly string _ardbPath = Path.Combine(Environment.CurrentDirectory, ardbPath);
|
||||
private readonly string _ardbPath = Path.Combine(Environment.CurrentDirectory, ardbPath ?? Main.DEFAULT_ARDB_PATH);
|
||||
public static readonly ConcurrentDictionary<string, string> _keyValues = new();
|
||||
public static readonly ConcurrentDictionary<string, ConcurrentDictionary<string, string>> _hashTables = new();
|
||||
public static readonly ConcurrentDictionary<string, List<string>> _lists = new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user