Commit Graph
8513 Commits
Author SHA1 Message Date
Le Philousophe 724dcd36e9 OPENDINGUX: Rework build_odbeta.sh to avoid environment variables 2021-11-12 11:59:48 +01:00
Le Philousophe 213168047e OPENDINGUX: Integrate all OpenDingux platforms in configure script 2021-11-12 11:59:48 +01:00
Orgad Shaneh 7a4e5612de JANITORIAL: Replace new[]/memset with new[]()
Mostly done using the following Ruby script:

(Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file|
  s = File.read(file, encoding: 'iso8859-1')
  t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3')
  if t != s
    File.open(file, 'w') { |io| io.write(t) }
  end
end
2021-11-10 19:53:15 +01:00
Torbjörn Andersson 03b227fdf0 BACKENDS: DIALOGS: GTK: Keep ScummVM mouse pointer alive during dialog
Also, throttle the rate at which updateScreen() is called. I don't know
if it makes any difference, but it seems like a polite thing to do.
2021-11-09 09:45:36 +01:00
Paweł Kołodziejski 543e53eaad SURFACESDL: Implemented missing kFeatureVSync for getFeatureState() 2021-11-08 09:07:48 +01:00
Paweł Kołodziejski dfe477e95e SURFACESDL: Implemented fallback in case lack of VSYNC 2021-11-08 09:07:48 +01:00
Torbjörn Andersson bb0ce7ff25 BACKENDS: DIALOG: GTK: Keep main window updated during GTK+ dialog
Otherwise, anything moving across the main window while the dialog is
open may leave ugly trails. At least it does for me.
2021-11-08 08:46:47 +01:00
Marcus Comstedt a8c59ef5b2 DC: Bump required libronin version 2021-11-03 19:10:25 +01:00
Marcus Comstedt 52cf32cccc DC: Break out some common code into a shared file
Also, add some C++11 constructs for good measure.  :-)
2021-11-03 19:10:25 +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
Le Philousophe 117927ce6c JANITORIAL: Remove unused HAVE_GCC3 variable 2021-11-01 21:46:15 +01:00
Michael Ball d3e9cdb986 3DS: Set stack size w/o starting SVM inside a thread
This commit introduces a simpler method for setting the stack size. By setting a global variable __stacksize__,
we can override the identically-named, weak-attributed __stacksize__ defined in libctru. This is an intentional
feature of libctru, and renders it unnecessary to run ScummVM from within a thread.

Source: https://github.com/devkitPro/libctru/commit/192b88b6a21d83345a4635deba417c191c156c80
Explanation: https://gbatemp.net/threads/homebrew-development.360646/page-245#post-6362424
Usage in the wild: https://github.com/masterfeizz/ioQuake3DS/blob/master/code/ctr/ctr_main.c#L44
2021-11-01 20:31:23 +01:00
Christophe Branchereau 849d05b5e2 OPENDINGUX: Add support for Opendingux Beta
OD Beta is a mips linux OS based on buildroot, that runs on ingenic gaming handhelds
like the gcw0, rg350 and many more.

There was a previous GCW0 port, that was running on legacy opendingux, but that
OS is not maintained since 2014 and has an outdated kernel and toolchain.

Od Beta on the other hand, runs with linux 5.15, has a GCC 10 toolchain and
an active developpment community.

This adds support for 3 flavors :

