Commit graph

72 commits

Author SHA1 Message Date
ゾロアーク
51689797ca Do FilesystemImpl for meson builds 2020-11-22 04:51:36 -05:00
ゾロアーク
0a533bb3c2 Drop ObjFW as a dependency 2020-11-22 03:48:03 -05:00
Inori
572f6c43db chdir() -> -[OFFileManager changeCurrentDirectoryPath:] 2019-12-15 20:51:55 -05:00
Inori
97e0633526 Only use -Wno-virtual-dtor with Apple clang 2019-10-23 02:27:26 -04:00
Inori
8ed7713125 Suppress warnings left over from original project 2019-10-23 02:20:06 -04:00
Inori
9ec76482bd Exit rgss thread if GL initialization fails 2019-10-23 01:22:21 -04:00
Inori
7b7c6051dc Fix autopilot typo 2019-10-23 00:46:00 -04:00
Inori
ee5fdbd931 Only create GL context in main thread on macOS 2019-10-23 00:41:50 -04:00
Inori
d00244bf4f Add AppImage stuff 2019-10-22 02:30:07 -04:00
Inori
8020803e04 Setup GL context in main thread (macOS 10.15 requires it) 2019-10-17 08:44:21 -04:00
Inori
84785057a5 chdir to appimage location if independent_appimage set 2019-10-14 00:52:08 -04:00
Inori
70e1aba3cf Remove preprocessor statement from main 2019-09-19 14:52:41 -04:00
Inori
9f573547dc Accomodate MK assets 2019-09-19 12:47:47 -04:00
Inori
339d32da74 Remove 'fix_essentials', add 'use_fakeapi' 2019-08-20 05:21:30 -04:00
Inori
261af9efe0 Don't do drugs kids 2019-08-10 03:49:31 -04:00
Inori
ff943be87b Initialize Winsock so that Sockets works 2019-08-10 03:46:20 -04:00
Inori
9a5a3bc88b Use meson as build system 2019-07-29 07:56:45 -04:00
Jonas Kulla
947974cac6 Config: Properly use windowTitle everywhere instead of game.title 2017-12-12 17:57:02 +01:00
Jonas Kulla
7d9a85dbbd Config: Add entry to override the game window title 2017-12-11 00:48:35 +01:00
Jonas Kulla
006f701fec Config: Add "enableBlitting" entry to toggle GL_EXT_framebuffer_blit 2017-04-23 14:32:11 +02:00
Jonas Kulla
e4079d5738 Fix build on OSX after 60e967e3b7 2017-04-08 19:13:31 +02:00
Marty Plummer
60e967e3b7 Add icon and resource files for windows
Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
2017-03-09 08:24:13 +01:00
Jonas Kulla
6349146e01 main: Only set window icon on Linux
OSX carries high-resolution icons in its bundles, and windows uses
windres to embed .ico files, so don't interfere with those.
2017-03-04 11:04:02 +01:00
Jonas Kulla
713ea07558 SDL hints need to be set before initialization 2015-02-10 15:51:33 +01:00
Jonas Kulla
012d87d05a Disable accelerometer joystick emulation on Android 2015-01-15 07:21:07 +01:00
Jonas Kulla
146e0294b4 Add option to fix the framerate to the native screen refresh rate
Useful on mobile devices where using non-standard framerates
looks absolutely horrible and screen refresh rates vary highly.
2015-01-03 18:58:13 +01:00
Jonas Kulla
3411435138 Factor out some thread communication code (window size, bindings) 2015-01-02 01:41:23 +01:00
Jonas Kulla
5974d05380 Create OpenAL device in main() and store in RGSSThreadData 2014-12-31 18:52:21 +01:00
Jonas Kulla
3596fc568d main.cpp: Immediately query the actual window size after creation 2014-12-31 18:52:21 +01:00
Jonas Kulla
fcfa079e7b Perform chdir(gameFolder) early in main() 2014-12-31 18:52:20 +01:00
Jonas Kulla
03a6c657c4 main.cpp: Always display errors in a message box 2014-12-31 18:52:20 +01:00
David Salvisberg
6829ddc09f Removed store keybindings from main, since it now already gets stored onAccept. 2014-12-28 06:06:28 +01:00
Jonas Kulla
c1aab96454 Rename src/debuglogger -> src/gl-debug 2014-11-29 17:51:37 +01:00
Jonas Kulla
5979c5f778 Add placeholder application icon 2014-11-29 17:30:53 +01:00
Jonas Kulla
5094f5c7c1 Add minor assert 2014-10-16 09:10:27 +02:00
Jonas Kulla
dd73db2e9d Introduce F1 menu to reconfigure key bindings at runtime 2014-10-11 20:48:44 +02:00
Jonas Kulla
d223d83cbf Implement F12 game reset (MRI only)
Can be disabled with "enableReset=false".

While at it, also replace the flakey volatile bool flags
with proper atomics.
2014-09-26 06:25:47 +02:00
Jonas Kulla
6d414c0777 Print RGSS version on startup 2014-08-29 03:16:12 +02:00
Jonas Kulla
3bcf995832 Add option to turn off switching into executable dir on startup 2014-08-02 09:30:17 +02:00
Jonas Kulla
5640c3d04b Print RGSS thread error message to console 2014-07-19 02:59:05 +02:00
Jonas Kulla
c5f18ee535 Print SDL error message if window creation fails 2014-07-14 06:22:49 +02:00
Jonas Kulla
6c481e5eb8 Eliminate GLEW dependency
GL entrypoint resolution is now done manually. This has a couple
immediate benefits, such as not having to retrieve hundreds of
functions pointers that we'll never use. It's also nice to have
an exact overview of all the entrypoints used by mkxp.

This change allows mkxp to run fine with core contexts, not sure
how relevant that is going to be in the future.

What's noteworthy is that  _all_ entrypoints, even the ones core
in 1.1 and guaranteed to be in every libGL, are resolved
dynamically.
This has the added benefit of not having to link directly against
libGL anymore, which also cleans up the output of `ldd` quite
a bit (SDL2 loads most system deps dynamically at runtime).

GL headers are still required at build time.
2014-06-13 18:46:45 +02:00
Jonas Kulla
d09f4a1bae Typo 2014-05-21 18:08:31 +02:00
Jonas Kulla
20e323c699 Config: Parse from command line options on top of config file
Any options that are not arrays (ie. RTP paths) specified
as command line options will override entries in mkxp.conf.

The syntax is: --<option>=<value>
2014-01-13 00:06:34 +01:00
Jonas Kulla
5f16eef273 EventThread: Properly allocate SDL user event codes 2014-01-02 02:22:10 +01:00
Edward Rudd
5b4f0b239c add config option to set the window icon 2014-01-01 16:52:07 -05:00
Edward Rudd
c6bd61d2de code style fixes 2014-01-01 11:01:05 -05:00
Edward Rudd
a18497ca7b change to exe dir on startup and add some extra guards around boost program option parsing. 2013-12-31 21:03:53 -05:00
Edward Rudd
f8e8d704b5 use copy construction to pass the config along so the main constructor gets run once. 2013-12-31 17:23:15 -05:00
Edward Rudd
eacc143ea0 update extension usage..
nearly all of the previous required extensions are CORE in OpenGL 2.0
the remaining ones need to have fallback checks for ARB vs EXT vs APPLE 
variants..
2013-12-31 16:31:03 -05:00