diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-01 17:35:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-01 17:35:11 -0500 |
| commit | 00f2bfe1b1a0ab8a1162f6c17bc8b98f81dfedd2 (patch) | |
| tree | 0348bef8843ff8d843f57841ce0c064d0e804658 /src/slskd/Common | |
| parent | 92d48858aa02f4900b7fe695f2c23fa3e86c8d74 (diff) | |
| parent | 0da5a0155e3396f108a4a43e7670cba3fffc523a (diff) | |
| download | slskd-00f2bfe1b1a0ab8a1162f6c17bc8b98f81dfedd2.tar.gz | |
Merge pull request #669 from slskd/share-refactor
Refactor share logic
Diffstat (limited to 'src/slskd/Common')
| -rw-r--r-- | src/slskd/Common/CommonExtensions.cs | 5 | ||||
| -rw-r--r-- | src/slskd/Common/Sqlite.cs (renamed from src/slskd/Common/SqliteConnectionExtensions.cs) | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/slskd/Common/CommonExtensions.cs b/src/slskd/Common/CommonExtensions.cs index 9b6a3c6c..0998d44d 100644 --- a/src/slskd/Common/CommonExtensions.cs +++ b/src/slskd/Common/CommonExtensions.cs @@ -256,9 +256,12 @@ namespace slskd /// <summary> /// Converts the given path to the normalized format (normalizes path separators to backslashes). /// </summary> + /// <remarks> + /// Various Soulseek clients (including this one) assume paths to use backslashes, regardless of the host system. + /// </remarks> /// <param name="path">The path to convert.</param> /// <returns>The converted path.</returns> - public static string NormalizePath(this string path) + public static string NormalizePathForSoulseek(this string path) { return path.Replace('/', '\\'); } diff --git a/src/slskd/Common/SqliteConnectionExtensions.cs b/src/slskd/Common/Sqlite.cs index 3944c10b..14460da1 100644 --- a/src/slskd/Common/SqliteConnectionExtensions.cs +++ b/src/slskd/Common/Sqlite.cs @@ -1,4 +1,4 @@ -// <copyright file="SqliteConnectionExtensions.cs" company="slskd Team"> +// <copyright file="Sqlite.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -20,7 +20,7 @@ namespace slskd using System; using Microsoft.Data.Sqlite; - public static class SqliteConnectionExtensions + public static class Sqlite { public static int ExecuteNonQuery(this SqliteConnection conn, string query, Action<SqliteCommand> action = null) { |
