Commit Graph
26 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
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
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
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 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
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 ee5162078e WIN32: Make OSystem_Win32 UNICODE compatible 2021-06-29 12:38:01 -05: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
Eugene Sandulenko 5936026209 ALL: Clarify POTFILES, remove redundant common/translations.h includes 2020-11-10 03:03:49 +01:00
Cameron Cawley da978f3a2f WIN32: Simplify string conversion 2020-09-12 11:59:23 +02:00
Cameron Cawley c502fd2162 BACKENDS: Remove unused functions 2020-08-31 21:37:41 +01:00
aryanrawlani28 4cef06d7a8 BACKENDS: WIN32: Use calloc to allocate memory for UTF8ToUnicode wrapper. 2020-08-30 14:43:41 +02:00
aryanrawlani28 93cb408c05 BACKENDS: WIN32: Add UTF8ToUnicode for Win32wrapper
- The new changes for converting GUI to U32 will need these.
- Provide missing notes for codepage params in other wrapper functions
2020-08-30 14:43:41 +02:00
Cameron Cawley 30f2c2f3cd WIN32: Use malloc instead of new in string conversion functions 2020-08-21 00:02:13 +02:00
Jaromir Wysoglad d399c37e6e WIN32: Use uint instead of unsigned int. 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad e965df1e88 TTS: Add TTS support when compiling with msvc. 2019-09-01 22:47:55 +03:00
Cameron Cawley e4b78f4f62 WIN32: Ensure the translated dialog strings are using the correct encoding 2019-04-04 01:06:30 +03:00
Filippos Karapetis 54159276c7 WIN32: Fix build after the addition of SHGetFolderPath() 2018-12-16 19:50:05 +02:00
Cameron Cawley 1de8f1e529 WIN32: Use SHGetFolderPath to get the location of the Application Data folder (#1449) 2018-12-16 17:04:24 +02:00
SupSuper 7bff9176d5 WIN32: Fix incorrect Windows version check
There's no point in testing for Windows 10 since the comparison is already "greater than or equals", and it identifies itself as 6.2 for backwards compatibility. Likely it was failing before because the return type was wrong.

Version checks are unreliable anyways, should use feature checks, but "if it ain't broke don't fix it".
2018-12-16 10:48:13 +00:00
SupSuper 61070f6ce0 WIN32: Add DialogManager with system file browser support 2018-12-16 10:48:13 +00:00
SupSuper 2f2555f728 WIN32: Move utility functions to a common wrapper 2018-12-16 10:48:13 +00:00