Commit graph

135 commits

Author SHA1 Message Date
C.W. Betts
b9d234e986 MACOSX: Improve conversion of path from NSString to C string
Use `-[NSString fileSystemRepresentation]` if you are going to pass
a path to a lower-level function, like `fopen()`.
2022-03-05 19:28:10 +00:00
Thierry Crozat
533693437d SDL: Do not query directly ConfMan for the screenshotpath in Windows and macOS backends
Instead we call the OSystem_SDL implementation of getScreenshotsPath(),
as done in the POSIX backend. This change means that if we change how
we handle a user-specified screenshot path in the SDL backend, the
Windows and macOS backends will still get the correct path.
2022-02-16 22:24:07 +00:00
Thunderforge
fd129ebc0c JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments
Apple's desktop operating system was formerly called "Mac OS X" and "OS X", but since 2016 it has been called "macOS" (starting with version 10.12).

Changing across all comments and documentation to use this current terminology, except in cases where the historical versions are explicitly referenced. No code changes are made; we should consider changing those in future PRs.
2022-01-29 14:15:05 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
254db11419
BACKENDS: MACOS: Trigger GMM on the touchbar icon tap 2021-11-22 23:32:13 +01:00
Eugene Sandulenko
b0001ef9f6
BACKENDS: MACOSX: Display OSD messages on the Touchbar
Okay, so Apple now deprecated the Touchbar in their line of
MacBooks. Exciting! Time to finally add support for it!
2021-11-15 17:45:30 +01:00
Orgad Shaneh
b11c5ace90 BACKENDS: JANITORIAL: Remove 'virtual' when override is specified 2021-11-14 14:31:41 +02:00
Evan Miller
a9a59ba37e SDL: Fix exception on macOS 10.4/10.5
The getBytes:...:remainingRange: API was introduced in 10.6.
2021-10-14 21:00:04 +01:00
Evan Miller
b8132baa94 SDL: Fix building/deployment on macOS <10.7
NSWindow.backingScaleFactor needs OS support, so a run-time test is
necessary in addition to the OS X SDK guard.
2021-10-11 19:40:37 +01:00
Thierry Crozat
36908e0fcd OSX: Prefer the manual bundled with the application
The User Manual Help menu item now opens the pdf bundled with the
application if present, and only opens the website otherwise.
The bundled documentation is preferred as:
 - This will work even with no internet access
 - This is future proof and will still work in 10 years when the
   website URL might have changed or the website may be down.
 - This ensure we get the doc that corresponds to the version of
   ScummVM being used.
2021-08-28 20:14:57 +01:00
mataniko
8a91f500a7 MACOS: Open the new documentation hub from the app menu 2021-08-27 15:54:10 +02:00
Cameron Cawley
62f8419fdc MACOSX: Fix compilation with older SDKs 2021-08-25 13:10:20 +01:00
Thierry Crozat
0aa68d419e JANITORIAL: Add override keyword for OSystem_MacOSX 2021-08-15 17:52:45 +01:00
Thierry Crozat
f2bc7c8874 MACOSX: Use OpenGL graphics mode by default 2021-08-15 17:52:45 +01:00
Cameron Cawley
c4699cb280 SDL: Move getDisplayDpiFromSdl and getDpiScalingFactor into the SdlWindow class 2021-08-14 19:09:33 +01:00
Max Horn
84de72ac76 MACOSX: fix deprecation warnings 2021-08-07 10:46:14 +02:00
Max Horn
34523aba7e JANITORIAL: Fix some typos 2021-08-04 15:43:15 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Eugene Sandulenko
e844981cd0 BACKENDS: MACOS: Query number of MIDI devices at the start of ScummVM in a thread
The call to MIDIGetNumberOfDestinations() starts the MIDI server which takes
3-4l seconds even on the modern hardware. We are querying this in the GUI Options
which then lags on the first launch.

Thus, we are creating a separate thread and make this call at the start of
ScummVM, so by the time the user gets to the GUI, the server is already launched
and there is no lag.

