Commit Graph

115 Commits

Author SHA1 Message Date
JustArchi
4c93050b8e Packages update 2017-05-23 06:43:11 +02:00
JustArchi
5b60fd59df Packages update 2017-05-17 02:36:49 +02:00
JustArchi
58764fe12c Skip Fody on Unix or debug builds 2017-05-08 17:35:02 +02:00
JustArchi
1ffa7ab037 Revert "It seems Mono started working with Fody already"
This reverts commit 3b7652d4a9.

Nope, not yet, at least for my server.
2017-05-08 17:32:34 +02:00
JustArchi
3b7652d4a9 It seems Mono started working with Fody already 2017-05-08 07:38:17 +02:00
JustArchi
8c5aa39c4e Packages update 2017-05-08 07:30:09 +02:00
JustArchi
3f0a522cdd Packages update 2017-05-06 02:17:40 +02:00
JustArchi
37599d730b Packages update 2017-04-29 23:26:59 +02:00
JustArchi
7bd2ce650c Misc code review 2017-04-27 01:57:04 +02:00
JustArchi
f5fbaa4c61 Packages update
Closes #531
2017-04-24 06:27:50 +02:00
JustArchi
e506930672 Revert "Packages update"
This reverts commit 32c54752cb.
2017-04-21 20:29:28 +02:00
JustArchi
32c54752cb Packages update 2017-04-21 20:25:16 +02:00
JustArchi
1d3fb2a340 Translation updates 2017-04-08 05:20:03 +02:00
JustArchi
92bb7d0927 Humanize TimeSpans, get rid of dirty manual TimeSpan translations 2017-04-08 05:05:09 +02:00
JustArchi
adfc992f26 Resharper Cleanup v2 2017-04-05 17:23:18 +02:00
JustArchi
fcf9686a79 Revert "Resharper cleanup"
This reverts commit 7c8d7b5ada.

Bad cleanup.
2017-04-05 17:01:18 +02:00
JustArchi
7c8d7b5ada Resharper cleanup 2017-04-05 16:59:48 +02:00
Logerfo
e4da0c05d5 Merge branch 'master' into master 2017-04-05 10:33:13 -03:00
JustArchi
ae1d71f5af Packages update 2017-04-05 14:18:44 +02:00
JustArchi
16509b9958 Packages update #514 2017-03-30 20:44:03 +02:00
JustArchi
8a54f1b355 Revert "EXPERIMENTAL: Packages update [1/2] #514"
This reverts commit 588af12d0b.

