Commit Graph
184 Commits
Author SHA1 Message Date
sluicebox 442792eb78 WIN32: Remove SHGetSpecialFolderPath warnings on Win95 2022-12-07 16:26:07 -08:00
Le Philousophe 6293c2b3c2 WIN32: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Donovan Watteau bf5e489567 JANITORIAL: Fix "to to" and "if if" typos in some comments 2022-09-11 17:45:25 +02:00
Lothar Serra Mari 795a92f819 WIN32: Add missing / to icons path 2022-08-01 23:12:05 +02:00
Lothar Serra Mari 3d5a93ce42 WIN32: Fix auto-detection of Icons path for grid view 2022-08-01 23:07:35 +02:00
Thunderforge 1cb41b667f COMMON: Putting Icons in a subdirectory if in Win32 portable mode 2022-07-02 22:34:36 +02:00
Thunderforge 33389f062e COMMON: Adding comment for default path methods 2022-07-02 22:34:36 +02:00
Thunderforge 9afd41b195 COMMON: Renaming getDefaultIconPath() -> getDefaultIconsPath() 2022-07-02 22:34:36 +02:00
Thunderforge b5fac9671d COMMON: Add getDefaultIconPath() for Windows 2022-07-02 22:34:36 +02:00
Thierry Crozat bde10f0dda BASE: Store screenshotpath command line in Session domain
The SDL backend was getting that path at the start and storing
it in a class member so that it would persist for the session.
But now that we have a kSessionDomain in ConfMan, it is cleaner
to use that (and this will also work for non-SDL backends).
2022-06-05 15:39:36 +01:00
Donovan Watteau 5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
Carlo Bramini b195cbbcd0 WIN32: Migrate from ShellExecute to ShellExecuteEx Function
That function allows more readable code, without needing to test if the
returned value is greater than 32.

Supported platforms are:
    Windows 95: Supported.
    Windows 98: Supported.
    Windows NT: Required Windows NT 4.0 or later.
    Windows 2000 and newer: Supported.
    Windows CE: Requires Windows CE 1.0 or later.

This fix comes from my port of SCUMMVM for Windows CE/Embedded/Mobile since
this family of OSs support ShellExecuteEx(), but not ShellExecute().
2022-05-14 10:05:50 +02: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
Cameron Cawley cdcdb26ac8 WIN32: Fix bug in SHGetFolderPathFunc fallback code 2022-01-31 08:32:05 +02:00
Cameron Cawley ff5700cd44 WIN32: Detect SHGetSpecialFolderPath at runtime 2022-01-31 08:32:05 +02:00
Cameron Cawley 21b0d6ded1 BACKENDS: Replace GLEW with GLAD, part of PR #3463 2021-12-30 14:53:48 +01:00
Eugene Sandulenko d79b75dce5 DOCS: Moved all non-main licenses to LICENSES/ directory. Synced all lists
I could potentially break some port packaging as my changes were not tested
2021-12-27 14:58:23 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 44219dfa1a BACKENDS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh b11c5ace90 BACKENDS: JANITORIAL: Remove 'virtual' when override is specified 2021-11-14 14:31:41 +02:00
Le Philousophe 174e0cc98a WIN32: Fix compilation for good ol' Windows 9x
Set _WIN32_IE to 0x500 everywhere and remove where it's not needed.
As we gracefully check if the function is present or not, it's OK to set
this define without having IE 5.0 installed on target
2021-11-14 10:45:09 +01:00
sluicebox 6842e6f5a9 WIN32: Disable update checks in Portable Mode 2021-11-13 21:22:28 +01:00
sluicebox 3d6524c9f4 WIN32: Add Portable Mode
Adds support for a self-contained portable mode in which the
executable's directory is used for application files instead
of directories in the user's profile.

Portable mode is activated by placing a scummvm.ini file in
the executable's directory. The directory must be outside of
the system's Program Files directory to comply with UAC.
2021-11-13 21:22:28 +01:00
Le Philousophe ded4ab6c23 WIN32: Enable GNU extensions for mingw
This way old mingw gets its __argc and __argv. Using gnu++11 instead of
undefining __STRICT_ANSI__ makes GCC11 happy.

