Donovan Watteau
5db6e27eca
MACOSX: Fix NSUInteger definition on macOS 10.4
...
NSUInteger should be an `unsigned int` on 32-bit Tiger, and an
`unsigned long` on 64-bit Tiger. In practice, this wasn't really a
problem since we were always using `unsigned long` which has the same
width on 32-bit Tiger, but still it's more correct to do what the
official 10.5 SDK does.
The preprocessor defines come from Apple's documentation and from
their SDK. We can use it as-is, since we're in the backend code, and
already in an ifdef only targeting Tiger (where I've tested this
change).
Also fix a small GCC warning while there.
2022-11-09 12:27:51 +01:00
Donovan Watteau
4f5ccdbe75
MACOSX: Update some comments about macOS 10.4/10.5 behavior
...
Found while doing a review of our existing workarounds for those
versions, and the system features which can be used there.
Also fix indentation and some typos while there.
2022-11-05 10:09:58 +01:00
Thunderforge
3ffbb3b030
COMMON: Adding endline to macosx_wrapper.mm
2022-07-02 22:34:36 +02:00
Thunderforge
3e1d4ae9ce
COMMON: Restructuring how ApplicationSupport path is calculated and putting in Icons subdirectory
2022-07-02 22:34:36 +02:00
Donovan Watteau
a933a0d261
MACOSX: Switch getResourceAppBundlePathMacOSX() to Objective-C
...
As suggested by criezy, we don't need to use the C-bridge from Core
Foundation now that the wrapper has been moved to an Objective-C file.
2022-05-22 23:42:45 +01:00
Donovan Watteau
5118c60874
MACOSX: Pull a getResourceAppBundlePathMacOSX() wrapper from addSysArchivesToSearchSet()
2022-05-22 23:42:45 +01:00
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
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01: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
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
5936026209
ALL: Clarify POTFILES, remove redundant common/translations.h includes
2020-11-10 03:03:49 +01: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
4bcac1df17
GUI: U32: Use u32 in clipboards for MacOS
2020-08-30 14:43:41 +02:00
Thierry Crozat
e79fc3ac76
OSX: Handle encoding conversion for clipboard text
2018-04-29 21:47:10 +01:00
Thierry Crozat
3fe0e3c38e
OSYSTEM: Add API to copy text to clipboard
...
This has also been implemented for the SDL2 and macOS backends.
2018-04-29 21:47:10 +01:00
Thierry Crozat
442edb6ccc
MACOSX: Expand ~ in default screenshot path
...
When using SDL to save the screenshot, using a told results in
an error.
2017-04-26 08:39:06 +01:00
Thierry Crozat
11dd33bb73
MACOSX: Create screenshot on Desktop
...
This is consistent with the OS shortcut (Crtl+Shift+3) to take a
screenshot.
2017-04-24 01:06:50 +01:00
Thierry Crozat
f490fb811a
OSX: Implement clipboard support
...
There was already an implementation using SDL2 in the SDL backend,
but this way we have it available also when using the SDL 1.
2016-08-30 21:37:34 +01:00