Of course, that would mean that we will launch MIDI even for the games which are
not using it, so this is a tradeoff for the better UX.
2021-03-29 20:25:37 +02:00
Eugene Sandulenko
5936026209 ALL: Clarify POTFILES, remove redundant common/translations.h includes 2020-11-10 03:03:49 +01:00
Cameron Cawley
0b7085fbea SDL: Ensure that SDL is initialized before creating the window object 2020-10-11 22:45:38 +01:00
Matthew Duggan
e3a8524818 MACOSX: Remove unused variable 2020-10-10 15:03:08 +09:00
Paweł Kołodziejski
35b9cccbde ALL: Merge ResidualVM 2020-10-09 19:44:13 +02:00
Pawel Kolodziejski
d5304e2568 ALL: Synced with ScummVM - rev: 33a47d23b8 2020-09-03 02:21:14 +02:00
Thierry Crozat
5f30b95452 MACOSX: Fix compilation with 10.4 SDK for real (hopefully) 2020-08-30 23:57:05 +01:00
Thierry Crozat
3fc952a999 MACOSX: Fix compilation with SDK 10.4 (hopefully) 2020-08-30 19:42:19 +01:00
Thierry Crozat
caa8a5d7bb MACOSX: Fix memory leak in copy to clipboard 2020-08-30 14:43:41 +02:00
Thierry Crozat
733df0bfa1 MACOSX: Fix getting text from clipboard 2020-08-30 14:43:41 +02:00
aryanrawlani28
8cfa8a5589 GUI: U32: Use u32 for menu items in mac 2020-08-30 14:43:41 +02:00
aryanrawlani28
4bcac1df17 GUI: U32: Use u32 in clipboards for MacOS 2020-08-30 14:43:41 +02:00
Cameron Cawley
9a61a99590 BACKENDS: Add init() to OSystem 2020-08-24 14:22:35 +02:00
Pawel Kolodziejski
b586571900 ALL: synced with ScummVM commit 09bf38c120 2020-05-09 20:05:54 +02:00
Max Horn
08b4639cbb ALL: fix a bunch of const warnings
Also while add it, constify some code
2020-04-17 22:41:11 +01:00
Thierry Crozat
8eac9606bc MACOSX: Check selector exists when trying to replace application menus
In particular it has been reported that setHelpMenu was introduced in
MacOS X 10.6. So hopefully this change will fix running ScummVM on
MacOS X 10.5 or older.

This might fix bug #11260: MAC OS X: App incomplete when launched on
OS X 10.5.8.
2020-03-22 20:36:35 +00:00
Bastien Bouclet
feaf9dc365 ALL: Sync with ScummVM rev. 55dba55056 2019-12-08 17:06:42 +01:00
Cameron Cawley
aa083256ec SDL: Simplify implementations of getDefaultConfigFileName() 2019-12-07 21:15:41 +02:00
Jaromir Wysoglad
b97333d4b7 TTS: Remove USE_PLATFORM_TTS defines
Use defined(USE_TTS) && defined(PLATFORM) instead
2019-09-01 22:47:55 +03:00
Thierry Crozat
0434419b31 TTS: Implement TextToSpeechManager for macOS 2019-09-01 22:47:55 +03:00
Cameron Cawley
8b8fb6d3a4 SDL: Simplify implementation of createLogFile() 2019-08-05 10:01:30 +03:00
Bastien Bouclet
d474e3f94f ALL: Sync with ScummVM - rev. ea3f8f2e33 2019-06-29 19:08:44 +02:00
Bastien Bouclet
1d0d842e2a BUILD: Add the licence file for the Source Code Pro font 2019-05-05 08:52:12 +02:00
Thierry Crozat
66ef22d555 MACOSX: Improve opening files from the Help menu
Now in addition to rtf extension and no extension, it also looks
for the html and md extensions. Also unless the extension is RTF or
HTML, which are widely recognized, it explicitely indicate that the
file should be open with TextEdit.

This fixes bug #10938, with opening the README and NEWS file from
the Help menu failing when the bundle was compiled without using
pandoc and thus the only files available are the markdown ones.

Support for the html extension is to prepare for a future change
to have a nicer README than the plain text one.
2019-04-21 11:01:34 +01:00
Bastien Bouclet
66654cb376 ALL: Sync with ScummVM - rev. cd37d510f9 2019-01-26 20:47:55 +01:00
Thierry Crozat
56d1305f9d COMMON: Rename enum variable for native browser feature
There was a typo in the name (missing 'r' in browser).
2018-12-17 23:06:07 +00:00
Thierry Crozat
319b90fb21 BACKENDS: Add kFeatureNativeFileBowserDialog 2018-12-16 15:58:43 +00:00
SupSuper
28e4d7bb43 OSX: Integrate system file browser into DialogManager 2018-12-16 10:48:13 +00:00
Thierry Crozat
941d22c047 BACKENDS: Use OSystem::destroy() instead of deleting directly the g_system instance 2018-10-14 21:25:33 +01:00
Cameron Cawley
9dc2820a33 MACOSX: Fix compilation with the 10.4 SDK 2018-08-28 17:39:30 +01:00
Cameron Cawley
6b5c7e6928 MACOSX: Update link to documentation 2018-08-28 15:52:23 +02:00
angstsmurf
ebedc15437 MACOSX: Give every license file a menu item
We make a renamed copy of the three license files with non-standard
suffixes, to make them open in TextEdit by default.
2018-08-28 15:52:23 +02:00