Commit Graph

30 Commits

Author SHA1 Message Date
sukibaby a6a60e2e56 Remove std prefix from int types
std::int* -> int*
2024-10-08 20:52:52 -07:00
Martin Natano aa87f85eef Decouple <cstdint> 2023-04-21 22:13:41 +02:00
Brian Phlipot 4a6b1a743c Enable more compiler warnings and treat them as errors. 2023-02-02 11:54:17 -08:00
Martin Natano 838de6fb81 Remove support for mingw
MSVC works fine and the bundled mingw libraries are outdated.
2022-06-07 22:49:05 +02:00
Martin Natano 15b77ee278 Update documentation 2022-05-28 11:21:13 +02:00
Martin Kröning 37e60ffc97 Adjust to vanilla libpng 2020-06-20 12:35:04 +02:00
din 653e8ff6fe Small memory fixes. 2020-05-14 16:19:23 -05:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Tatsh 3c8ee8675d Mac fixes (#1795)
* macOS build fixes (#1773)

* macOS build fixes

Add missing headers
Threads_Pthreads: do not call pthread_setname_np() on macOS as it does not do
the same as on Linux
DebugStr() -> os_log()

* Make the project build with Makefiles on macOS

* Fix getting modifier key state on Mac (#1774)

We really need to clean up all Carbon calls here (many will go away when the
project switches to SDL2 for all platforms)

* Fix Xcode build; bump minimum version of macOS (#1775)

* Build fixes for the "Unix Makefiles" generator
Pass CMAKE_BUILD_TYPE to the external projects
* Fix indent

* Fix setting CFBundleExecutable value

* Improve handling of system libpng

Header mismatch can cause a crash, so force the non-system png.h
if WITH_SYSTEM_PNG=no

* Better handling of TRUE/FALSE with newer versions of jpeglib

* Add JPEG include directory
2019-03-10 13:02:54 -07:00
Kyzentun Keeslala ccc26c305a UsePauseMenuInsteadOfGiveUp wasn't necessary for making start not give up on a song. Changed png load back to use setjmp/longjmp. 2016-07-12 21:00:54 -06:00
Kyzentun Keeslala d4926506f9 Removed alloca calls from sound reader classes because putting it inside a loop tends to cause a stack overflow.
Removed alloca call from png loading because it does not work with setjmp and longjmp.  png loading now uses exceptions instead when an error occurs.
2016-06-21 19:23:37 -06:00
Jason Felds 80542a5a7d Require reasons for checkpoints. 2015-06-08 18:37:13 -04:00
Jason Felds dc94728628 Introduce cmake (min 2.8.12) to StepMania.
tl-dr: view the Build directory to see.

This is intended to replace the project files that we presently maintain
so that only a single set is needed instead of multiples.

The following setups were used for testing:

* Windows 8 and Visual Studio 2013 Desktop Express
* Windows 7 and Visual Studio 2012
* Mac OS X Mavericks and Xcode
* Ubuntu and makefiles
* Fedora 21 and makefiles

All three operating systems can generate projects, compile, link, and
run. Windows and Mac OS X users will find their compiled binary in the
same location as before, but Linux users will be surprised: it goes
straight into the root directory, along with a symlinked GtkModules.so
as appropriate. There is no more need for a manual symlinking step.

Known issues:

* At this time, MinGW likely does not work. Extra time will be needed.
* The WITH_JPEG option may go away, and we'll just always require it.
* Some linux libraries can use the system equivalents, but that is not up yet.

For more information, check out the Build directory.
2015-03-21 20:15:15 -04:00
Ben "root" Anderson 62313006c1 Keeping consistency between RS_Save_PNG and RS_Load_PNG 2013-10-29 22:29:05 -05:00
Ben "root" Anderson 7c1f08b250 1) Not _WINDOWS. _MSC_VER. MinGW uses either system libpng or its own extern pulled by autoconf. 2) Note an observed segfault I worked around 2013-10-27 15:43:16 -05:00
Jason Felds 07b9fb6da5 The big NULL replacement party part 6.
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -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 a15cbc431d War on -Werror, part 14: More hodgepodge. 2012-12-27 12:45:04 -05:00
AJ Kelly 904e7ba2dd make some include paths less ugly on Windows. 2011-05-20 01:57:48 -05:00
Jason Felds 48a558e357 [sm130futures] Forgot non windows exclusive code. 2011-05-04 23:28:48 -04:00
Jason Felds b89dcc548f [sm130futures] Good on Windows...and Mac too?
We'll see if I'm lucky here.
2011-05-04 23:22:51 -04:00
AJ Kelly cf81f8cc3b remove xbox support; it doesn't work, and it'd take too much effort to get it working again 2011-03-19 19:28:57 -05:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 7c4044a2fc Force consistent line endings.
I'd suggest enabling the EolExtension:
this way we won't go back and forth here.
2011-03-16 15:51:54 -04:00
Nicole Reid 1c494f6dd2 libpng 1.4 compatibility patch. 2010-04-17 01:07:06 -04: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