smallketchup82
0ee89183cc
initial implementation
2024-06-26 15:25:41 -04:00
Dean Herbert
a62b9fa633
Revert windows 16px icon to original version
...
This also fixes the 48px version looking uncanny due to smaller paddings.
2024-05-27 11:42:36 +09:00
Susko3
abca62d5f0
Revert "Use appropriate SDL_ShowSimpleMessageBox
"
...
This reverts commit ccf8473aae
.
2024-05-23 14:24:42 +02:00
Susko3
ccf8473aae
Use appropriate SDL_ShowSimpleMessageBox
2024-05-23 13:00:18 +02:00
Susko3
45ed86f46c
Add back SDL2BatteryInfo
2024-05-23 12:53:33 +02:00
Susko3
3411ebc4af
Move SDL3BatteryInfo
to separate file
2024-05-23 12:50:06 +02:00
Dean Herbert
d0b1ebff5a
Revert "Temporary rollback of framework / SDL3"
...
This reverts commit d7d569cf4e
.
2024-05-22 16:29:39 +08:00
Dean Herbert
d7d569cf4e
Temporary rollback of framework / SDL3
2024-05-21 14:36:16 +08:00
Bartłomiej Dach
fe0af7e720
Fix unnecessary padding of empty strings for discord RPC purposes
...
Closes https://github.com/ppy/osu/issues/28248 .
Destroy all software.
2024-05-20 11:37:35 +02:00
Bartłomiej Dach
a3dfd99f7d
Fix discord arbitrarily refusing to work on "too short" strings
...
Closes https://github.com/ppy/osu/issues/28192 .
2024-05-16 18:24:51 +02:00
Dean Herbert
c25ed2cddd
Update desktop logo
2024-05-10 14:12:32 +08:00
Dean Herbert
de05998421
Avoid weird codestyle rules
2024-05-09 22:17:00 +08:00
Dan Balasescu
13692d8e7a
Merge branch 'masking-changes' into framework-bump
2024-05-09 21:11:54 +09:00
Salman Ahmed
30fd40efd1
Avoid disable/restore pairs
2024-05-01 21:18:56 +03:00
Salman Ahmed
981a19f6a5
Disable naming inspections in p/invoke code
2024-05-01 17:20:08 +03:00
Bartłomiej Dach
45c2327509
Apply adjustments after framework-side FriendlyGameName
changes
2024-04-29 13:00:22 +02:00
Bartłomiej Dach
6f84467190
Merge pull request #27908 from smoogipoo/silence-flatpak-exception
...
Globally silence Discord RPC registration failures
2024-04-19 08:27:40 +02:00
Dean Herbert
c39eb5c5aa
Merge branch 'master' into upgrade-to-SDL3
2024-04-18 22:23:55 +08:00
Dan Balasescu
03e13ddc30
Globally silence Discord RPC registration failures
2024-04-17 17:10:19 +09:00
Dean Herbert
926424d8ea
Update HighPerformanceSessionManager.cs
...
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
2024-04-16 16:37:11 +08:00
Dean Herbert
d89edd2b4f
Expose high performance session state
2024-04-16 10:04:38 +08:00
Dean Herbert
7e4782d4b1
Allow nested high performance sessions
...
Mostly just for safety, since I noticed this would pretty much fall over
in this scenario until now.
2024-04-16 10:04:38 +08:00
Dan Balasescu
c7f3a599c9
Fix crash when entering multiplayer on macOS
2024-04-13 13:17:06 +09:00
Susko3
14c26926f3
Upgrade to SDL3
2024-04-09 09:55:50 +02:00
Dan Balasescu
7d8fe51178
Fix possible crash due to race in DiscordRichPresence
2024-04-08 23:33:42 +09:00
Dan Balasescu
fb8fb4f34e
Disable Discord URI registration on macOS for now
2024-04-04 16:43:26 +09:00
Dan Balasescu
4c1a1b54be
Fix NVAPI startup exception on non-Windows platforms
2024-03-27 00:07:51 +09:00
Bartłomiej Dach
53c3aec3c3
Fix discord RPC errors in multiplayer
...
Reproduction steps:
1. Go to multiplayer
2. Create a room
3. Play a map to completion
4. Wait for "secrets cannot currently be sent with buttons" error
messages
The fix is to clear the buttons since they're the less important ones.
2024-03-25 18:05:00 +01:00
Bartłomiej Dach
a398754a27
Merge all presence methods into one
...
I'm about to make them interdependent (and it's discord's fault),
so it doesn't really make sense to make them separate at this point
I don't think. And it felt weird anyway.
2024-03-25 18:00:42 +01:00
Bartłomiej Dach
e95f29cf4b
Rename updatePresence() => schedulePresenceUpdate()
...
The method doesn't actually update anything by itself, and I want to
free up the `updatePresence()` name for the actual update.
2024-03-25 17:57:13 +01:00
Bartłomiej Dach
3db88fbcea
Use less confusing message format when logging discord errors
...
The "code" is a number, so it looked weird when put in the middle
without any nearby punctuation. Example:
An error occurred with Discord RPC Client: 5005 secrets cannot currently be sent with buttons
2024-03-25 17:54:20 +01:00
Salman Ahmed
5f86b5a2fa
Use DI correctly
2024-03-20 07:36:15 +03:00
Salman Ahmed
b11ae1c571
Organise code, still hook up to RoomChanged
to update room privacy mode, and use SkipIdenticalPresence
+ scheduling to avoid potential rate-limits
2024-03-20 07:28:01 +03:00
jvyden
1a08dbaa2b
Fix code style
2024-03-19 17:03:30 -04:00
jvyden
4305c3db5b
Show login overlay when joining room while not logged in
2024-03-19 16:15:22 -04:00
jvyden
c71daba4f6
Improve logging of RPC
...
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2024-03-19 16:05:13 -04:00
jvyden
0ecfa580d7
Move room code from activity code, prevent duplicate RPC updates
2024-03-19 16:03:37 -04:00
jvyden
808d6e0943
Prevent potential threading issues
2024-03-19 16:02:06 -04:00
jvyden
f851716a47
Merge branch 'master' into discord-rpc-invites
2024-03-19 15:29:52 -04:00
jvyden
e4e7dd14f3
Revert "Update presence on changes to multiplayer room"
...
This reverts commit 8b730acb08
.
2024-03-11 18:16:13 -04:00
jvyden
5580ce31fa
Log Discord RPC updates
2024-03-11 18:15:18 -04:00
Salman Ahmed
8b730acb08
Update presence on changes to multiplayer room
2024-03-11 13:16:00 +03:00
Salman Ahmed
169e2e1b4e
Change maximum room number to closest powers of two
2024-03-11 13:16:00 +03:00
Dean Herbert
226df7163e
Update client ID
2024-03-11 16:55:49 +08:00
Salman Ahmed
283de215d3
Adjust log message and comment
2024-03-11 01:17:17 +03:00
jvyden
98ca021e66
Catch and warn about osu!stable lobbies
2024-03-06 01:17:37 -05:00
Jayden
9871300317
Improve language of user-facing errors
...
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
2024-03-05 18:22:39 -05:00
jvyden
b53777c2a4
Refactor room secret handling to use JSON
...
Also log room secrets for debugging purposes
2024-03-05 18:21:26 -05:00
Jayden
cceb616a18
Update failure messages
...
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2024-03-04 22:25:36 -05:00
Jayden
37e7a4dea7
Fix yapping
...
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
2024-03-01 14:32:44 -05:00
Susko3
3df32638c2
Fix association descriptions never being written on update
2024-03-01 16:06:30 +01:00
jvyden
92235e7789
Make truncate and getBeatmapID static
...
Code quality was complaining about hidden variables so I opted for this solution.
2024-03-01 00:02:20 -05:00
jvyden
060e17e989
Support Discord game invites in multiplayer lobbies
2024-02-29 23:41:40 -05:00
Dean Herbert
91483bdc2f
Merge pull request #27001 from Susko3/windows-file-uri-association
...
Associate with files and URIs on windows
2024-03-01 11:26:44 +08:00
Dean Herbert
61cc5d6f29
Fix typos in xmldoc
2024-03-01 11:24:12 +08:00
Salman Ahmed
c69c881cd3
Combine conditionals and remove "InLobby" check
2024-02-28 07:58:02 +03:00
jvyden
e2a364332b
Merge branch 'master' into discord-dnd-fix
2024-02-27 16:23:56 -05:00
jvyden
e053c08f6b
Hide social interactions while in Do Not Disturb
2024-02-27 16:23:36 -05:00
Bartłomiej Dach
87509fbf6e
Privatise registry-related constants
...
Don't see any reason for them to be public.
2024-02-27 14:07:49 +01:00
Dan Balasescu
069b400dd0
Move manager to desktop game
2024-02-27 19:36:03 +09:00
Susko3
9b3ec64f41
Inline HKCU\Software\Classes
usage
2024-02-26 13:10:37 +01:00
Susko3
f2807470ef
Inline EXE_PATH
usage
2024-02-26 13:03:23 +01:00
Susko3
6dbba705b3
Refine uninstall logic to account for legacy windows features
2024-02-26 12:27:02 +01:00
jvyden
8934cf33f0
Apply Discord RPC changes regardless of user's status
2024-02-23 22:29:09 -05:00
Joseph Madamba
27ce965dd2
Update unsupported windows startup blocker comment
2024-02-15 22:52:27 -08:00
Dean Herbert
e705190664
Update windows icon metrics to match previous icon
2024-02-15 23:23:49 +08:00
Susko3
6ded79cf07
Make NotifyShellUpdate()
public
to ease testing
2024-02-08 01:15:37 +01:00
Susko3
1dc54d6f25
Fix stable install path lookup
...
`osu` is the `osu://` protocol handler, which gets overriden by lazer.
Instead, use `osu!` which is the stable file handler.
2024-02-08 00:54:48 +01:00
Susko3
dfa0c51bc8
Copy icons to nuget and install package
...
Don't ask me why this uses the folder for .NET Framework 4.5
2024-02-08 00:23:46 +01:00
Susko3
7864810fc9
Merge branch 'master' into windows-file-uri-association
2024-02-07 23:10:13 +01:00
Susko3
8049270ad2
Remove unused param
2024-02-07 22:45:58 +01:00
Susko3
bf47221594
Make things testable via 'Run static method' in Rider
2024-02-07 22:42:42 +01:00
Susko3
139072fa81
Standardise using declaration
2024-02-07 22:29:20 +01:00
Susko3
3419b8ffa8
Standardise using declaration
2024-02-07 22:28:54 +01:00
Susko3
7f5dedc118
Refactor ProgID logic so it's more visible
2024-02-07 22:23:59 +01:00
Susko3
da8c4541db
Use Logger.Error
2024-02-07 22:21:04 +01:00
Susko3
ffdefbc742
Move public methods closer together
2024-02-07 22:18:12 +01:00
Susko3
738c28755c
Refactor public methods
2024-02-07 22:17:13 +01:00
Susko3
6bdb076027
Move update/install logic into helper
2024-02-07 22:06:09 +01:00
Susko3
0563507295
Remove duplicate try-catch and move NotifyShellUpdate()
to less hidden place
2024-02-07 22:03:16 +01:00
Susko3
f9d257b99e
Install associations as part of initial squirrel install
2024-02-07 21:56:39 +01:00
Susko3
eeba937686
Make WindowsAssociationManager
static
...
Usages/localisation logic TBD
2024-02-07 21:55:42 +01:00
Susko3
57d5717e6a
Remove Win32Icon
class and use plain strings instead
2024-02-07 21:33:23 +01:00
Susko3
17033e09f6
Change to class to satisfy CFS hopefully
2024-02-05 14:29:17 +01:00
Susko3
4ec9d26657
Inline constants
2024-02-05 14:16:35 +01:00
Susko3
7789cc01eb
Copy .ico files when publishing
...
These icons should appear in end-user installation folder.
2024-02-05 14:03:16 +01:00
Susko3
01efd1b353
Move WindowsAssociationManager
to osu.Desktop
2024-02-05 13:44:12 +01:00
Susko3
2f4211249e
Use cleaner way to specify .exe path
2024-02-05 13:12:03 +01:00
Susko3
cdcf5bddda
Uninstall associations when uninstalling from squirrel
2024-02-03 17:56:14 +01:00
Susko3
2bac09ee00
Only associate on a deployed build
...
Helps to reduce clutter when developing
2024-02-03 17:23:59 +01:00
Susko3
03578821c0
Associate on startup
2024-02-03 17:04:06 +01:00
Dan Balasescu
8e8ba9e77f
Fix more CI inspections
2024-02-02 21:36:41 +09:00
Dan Balasescu
dda691b8c2
Fix NVAPI compile error
2024-02-02 21:28:52 +09:00
Dan Balasescu
6e4d52863c
Upgrade to .NET 8 SDK
2024-02-02 21:28:51 +09:00
Bartłomiej Dach
6931af664e
Add missing icon.png
entry to nuspec
...
This is only half of the deployment fix, the other half will be in
`osu-deploy` (making sure the icon is actually in the staging
directory).
2024-01-30 12:05:31 +01:00
Dean Herbert
f54e1418ae
Update to v4
2024-01-27 01:42:47 +09:00
Dean Herbert
84a0291c85
Update icon in nuspec file
2024-01-26 12:32:18 +09:00
Dean Herbert
2941787f5e
Update windows logo
2024-01-25 20:37:50 +09:00
Dean Herbert
7e8b3d03fa
Update copyright years
2024-01-25 20:37:50 +09:00
Dean Herbert
a69fd8198d
Update framework and other nuget packages
...
- Moq held back because dicks
- NUnit held back because large API changes (trivial but effort)
- SignalR held back due to api deprecations
2024-01-21 11:00:53 +09:00