gcw0 that runs on all jz4770 cpus
lepus that runs on all jz4760 cpus
rg99 which is a jz4725 device

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
2021-11-01 17:39:26 +01:00
Cameron Cawley e3b72b6fef DS: Remove redundant event observer 2021-11-01 16:19:15 +00:00
Cameron Cawley 8c01baaaff DS: Get the virtual keyboard working with the mirrored subscreen 2021-11-01 16:19:15 +00:00
Cameron Cawley 224d626e65 DS: WIP virtual keyboard support 2021-11-01 16:19:15 +00:00
Cameron Cawley dd1bf34f18 BACKENDS: Hide the virtual keyboard action when one isn't available 2021-11-01 16:54:39 +01:00
Cameron Cawley 6dbb129f40 BACKENDS: Allow activating the system virtual keyboard using the keymapper 2021-11-01 16:54:39 +01:00
Hubert Maier ea8b6e9ae2 AMIGAOS: Replace query with correct one 2021-11-01 12:16:23 +01:00
Alexander Tkachev 5636ffb180 CLOUD: Tweak Networking::Reader pattern-matching logic
Instead of doing linear strcmp-like operation after every byte read, Reader now computes a "hash" of the needle it searches for and updates "hash" of the window contents. Now, it only does strcmp if window has the same "hash" as the needle, which also improves file upload speed for ScummVM's local webserver.
2021-11-01 12:15:27 +01:00
Alexander Tkachev 7a43994545 CLOUD: Fix Networking::Reader's window logic
Instead of shifting bytes in the array every time we read 1 byte, Reader now has two "pointers": where it reads from and writes into. This makes the buffer "circular", and removes the unnecessary bytes shifting, which results in increased file upload speed (only for the LAN server; libcurl side stays intact).
2021-11-01 12:15:27 +01:00
Hubert Maier 5ea9520c46 MORPHOS: Fix a regression/oversight 2021-11-01 11:59:28 +02:00
Alexandre Detiste 6044504762 JANITORIAL: typos
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +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
Vanfanel 5873dfad7c SDL: Add missing getFeatureState() case for VSYNC. 2021-10-23 20:53:22 +01:00
Vanfanel 58a243842f SDL: Remove redundant #if. 2021-10-23 20:53:22 +01:00
Vanfanel 046b48f90d SDL: Add OSystem::kFeatureVSync to SDL surface and OpenGL graphics. 2021-10-23 20:53:22 +01:00
Vanfanel 3a59c28179 SDL: Generalize VSYNC option so it works for 2D games too, in both SDL surface and opengl graphic modes. 2021-10-23 20:53:22 +01:00
Orgad Shaneh db7699228c MISC: Fix printf long/int64 type mismatches
Cast to [unsigned] long.
2021-10-23 02:48:27 +03: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
sluicebox f3b04519a6 CLOUD: Fix crash on HTTP request with unparsed path
Occurred during an nmap scan. Fixes bug #12997
2021-10-13 19:18:43 -05: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 594a81f93c OPENGLSDL: Fix restoring window size when exiting fullscreen
When entering fullscreen it was storing the default window size
in the config, which was overwriting the current window size. As
a result when exiting window size, instead of restoring to the
previous window size it was restoring to the default window size.
2021-10-11 02:59:01 +03:00
Thierry Crozat 45a803c71c OPENGLSDL: Fix always restoring window to maximized size when exiting fullscreen
When loadVideoMode gets called to exit fullscreen, the window is
still fullscreen, which means that the SDL_WINDOW_MAXIMIZED is set
(at least on macOS). As a result the window was resized to the
stored maximized window size instead of the size it had before
entering fullscreen.
2021-10-11 02:59:01 +03:00
Thierry Crozat aac0f40d2c BACKENDS: Add overloadable removeFile in DefaultSaveFileManager
This allows using the DefaultSaveFileManager on system where
remove() does not exist. See bug #12975.
2021-10-10 11:39:47 +03:00
BeWorld db3f152ca6 MorphOS: disabled detectFramebufferSupport. added MorphOS doc 2021-10-07 16:02:29 +02:00
Thierry Crozat c8d8b230be N64: Fix setting graphics modes 2021-10-02 23:57:29 +01:00
rsn8887 aa42de666c BACKENDS: PSP: Fix screen scaling 2021-10-02 17:45:26 -05:00
Thierry Crozat 1962e543fd JANITORIAL: Rename variable to follow code formatting conventions 2021-10-02 21:50:28 +01:00
Thierry Crozat 8d972b338d OPENGLSDL: Properly check for fullscreen state
The OpenGLSDLGraphicsManager was changed in bb15133a0a to use
SDL_WINDOW_FULLSCREEN_DESKTOP instead of SDL_WINDOW_FULLSCREEN.
But getFeatureState(kFeatureFullscreenMode) was still checking
the SDL_WINDOW_FULLSCREEN flag. This worked because in current
SDL2 versions SDL_WINDOW_FULLSCREEN_DESKTOP is defined as
SDL_WINDOW_FULLSCREEN | 0x00001000, but this is not documented
and could change in future SDL versions.
2021-10-02 18:59:44 +01:00
Eugene Sandulenko 9a4f0b7c66 RELEASE: This is 2.6.0git now 2021-10-01 16:04:48 +03:00
Cameron Cawley 6dfa49ba48 RISCOS: More packaging improvements 2021-09-30 23:01:53 +01:00
Cameron Cawley 003c56fc19 RISCOS: Update packaging to accomodate split builds 2021-09-30 13:28:00 +01:00
Thierry Crozat 8ef63e0e0d IOS7: Add support for upside down portrait orientation 2021-09-29 20:30:16 +01:00
Thierry Crozat 68331af461 IOS7: Fix handling of arrow keys on iOS 15 2021-09-29 20:30:15 +01:00
Filippos Karapetis 8f49df6aca SDL: Fix full screen toggling for 3D games
The previous SdlGraphics3dManager::toggleFullScreen() was not using
beginGFXTransaction / endGFXTransaction in toggleFullScreen().
Restore this logic for 3D games, as using transactions in such games
results in a black screen for 3D games when switching to full screen

A regression from d33487f64
2021-09-29 20:24:03 +02:00
Thierry Crozat 85b4b188ef IOS7: Fix rotating the device while ScummVM is innactive
This fixes bug #7137
2021-09-29 00:23:31 +01:00
Thierry Crozat 5f1e3f07ca IOS7: Fix using arrow keys from physical keyboard on iOS 15
This fixes part of bug #12942.
2021-09-29 00:05:58 +01:00
Thierry Crozat 7def254317 JANITORIAL: Fix indentation in iOS7 backend source code 2021-09-28 23:28:54 +01:00