Martin Natano
78fb2e9fc3
Decouple <cstddef>
2023-04-20 11:21:29 +02:00
Crash Cringle and teejusb
f60c1c7f82
Add new Sorting Capabilities for Profile list
2023-03-13 19:56:07 -07:00
Michael Sundqvist and Martin Natano
0cba3579de
Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
...
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Ivana Kellyerova and teejusb
96d9d87325
Prevent same player from late joining
2022-06-12 10:03:33 -07:00
Martin Natano
463ad58e91
Make sure SM profiles are loaded from USB
...
This changes the defaults to this:
MemoryCardProfileSubdir=ITGmania
MemoryCardProfileImportSubdirs=StepMania 5.1;StepMania 5
2022-06-09 18:30:56 +02:00
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Drew Barbarello and Colby Klein
557be7cf1b
5 1 new backport x11 fs rework ( #1485 )
...
* Use XRandR 1.2 to set fullscreen resolution for single output
Squash of roothorick's PR #497
(also includes Kyzentun's CMake changes from PR #716 )
* Cherry-pick json c++1x stuff (b9e3d7174e)
* Cherry-pick c++11 support from 5bba5c0038 and 9f8b045309
* rework Linux (X11) fullscreen, improve display-related Graphics Options
Implement option to select between monitors for exclusive fullscreen mode
on X11 (using XRandR 1.2), or use a fullscreen borderless window.
Reimplement resolution/refresh rate/display mode-related option rows
using Lua, update choices dynamically so only known-good groupings of
resolution/refresh rate/aspect ratio can be selected.
Minimally update Windows/MacOS LowLevelWindow implementations to support
changes made for Linux side. Fullscreen Borderless Window/multi monitor
support from X11 not implemented for those in this commit.
* allow forcibly disabling xinerama use on Linux
When libXinerama is available, SM tries to use it to find the proper
monitor indexes to use to set _NET_WM_FULLSCREEN_MONITORS (on borderless
fullscreen). xfwm4 seems to assume that monitors are numbered in increasing
order from left to right (rather than using the Xinerama-assigned numbers),
so _NET_WM_FULLSCREEN_MONITORS misbehaves on Xfce.
This commit bypasses use of libXinerama, and instead forces SM to induce fullscreen
on the desired monitor in the backup, hacky way: remove all window hints, move window
to desired monitor, then add _NET_WM_STATE_FULLSCREEN hint. This works on
mutter and Xfce.
* Remove multiple warnings on redundant define.
This used to be hard-coded due to pthread related items, but now it's dynamically determined.
* fix _fallback menu behavior for unrecognized aspect ratios
* Fix error recreating existing FS texture
* Bump deployment target to 10.7 to use libc++ on XCode 8
* Add explicit casts to please clang
* Update changelog
2017-06-18 08:55:16 -07:00
Kyzentun and Colby Klein
2aee27a276
Backport custom song support. Prefs are CustomSongsEnable, CustomSongsMaxCount, CustomSongsLoadTimeout, CustomSongsMaxSeconds, CustomSongsMaxMegabytes. Metrics are NumProfileSongGroupColors and the colors with it. Profile custom load function is passed PlayerNumber now. Stepmania must run as root to save USB profile scores. ( #1470 )
2017-06-06 05:30:06 -07:00
Kyzentun Keeslala
88227dd610
Added stats prefix feature to ProfileManager for managing scores that need to be separated.
2016-03-15 18:13:53 -06:00
Kyzentun
c5b24c2ca6
Fixed signed comparison warning in ProfileManager.
2014-12-12 22:16:42 -07:00
Kyzentun
b43af6dce9
Added Guest and Test profile types, and profile priorities so the position of a profile in the list can be controlled. Fixes crash bug that occurs when a profile dir is renamed to a non-number and a new profile is made.
2014-11-28 21:56:25 -07:00
Kyzentun
a580d54662
Profile loading no longer clears out scores for songs that can't be found. Profile merging functions added to ProfileMan and ScreenManageProfiles for profile migration. HighScore operators rewritten to follow good practice.
2014-11-25 21:37:15 -07:00
sigatrev
f1fc291989
run profile's CustomLoadFunction when changing theme or assigning a local profile to a player
...
This should make the custom load functions a lot more useful.
2014-04-30 21:30:30 -05:00
Kyzentun
27dc958970
Changed GameState::UnjoinPlayer to actually follow its own comment and unjoin the player from STATSMAN first, instead of unjoining from PROFILEMAN, then STATSMAN, then PROFILEMAN again. Changed ProfileManager::UnloadProfile to skip unloading if the profile wasn't actually loaded in the first place.
2014-03-10 21:54:53 -06:00
Ben "root" Anderson
a040c4a586
1) SOMEONE can't spell "accessible" 2) Global commenting consistency 3) persistance -> persistence
2013-11-30 09:50:54 -06:00
Jason Felds
fc2b198ce2
Optimization: no need to loop the whole vector.
...
Gotta love the back call.
2013-05-04 12:03:00 -04:00
Jason Felds
f5c877cbb6
Replace StringToInt with the std version.
...
Again, RageUtil isn't the right home.
2013-05-04 11:59:25 -04:00
Jason Felds
28e5148dec
The big NULL replacement party part 5.
...
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds
a3f37dc2b4
The big NULL replacement party part 3.
...
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds
ba59dd1656
The big NULL replacement party part 2.
...
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds
9f24627bf9
The big NULL replacement party part 1.
...
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.
And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Jason Felds
33ca2a3410
Another old style one
2013-05-01 22:44:34 -04:00
Jason Felds
80da0ac974
More loops here.
2013-04-30 20:57:55 -04:00
Jason Felds
48aaba8560
Explicitly call ToString(). libc++ requires this.
2013-04-29 23:37:45 -04:00
Greg Cotton
31e74ad8ac
Don't sign machine profiles on initialization. (Was based on variable.)
2013-01-22 18:37:24 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
52df8ea981
War on -Werror, part 13: hodgehodge.
2012-12-27 12:07:02 -05:00
Jason Felds
1fc16698ba
War on -Werror, part 12: explicit bool usage.
...
It may save a few cycles, but it's best to be
explicit on boolean operations, especially with
ASSERT.
2012-12-27 11:38:53 -05:00
AJ Kelly
b4bd8e82d9
Add various new bindings for ProfileManager, also GetGUID binding for Profile. [asorenson]
2012-11-22 12:42:12 -06:00
AJ Kelly
11f670a303
added GetPlayerName(pn) Lua binding to PROFILEMAN
2012-06-21 21:05:59 -05:00
Colby Klein
fb67c4edca
Add Lua binding
2011-12-28 21:47:23 -08:00
Jason Felds
45365c7c83
Fix warning.
2011-07-30 15:08:04 -04:00
AJ Kelly
48e8f6ab49
remove unneeded logging
2011-07-30 13:10:34 -05:00
AJ Kelly
20bd01c275
* [ProfileManager] Fix an issue when deleting recently created profiles. Fixes issue 119
2011-07-30 13:09:09 -05:00
AJ Kelly
d71c547da0
[ProfileManager] Added ProfileWasLoadedFromMemoryCard(PlayerNumber) Lua binding.
2011-05-16 00:07:06 -05:00
Jason Felds
da51e26d07
Standardize conversion processes.
...
Too many arguments for or against the many methods:
stick to one inside a common function.
This commit will force recompilation of many files.
2011-05-11 15:58:31 -04:00
AJ Kelly
93d3f2a063
nano cleanup
2011-04-30 19:31:21 -05:00
Jason Felds
dae8bc3cec
Part of OpenITG's profile bugfix.
...
Needs some lua hooks on our end though apparently.
2011-04-04 00:58:18 -04:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
Jason Felds
81ccc7daba
Quickly variables! Into the magic mirror!
2011-03-14 03:32:07 -04:00
Jason Felds
9d13036e08
Add @briefs to the Luna classes.
...
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
AJ Kelly
86b2dcdc0a
[Profile] Add GetLastUsedHighScoreName Lua binding.
2010-12-19 14:54:45 -06:00
AJ Kelly
4a7e97e796
hey some profile stuff i missed that's pretty important!
2010-04-14 22:00:56 -05:00
AJ Kelly
642f4b107c
the various changes that I forgot to commit (cleanup and so forth) into hg,
...
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
AJ Kelly
3e51544930
Initial commit.
2010-01-26 21:00:30 -06:00
Devin J. Pohly
80057f53cd
smsvn -> ssc-hg glue: rearrange directory structure
2013-06-10 15:38:43 -04:00