Not ready yet.
2017-03-29 13:01:36 +02:00
JustArchi
588af12d0b EXPERIMENTAL: Packages update [1/2] #514 2017-03-29 12:57:19 +02:00
JustArchi
f6317b9eae Packages update
Closes #508
2017-03-23 21:45:10 +01:00
JustArchi
39e7f5e60e Packages update 2017-03-21 14:28:05 +01:00
Bruno Logerfo
f8b2fcda7a C# 7.0 syntax sugars 2017-03-14 08:20:29 -03:00
JustArchi
f2552950a8 Translations update 2017-03-11 17:30:45 +01:00
JustArchi
aa43b311c5 Rewrite language detection to be even more reliable
http://stackoverflow.com/questions/42598732/reliable-calculation-of-overriden-culture-specific-resources-in-net
2017-03-11 17:05:39 +01:00
JustArchi
807ef2d83a Prevent Windows from going to sleep only in headless mode 2017-03-07 03:47:56 +01:00
JustArchi
63df2ba4aa Translations update 2017-03-06 21:07:10 +01:00
JustArchi
df8fdcca56 Packages update 2017-03-01 22:46:02 +01:00
JustArchi
2c15a4f5c5 Code cleanup 2017-03-01 22:38:57 +01:00
JustArchi
2f81206a10 Improvements mentioned in #478
@il-marc
2017-02-25 18:11:03 +01:00
Ilia
d3c3bcec8f SetUserInput for GUI 2017-02-25 18:06:15 +02:00
JustArchi
a32a5b1968 Unlink en-GB
Until now it was 1:1 copy of en-US for silencing warning fixed in previous commit, remove it until we have a reason to add it back (with actually different translations from en-US)
2017-02-25 10:57:03 +01:00
JustArchi
b68b695150 Misc 2017-02-25 10:53:35 +01:00
JustArchi
833774aafc Don't complain about missing en dialects 2017-02-25 10:52:10 +01:00
JustArchi
aeae5a1c9b Packages update 2017-02-23 17:08:40 +01:00
JustArchi
701cb9d327 Optimize unused references 2017-02-18 22:20:00 +01:00
JustArchi
643fd4b4ac Build fix
I wonder why this wasn't bundled with previous commit
2017-02-18 22:18:52 +01:00
JustArchi
2aadc41847 Packages update
With important fix for https://github.com/NLog/NLog/issues/1965
2017-02-18 22:13:13 +01:00
JustArchi
56983c0470 Handle system clock updates
In very rare scenario of starting from time X, calculating SteamTimeDifference of Y, then changing time from X to Z, old Y difference might no longer be accurate, which could lead to temporary failure of generating tokens/confirmations for given time.
Steam accepts tokens for quite a while (15 minutes from their time IIRC), so this would only hit us if we started from really huge time gap X, and not just normal typical small max 1-2 minutes updates.
2017-02-13 20:53:06 +01:00
JustArchi
0625e57333 Switch from self-compiled SK2 back to original SK2
It got updated so I no longer need my own version for bugfixes
2017-02-12 15:29:50 +01:00
JustArchi
befc71f358 Code cleanup 2017-02-11 17:09:15 +01:00
JustArchi
21156a6c79 Link new translations 2017-02-09 13:45:31 +01:00
JustArchi
92b9aeae31 Fix Mono compilation 2017-02-07 21:09:08 +01:00
JustArchi
a8045ac50b Fix async/await with ConcurrentHashSet
Now this is a nice bug that was found accidentally by ArchiBoT...
ReaderWriterLockSlim() is very decent solution, but it's thread-based, and we're using our ConcurrentHashSet in mixed async/sync context. This means that if we use something like:
foreach (var item in concHashSet) {
    await AnythingAsync().ConfigureAwait(false);
}
It's totally possible that we'll request read lock as thread 1, and release the read lock as thread 2, which will lead to RWLock exception => System.Threading.SynchronizationLockException: The read lock is being released without being held.
Fortunately it looks like we didn't have any scenario like this in ASF, as this was possible only when we async/await while enumerating over ConcurrentHashSet, so that specific bug didn't affect ASF codebase (yet). Still, I must fix this as current implementation is not thread-safe, so our HashSet is in fact not concurrent in the first place.
I analyzed possible solutions and there are basically 3: either using ConcurrentDictionary and wrapping around it, replacing lock with SemaphoreSlim, or using third-party AsyncReaderWriterLock from StephenCleary. SemaphoreSlim entirely kills the concept of multiple readers one writer, and could affect performance negatively, moreover - it doesn't support upgreadable lock scenario we have with ReplaceIfNeededWith(). Concurrent dictionary would be nice if I didn't have that awful memory hit from storing mandatory pointless value, plus I don't really like concept of wrapping around conc dictionary if I can simply use it right away and drop my conc hashset entirely. AsyncReaderWriterLock seem to be really well written, and works on Mono + should be compatible with .NET core in the future, so we should go for it as it's the best bet both performance-wise and memory-wise.
This brings another package dependency and changes a bit backend of ConcurrentHashSet
2017-02-07 20:14:51 +01:00
JustArchi
b4483057b9 Fix build 2017-02-05 14:35:55 +01:00
JustArchi
f72c51a2f8 Misc 2017-02-05 14:35:27 +01:00
JustArchi
c887dc102e Unify ASF/GUI startup 2017-02-05 14:32:38 +01:00
JustArchi
2af76f746d Closes #457 2017-02-05 13:52:00 +01:00