Closes #3473
2021-11-02 20:52:36 +01:00
sluicebox 40ed77d3bf WIN32: Fix build when USE_WINDBG is defined 2021-10-29 14:50:51 -05:00
Le Philousophe 6ba11c8f93 WIN32: Make sure _argc and _argv are present with mingw
In mingw32 when __STRICT_ANSI__ is defined these variables doesn't get
defined
2021-10-24 15:11:18 +03:00
Thierry Crozat 7c9761b2da SDL: Fix switching to the <default> graphics mode
The OSystem_SDL::getDefaultGraphicsMode  was returning the
default for the current graphics manager and not the default
for the OSystem_SDL instance. So for example if the default
is SDL Surface when starting ScummVM with the gfx_mode not
set in the config file, and then the user selects the OpenGL
graphics mode, getDefaultGraphicsMode() would now return the
OpenGL mode (the default the OpenGLGraphicsManager). As a
result changing the graphics mode back to <default> and
applying the change would not switch back to Surface SDL
until you restart ScummVM or start a game.

This commit also change how the SDL backends can specify which
graphics mode to use by default. They no longer have to assume
they know the names of the graphics modes in the graphics manager.
2021-08-15 17:43:43 +01:00
djsrv 9a22c59b67 WIN32: Fix compilation 2021-08-07 10:44:37 +02:00
djsrv 7eb4841065 ALL: Use Path type in Archive functions 2021-08-07 10:44:37 +02:00
Orgad Shaneh 85c4f53f7f BUILD: Support peldd on mingw cross-compiler 2021-07-30 05:47:22 +03:00
sluicebox 1071f48be3 WIN32: Make main() arguments UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox d9df1919d5 WIN32: Make Win32AudioCDManager UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox eda2cc6b71 WIN32: Make Win32ResourceArchive UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox ee5162078e WIN32: Make OSystem_Win32 UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox 863747bc96 WIN32: Use MAX_PATH (260) instead of MAXPATHLEN (256) 2021-06-29 12:38:01 -05:00
Lothar Serra Mari e555923e0e DISTS: WIN32: Use OpenGL as default renderer 2021-06-21 17:53:30 +02:00
Orgad Shaneh d31b843f9f MAKEFILE: Add win32dist-mingw target (#2999)
Installs, and bundles all required dlls in WIN32PATH or DESTDIR.
2021-06-20 12:01:09 +03:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Orgad Shaneh 59752c2835 MAKEFILE: Auto-generate dependencies for scummvm.rc 2021-04-23 02:01:09 +02:00
Orgad Shaneh be2b8e7ba5 MAKEFILE: Add dependencies for scummvm.rc (#2919)
When an engine is added or removed, it affects the embedded resources in
scummvm.rc, so config.mk is required.

+ Add some missing dependencies in win32.mk.
2021-04-06 10:27:48 +03:00
Orgad Shaneh e7a9bf203f BACKENDS: Fix MinGW warnings on GetProcAddress usages
Example:
../scummvm/backends/platform/sdl/win32/win32_wrapper.cpp:39:52: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'VerSetConditionMaskFunction' {aka 'long long unsigned int (*)(long long unsigned int, long unsigned int, unsigned char)'} [-Wcast-function-type]
   39 |  VerSetConditionMaskFunction verSetConditionMask = (VerSetConditionMaskFunction)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "VerSetConditionMask");
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-03-31 02:13:07 +03:00
sluicebox 93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
Vladimir Serbinenko 68a9136e4d COMMON: Rewrite Encoder and drop dependency on iconv (#2586)
Different platforms have different levels of support of encodings and
often have slight variations. We already have tables for most encoding
with only CJK missing. Full transcoding inclusion allows us to get reliable
encoding results independently of platform. The biggest con is the need for
external tables encoding.dat.

It removes a duplicate table for korean in graphics/korfont.cpp
2020-11-15 16:20:35 +01:00
Eugene Sandulenko 5936026209 ALL: Clarify POTFILES, remove redundant common/translations.h includes 2020-11-10 03:03:49 +01:00
athrxx 86040f13b8 WIN32: add some CJK codepage name mappings 2020-10-30 21:36:29 +01:00
Cameron Cawley 5c255b3aa9 WIN32: Add override and final keywords 2020-10-16 18:32:08 +01:00
Cameron Cawley 0b7085fbea SDL: Ensure that SDL is initialized before creating the window object 2020-10-11 22:45:38 +01:00
Paweł Kołodziejski 35b9cccbde ALL: Merge ResidualVM 2020-10-09 19:44:13 +02:00
Pawel Kolodziejski 15a759370a ALL: Synced with ScummVM - rev: bdbbcd81ae 2020-09-12 19:38:50 +02:00
Cameron Cawley da978f3a2f WIN32: Simplify string conversion 2020-09-12 11:59:23 +02:00