lubomyr
2d7803c22f
ANDROIDSDL: code optimization
2017-02-01 14:34:32 +02:00
lubomyr
9cdda5c045
ANDROIDSDL: implemented checkbox for show/hide on-screen control in Options menu
2017-01-31 22:44:50 +02:00
lubomyr
15acee29f1
ANDROIDSDL: implemented checkbox for change mouse mode in Options menu
2017-01-30 22:35:40 +02:00
D G Turner
4c03760e66
DC: Fix Variable Shadowing Compiler Warning.
2017-01-17 09:29:24 +00:00
D G Turner
20e04ad234
CLOUD: Fix Unsigned vs. Signed Comparison Compiler Warning.
2017-01-17 08:27:04 +00:00
D G Turner
7a14f199ea
CLOUD: Fix Possible Uninitialized Variable Compiler Warning.
2017-01-16 17:38:26 +00:00
D G Turner
c0a40e2e88
CLOUD: Fix Further Variable Shadowing Compiler Warnings.
2017-01-16 13:09:58 +00:00
D G Turner
aac2f7518d
CLOUD: Fix Compilation Failure.
...
Cut and Paste Typo.
2017-01-16 13:07:20 +00:00
D G Turner
85a3dad96a
CLOUD: Fix Various Variable Shadowing Compiler Warnings.
2017-01-16 13:01:17 +00:00
D G Turner
f2e03d2c07
CLOUD: Fix Various Compiler Warnings By Adding Casts.
2017-01-16 12:49:40 +00:00
D G Turner
adbf18abca
BACKENDS: Fix Shadowing Compiler Warning for isDirectory symbol.
...
This should ensure that any future cut-and-paste for new backends do not
repeat this same warning issue.
2017-01-12 08:22:40 +00:00
D G Turner
2615e95768
WII: Fix Variable Shadowing Compiler Warnings.
2017-01-12 05:45:41 +00:00
D G Turner
4dc175a4c2
WIN32: Fix Variable Shadowing Compiler Warnings.
...
These are emitted when using the MinGW compiler.
2017-01-12 05:44:50 +00:00
D G Turner
df84aee6a3
CLOUD: Add FIXME comment.
...
This is generating a compiler warning for set-but-unused, but it looks
as if this is meant to be used in some way i.e. code is unfinished or
orphaned.
2017-01-10 05:19:13 +00:00
D G Turner
32809534fd
CLOUD: Fix Remaining Shadowing Compiler Warnings.
2017-01-10 05:15:56 +00:00
D G Turner
ace486cef4
CLOUD: Fix Various Shadowing Compiler Warnings from errorCallback.
2017-01-10 04:45:22 +00:00
D G Turner
1bdeff2d56
CLOUD: Fix Two Variable Shadowing Compiler Warnings.
2017-01-10 04:14:28 +00:00
Eugene Sandulenko
ab7a152c3a
ALL: Bump copyright year to 2017
2017-01-01 10:58:56 +01:00
Colin Snover
e49cf11275
OPENGLSDL: Fix signed/unsigned comparison
2016-11-20 16:13:51 -06:00
Eugene Sandulenko
43438fbe13
CHEWY: Plug memory leaks
2016-11-13 16:36:43 +01:00
Eugene Sandulenko
6da591df88
Merge pull request #853 from criezy/ios-no-sleep
...
IOS: Disable idle timer while an engine is running
2016-11-12 12:20:17 +01:00
Eugene Sandulenko
3c22643bae
Merge pull request #811 from susnux/master
...
BACKENDS: timidity: Get rid of gethostbyname, use getaddrinfo.
2016-11-12 12:06:57 +01:00
Eugene Sandulenko
641012a141
Merge pull request #777 from m-kiewitz/master
...
SDL: Fix keyboard on macOS, when using SDL2, fix directional keypad
2016-11-08 00:57:14 +01:00
Thierry Crozat
cbfa598446
OPENGL: Remove hack to avoid issues with OSD messages from other threads
2016-10-29 15:13:32 +01:00
Thierry Crozat
8906868ee0
CLOUD: Use OSDMessageQueue to post OSD messages from the cloud thread
2016-10-29 15:13:32 +01:00
Ferdinand Thiessen
6075f5d24d
BACKENDS: timidity: Get rid of gethostbyname, use getaddrinfo.
2016-10-25 13:17:55 +02:00
lubomyr
55f37714ca
ANDROIDSDL: default storage-sdcard directory location getting direct from libSDL wrapper
2016-10-23 14:07:15 +03:00
lubomyr
a0c2fca8e4
ANDROIDSDL: back button re-mapped to F13 keycode. F13 keycode assigned to call scummvm in-game menu. CONTROL key now can be uses with games
2016-10-23 14:00:25 +03:00
Ori Avtalion
5280632b51
SDL: Fix typos
2016-10-22 21:16:21 +03:00
Marcus Comstedt
cd6f1e3f24
DC: Add Dreamcast specific clean target
2016-10-22 13:46:58 +02:00
Thierry Crozat
2882424306
IOS: Add support for filtering feature
2016-10-21 22:27:26 +01:00
Thierry Crozat
4a9446490a
IOS: Disable idle timer while an engine is running
2016-10-20 22:38:14 +01:00
Bastien Bouclet
c1070e6929
CLOUD: Don't error out when PNG support is not enabled
2016-10-20 19:21:56 +02:00
Ori Avtalion
fc85eb461d
SDL: Fix typo in function name
2016-10-18 19:24:51 +03:00
Thierry Crozat
58b2d0b317
UPDATES: Give feedback on OS X when using the Check now button
...
Checking updates from the menu was giving feedback when no update was
found, but checking updates from the Check now button in the options was
only giving feedback if a new version was found. Now it also tell us when
ScummVM is up to date.
2016-10-18 00:55:07 +01:00
Eugene Sandulenko
e8b70a4686
ALL: Fix compilation with disabled cloud but enabled libcurl
2016-10-17 18:55:22 +02:00
Thierry Crozat
5151bd99dd
Merge pull request #847 from criezy/sdl-filtering
...
Add graphics linear filtering feature
2016-10-16 18:42:40 +01:00
Eugene Sandulenko
9db3a38466
PSP: Added release building script
2016-10-16 14:49:59 +02:00
Thierry Crozat
aa39a6ce4b
SURFACESDL: Improve toggling filtering on/off
...
We don't need to recreate the window when turning filtering on or off.
Only the texture needs to be recreated.
2016-10-13 01:46:27 +01:00
Thierry Crozat
fd77916f86
SURFACESDL: Add hotkey to enable/disable filtering
2016-10-13 01:46:26 +01:00
Thierry Crozat
529a7ca26c
OPENGLSDL: Add hotkey to enable/disable filtering
...
Crtl-Alt-f now enables/disables filtering instead of changing the
graphics mode. Since there is only one graphics mode now, a hotkey
to change it is a bit useless.
2016-10-13 01:46:26 +01:00
Thierry Crozat
3a69898729
SURFACESDL: Add support for filtering feature when using SDL2
...
This implements the request from ticket #9573 : SDL1/2: Different
rendering/filtering?
2016-10-13 01:45:01 +01:00
Thierry Crozat
c6ce1c8002
OPENGL: Add support for filtering feature
...
This replaces the two graphics modes "OpenGL (No filtering)" and
"OpenGL". Now there is a single "OpenGL" mode and filtering is
controlled by the kFeatureFilteringMode.
2016-10-13 01:45:01 +01:00
Thierry Crozat
d0b2770243
OPENGLSDL: Make some OSD messages translatable
...
Also change some OSD messages to be the same or similar to
messages used by the Surface SDL code.
2016-10-13 01:15:38 +01:00
Eugene Sandulenko
1c2ed0c094
ANDROIDSDL: Update port settings
2016-10-10 23:35:41 +02:00
Eugene Sandulenko
cb4ec21d13
GCW0: Fixed wording in the README
2016-10-09 16:14:13 +02:00
Eugene Sandulenko
42a023b81f
GCW0: Mention that only 320x240 games are supported
2016-10-09 16:05:28 +02:00
Eugene Sandulenko
355c4fa646
JANITORIAL: Remove more trailing spaces
2016-10-09 15:02:02 +02:00
Bastien Bouclet
7941e5d530
SDL: Switch to full screen updates when the OSD is transparent
...
Previous releases also did full screen updates for transparent OSD messages.
There should be no performance regression with that regard.
Computing smaller update rects is non trivial, but should be looked into if
performance is an issue for OSD icons.
Fixes #9598
2016-10-03 07:31:18 +02:00
Tarek Soliman
a6d3b61d32
MAEMO: Update debian/changelog
2016-09-28 20:44:30 -05:00
Marcus Comstedt
efebb327d9
DC: Fix indentation
2016-09-28 16:11:08 +02:00
Marcus Comstedt
95ad63e992
DC: Ignore case for VM filenames
2016-09-27 13:06:15 +02:00
Marcus Comstedt
4aacc41fff
DC: Implement atexit handling for plugins
2016-09-27 13:06:15 +02:00
Marcus Comstedt
9c235b3d6e
DC: Update versions of dependencies in README
...
The new GCC and Newlib are required for correct atexit handling
in plugins. The new Ronin is required to support the Newlib upgrade,
and also for custom filename handling on VM saves.
2016-09-27 13:06:15 +02:00
Eugene Sandulenko
53790e7497
RELEASE: This is 1.10.0git
2016-09-26 20:57:54 +02:00
Eugene Sandulenko
c73d66adb5
Merge pull request #834 from lubomyr/master
...
ANDROIDSDL: fixed switching to capital letter
2016-09-23 17:07:54 +02:00
lubomyr
a7ec02d887
ANDROIDSDL: fixed switching to capital letter
2016-09-21 14:09:00 +03:00
lubomyr
6ffc90412c
SDL: mapKey changed as virtual function
2016-09-20 19:48:14 +03:00
Bastien Bouclet
5e133cdd34
OPENGL: Make sure the cloud icon is cleared immediatly after it is hidden
2016-09-18 17:55:09 +02:00
Bastien Bouclet
0f9583e4ca
SDL: Make sure the cloud icon is cleared immediatly after it is hidden
2016-09-18 17:55:09 +02:00
Bastien Bouclet
75599a4c25
OPENGL: Remove multithread support from displayActivityIconOnOSD
...
It is no longer being called by another thread.
2016-09-18 17:55:09 +02:00
Bastien Bouclet
1a1a5b5f69
CLOUD: Change the cloud icon to be updated by the main thread
...
The cloud manager registers itself as an event source as a mean to be polled
periodically by the GUI or engine code. The periodical polling is used to
update the OSD icon indicating background sync activity.
Also move the cloud icon from ConnectionManager to CloudManager,
allowing to decouple icon handling from network connections updates.
2016-09-18 17:54:12 +02:00
Thierry Crozat
a87a702eb2
ALL: Homogeneize use of 'saved game' in messages
2016-09-18 16:40:34 +01:00
Eugene Sandulenko
e51dcbb153
Merge pull request #830 from lubomyr/master
...
ANDROIDSDL: set default gfx_mode to 2x
2016-09-18 17:39:22 +02:00
lubomyr
c325f813b9
ANDROIDSDL: set default gfx_mode to 2x
2016-09-18 14:06:49 +02:00
Thierry Crozat
c42dfbc496
BACKEND: When removing a save files also remove entry from timestamps file
2016-09-18 05:51:57 +01:00
Thierry Crozat
33d1c55866
BACKENDS: Ignore timestamps for inexistent files in DefaultSaveFileManager
...
This fixes a bug in the synchronisation of the save files to the cloud when
the timestamps file contains entries for files that do no longer exist. In such
a case the synchronisation would fail.
2016-09-18 05:31:29 +01:00
Thierry Crozat
1fd4dbfdce
SDL: Ignore outdated SDL resize event in OpenGL mode
...
Those outdated resize events are sent from SDL_DestroyWindow when the
window is fullscreen and doesn't have the SDL_WINDOW_FULLSCREEN_DESKTOP
flag (thus Surface SDL is not affected). Switching resolutions in fullscreen, or
switching from fullscreen to windowed will therefore cause a resize event to
be received with the former fullscreen resolution after we have already setup
the window to use the new resolution. If we don't ignore this event we end up
with a texture size and a window size that are not consistent and for example
see only a part of the texture (if the old resolution is bigger than the new one.
2016-09-18 04:23:37 +01:00
Thierry Crozat
973df9d2fd
CLOUD: Fix compilation for integer constant too large for 'long' type
...
Hopefully all ports we have support LL constants. Otherwise we will
have to find a different way to fix this.
2016-09-17 21:45:46 +01:00
lubomyr
cc945d6105
ANDROIDSDL: default config key browser_lastpath changed to '/storage'
2016-09-16 18:07:45 +02:00
Thierry Crozat
2d651fd0f4
OPENGL: Fix dereferencing null pointer in OpenGLGraphicsManager
...
This fixes a crash when calling displayActivityIconOnOSD with a
NULL icon, which is used to remove the current activity icon.
2016-09-13 22:58:13 +01:00
Bastien Bouclet
2f41b9fcfd
BACKENDS: Provide an empty implementation for displayActivityIconOnOSD in BaseBackend
2016-09-13 22:23:53 +02:00
Bastien Bouclet
0802bbd8ee
OSYSTEM: Remove the API allowing to draw to the OSD surface directly
2016-09-13 20:41:26 +02:00
Bastien Bouclet
9cbaad6140
SDL: Switch the OpenGL renderer to use small textures to draw the OSD
2016-09-13 20:41:26 +02:00
Bastien Bouclet
05bc82b622
SDL: Switch the surface renderer to use small surfaces for OSD drawing
2016-09-13 20:33:42 +02:00
Bastien Bouclet
4d68b93aba
CLOUD: Switch to the new OSD API
2016-09-13 20:29:09 +02:00
Bastien Bouclet
521ba2cb8a
OSYSTEM: Introduce a method allowing to draw a background activity icon
2016-09-13 20:25:13 +02:00
Bastien Bouclet
6234b93813
SDL: Add a fixme regarding the encoding of the string returned by getTextFromClipboard
2016-09-13 09:21:51 +02:00
Bastien Bouclet
9e502bf9aa
SDL: Plug a memory leak in OSystem_SDL::getTextFromClipboard
2016-09-13 09:19:53 +02:00
Thierry Crozat
1f2a50bcd3
CLOUD: Move openUrl to OSystem
2016-09-10 01:12:42 +01:00
Thierry Crozat
fa5a5bf865
CLOUD: Move wwwroot archive to dists and script to devtools
...
Both the data used to generate the archive and the archive itself
were moved to dists/ instead of being in backends/.
The script was also improved to optionally take a path as a command
line argument to indicate where the wwwroot data are instead of
assuming they are in the working directory.
Finally a 'wwwroot' make target was also added to invoke the python script and generate the archive.
with the expected path to
2016-09-06 00:43:25 +01:00
Thierry Crozat
77357ff71a
CLOUD: Fix looking for the wwwroot.zip archive
...
If the themepath was defined but the wwwroot.zip file was not in
that path, looking for it failed as it never reached the part of the
code using SearchMan to look for it.
2016-09-05 23:39:59 +01:00
Thierry Crozat
d853240eee
CLOUD: Do not error out when loading icon if OSD format is not 2 or 4 Bpp
...
Graphics::TransparentSurface::convertTo() errors out when the destination
format is not 2 or 4 Bpp. But in the case of the cloud icon we can recover
from it. So just print a warning and don't close the application.
2016-09-05 21:59:34 +01:00
Thierry Crozat
a8cb3c8404
OPENGL: Implement getOSDFormat and copyRectToOSD
2016-09-05 21:40:45 +01:00
Thierry Crozat
65d3c15b01
OPENGL: Add missing USE_OSD defined checks around OSD code
2016-09-05 21:21:32 +01:00
Eugene Sandulenko
23e2a61d4e
SDL: Move mouse in SDL2 only when window has focus.
2016-09-04 16:48:50 +02:00
Thierry Crozat
29535c0a55
SDL: Do not forbid time.h symbols when FORBIDDEN_SYMBOL_EXCEPTION_time_h is defined
...
This hopefully fixes a regression from 848c5c3
.
2016-09-04 02:26:27 +01:00
Thierry Crozat
848c5c3f84
Merge pull request #810 from tsoliman/sdl2-macports
...
SDL: Fix build with MacPorts SDL2
2016-09-03 23:08:04 +01:00
Thierry Crozat
a2a985368c
BUILD: Tie the SDL_net version to the SDL version
...
This means that when using SDL 1.2 we use SDL_net 1.2, but when
using SDL 2 we now use SLD_net 2 as well. Both versions work
properly and there is not code change needed in ScummVM.
This change is because SDL_net depends on SDL, and using
SDL_net 1.2 with SDL 2 means we can end up needing to link with
both the SDL and SDL2 libraries.
2016-09-03 23:07:21 +01:00
Eugene Sandulenko
8e8199f6af
LINUXMOTO: Fix OSD performance when OSD is not drawn
2016-09-03 21:30:55 +02:00
Eugene Sandulenko
57ae1cb89d
GPH: Fix OSD performance when OSD is not drawn
2016-09-03 21:30:40 +02:00
Eugene Sandulenko
c2f5c48068
DINGUX: Fix OSD performance when OSD is not drawn
2016-09-03 21:30:04 +02:00
Eugene Sandulenko
b8ee5322f4
JANITORIAL: Remove trailing whitespaces
2016-09-03 21:20:16 +02:00
Eugene Sandulenko
7910123446
SDL: Optimize OSD drawing
2016-09-03 21:20:02 +02:00
Eugene Sandulenko
fab199d37e
JANITORIAL: Make GPL headers uniform
2016-09-03 12:46:38 +02:00
Eugene Sandulenko
e93b52416f
LINUXMOTO: Adapt to OSD changes
2016-09-03 10:18:47 +02:00
Eugene Sandulenko
58096d909f
GPH: Fix formatting
2016-09-03 10:18:47 +02:00
Eugene Sandulenko
2fa97f20e8
DINGUX: Adapt to new OSD changes
2016-09-03 10:18:47 +02:00
Bastien Bouclet
25bf68c39a
BACKENDS: Remove extra line returns in warnings
2016-09-03 07:14:16 +02:00
Eugene Sandulenko
2d39f75b7d
GPH: Attempt to fix OSD
2016-09-02 23:57:13 +02:00
Alexander Tkachev
489489b127
PS2: Fix Ps2SaveFileManager
...
* updateSavefilesList() stub;
* openRawFile();
* Common::OutSaveFile in openForLoading().
2016-08-31 14:12:45 +06:00
Alexander Tkachev
ac93dd99fe
DC: Add RoninCDFileNode::create()
...
Returns false, as we don't create files/directories on CD.
2016-08-31 13:46:43 +06:00
Alexander Tkachev
a6bcd207fc
DC: Fix VMSaveManager
...
* updateSavefilesList() stub;
* openRawFile();
* Common::OutSaveFile in openForSaving();
* OutVMSave derived from WriteStream.
2016-08-31 13:39:09 +06:00
Alexander Tkachev
7f913c831d
DS, N64: Fix openForSaving()
...
Fails to build because OutSaveFile's name should've been qualified.
2016-08-31 12:38:40 +06:00
Alexander Tkachev
9d6ae2a33f
DS, N64: Fix SaveFileManagers
...
Added updateSavefilesList() and openRawFile() stubs. It should build
fine now, I guess.
2016-08-31 12:33:57 +06:00
Alexander Tkachev
153f06b324
N64: Fix OutSaveFile error
...
OutSaveFile was just a typedef of WriteStream once, but now it's not.
These Out*Save classes are then wrapped with OutSaveFile, so it should
be OK to derive them from WriteStream instead of OutSaveFile.
2016-08-31 12:07:53 +06: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
Willem Jan Palenstijn
fb592a0dbd
BACKENDS: Rename variable shadowing function
2016-08-30 21:53:21 +02:00
Willem Jan Palenstijn
d60879b535
SDL: Fix const cast
2016-08-30 21:52:27 +02:00
Eugene Sandulenko
6a081212f1
CLOUD: Fix Windows cross-compilation
2016-08-30 21:29:22 +02:00
Bastien Bouclet
b00cb955d9
BACKENDS: Use open instead of creat to create files
...
creat is not defined on the PS3. Also close the file descriptor.
2016-08-30 21:19:59 +02:00
Alexander Tkachev
6b0766dc92
Merge branch 'master' of https://github.com/scummvm/scummvm
2016-08-30 21:08:06 +06:00
Alexander Tkachev
f8fe150130
CLOUD: Fix Webserver's usage of DefaultSaveFileManager
...
concatWithSavesPath() is only defined when curl is used, but was used in
Webserver even when curl is unavailable.
2016-08-30 21:08:02 +06:00
Eugene Sandulenko
111dc18ef3
Merge pull request #433 from klusark/assets
...
ANDROID: Update the asset archive code to use AAssets
2016-08-30 15:14:12 +02:00
Eugene Sandulenko
bfbfbd3e1a
Merge pull request #788 from Tkachov/cloud
...
ALL: Add Cloud storage support
2016-08-30 13:54:12 +02:00
Eugene Sandulenko
f9f55d1af3
ANDROIDSDL: Fix menu button
2016-08-29 19:37:25 +02:00
Alexander Tkachev
368f664c81
COMMON: Fix WriteStream::pos() once again
...
MemoryReadWriteStream now returns int32, not uint32. It actually doesn't
ever return -1 to indicate that an error occured, so uint32 was a better
choice, but that's what is used in WriteStream base class now.
That method is abstract, so that's also why OutSaveFile had to override
it.
2016-08-24 16:24:16 +06:00
Peter Bozsó
02a997e468
CLOUD: Remove unused includes
2016-08-24 16:07:55 +06:00
Alexander Tkachev
97cf2be7ef
CLOUD: Update LocalWebserver
...
Reader now reads headers into stream, and some checks are added there
and in UploadFileClientHandler, so if headers are too long, they are
treated as bad request.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
dc02a789b6
CLOUD: Use forbidden combinations
...
I accidentally tried "folder../" instead "folder/../" and understood
that I made "folder../" forbidden too, though it's a valid folder name.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
8a1cca896e
CLOUD: Update handlers
...
Now if there is no "rootpath" specified, it's not even listed by
FilesPageHandler and ListAjaxHandler. And, of course, not available to
use anywhere else.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
acfa1d1f10
CLOUD: Handle paths in marked places
...
Paths containing '../' are forbidden to use in Files Manager. There is
also a special inner black list of paths which are not used and a check
that specified path is under "savepath" or "rootpath" (from "cloud"
domain).
2016-08-24 16:07:55 +06:00
Alexander Tkachev
dd9e5a95dc
CLOUD: Mark places where path handling is needed
2016-08-24 16:07:55 +06:00
Alexander Tkachev
126fe9c845
CLOUD: Add "minimal mode" in LocalWebserver
...
StorageWizardDialog now runs LocalWebserver in "minimal mode" for
security reasons. In this mode server uses only those handlers which
state to support it.
There are two handlers which support minimal mode: IndexPageHandler
(which handles `code` requests needed by StorageWizardDialog) and
ResourceHandler (which provides inner resources like `style.css` or
`logo.png` from `wwwroot.zip` archive).
2016-08-24 16:07:55 +06:00
Peter Bozsó
a1de322c18
CLOUD: Use overriden handle() instead of ClientHandlerCallback in page handlers
...
Using a dedicated callback object for this was an unnecessary overhead.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
712410496e
CLOUD: Fix UploadFileClientHandler
...
It now redirects user on success not only when file was the last field
in the content, but also when it was uploaded already and Handler worked
further to search for more files.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
4f0c071e53
CLOUD: Add custom User-Agent
...
Full version is used like in Eugene's Google Analytics stub. Plus, on
PS3 that string contains "PlayStation", and that would be cool to know
that ScummVM+libcurl+PS3 work together.
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
0558ba423c
CLOUD: Fix warnings
2016-08-24 16:07:55 +06:00
Peter Bozsó
64b361b335
CLOUD: Move determineMimeType to ResourceHandler
2016-08-24 16:07:55 +06:00
Peter Bozsó
b68bd78b44
CLOUD: Remove unused removePathHandler(), make addPathHandler() private
2016-08-24 16:07:55 +06:00
Alexander Tkachev
37859a9203
CLOUD: Fix Requests
...
Remove unnecessary JSON warnings, fix a few places.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
bb529e6fd0
CLOUD: Update SavesSyncRequest
...
Add JSON checks in the callback.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
d5aca1f4fa
CLOUD: Update OneDriveUploadRequest
...
More JSON checks.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
fc8e29d583
CLOUD: Update OneDrive
...
Added JSON checks.
New jsonContainsObject() method added to CurlJsonRequest.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
d34b9b91ad
CLOUD: Update GoogleDriveUploadRequest
...
JSON checks in callback.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
a381e06fda
CLOUD: Update GoogleDriveStorage
...
More JSON checks in callbacks.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b3aa9f663f
CLOUD: Update DropboxUploadRequest
...
JSON checks.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
364c74df93
CLOUD: Update DropboxStorage
...
JSON checks added.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
6be736b5ed
CLOUD: Update Dropbox Requests
...
Adding more JSON checks there.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
a2e0199727
CLOUD: Update BoxUploadRequest
...
More JSON checks there.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
166d1121e5
CLOUD: Update TokenRefreshers
...
Box's, Google Drive's and OneDrive's token refreshing requests have more
JSON checks now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
9d96d40b3d
CLOUD: Add JSON-related checks in BoxStorage
2016-08-24 16:07:55 +06:00
Alexander Tkachev
2c34864a06
CLOUD: Fix UploadFileClientHandler
...
A few possible memory leaks about `_contentStream` there.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
46dda5fce0
CLOUD: Update NetworkReadStream
...
It now uses both CURLOPT_PROGRESSFUNCTION and CURLOPT_XFERINFOFUNCTION.
The latter is available in new libcurl (>= 7.32.0) only, thus the former
is added for older versions support.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
0b97aff866
CLOUD: Minor TODO fix
2016-08-24 16:07:55 +06:00
Alexander Tkachev
6dd10f3a68
CLOUD: Add KEY/SECRET override code
...
The following constants must be defined if ENABLE_RELEASE is:
* RELEASE_DROPBOX_KEY,
* RELEASE_DROPBOX_SECRET,
* RELEASE_ONEDRIVE_KEY,
* RELEASE_ONEDRIVE_SECRET,
* RELEASE_GOOGLE_DRIVE_KEY,
* RELEASE_GOOGLE_DRIVE_SECRET,
* RELEASE_BOX_KEY,
* RELEASE_BOX_SECRET.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b9bba9bd4b
ALL: Move Clipboard support to OSystem
...
Commit adds kFeatureClipboardSupport. hasTextInClipboard() and
getTextFromClipboard().
OSystem_SDL has this feature if SDL2 is used.
EditableWidget and StorageWizardDialog use g_system to access clipboard
now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
15c6772ff7
ALL: Fix debug, warning and error usage
...
Added prefixes, used debug(9).
2016-08-24 16:07:55 +06:00
Alexander Tkachev
d57e0c89b5
CLOUD: #define all OAuth2/API-related URLs
2016-08-24 16:07:55 +06:00
Alexander Tkachev
f3959e1401
CLOUD: Upload ListDirectory Requests
...
Lots of checks to avoid JSON-related segfaults added.
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
f95073f008
CLOUD: JANITORIAL: More whitespace fixes
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
eb268cd14f
CLOUD: Fix warning
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
d57fca4665
CLOUD: JANITORIAL: Fix code formatting
2016-08-24 16:07:55 +06:00
Alexander Tkachev
cccfe7c247
CLOUD: Update BoxListDirectoryByIdRequest
...
It now uses special CurlJsonRequest static methods to check whether JSON
is an object, has a string or integer parameter.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
43c940c985
CLOUD: Updated BoxListDirectoryByIdRequest
...
It now checks for all keys in JSON to avoid segfaults and prints
warnings if passed keys are missing or have wrong types.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
7c9912e3d8
CLOUD: Fix IndexPageHandler warning
2016-08-24 16:07:55 +06:00
Eugene Sandulenko
876b8616af
CLOUD: Fix format warning
2016-08-24 16:07:55 +06:00
Alexander Tkachev
758f46ddf0
CLOUD: Fix FolderDownloadRequest TODO
2016-08-24 16:07:55 +06:00
Alexander Tkachev
a30d0d1994
CLOUD: Update DownloadRequest's TODO
...
We need a way to reopen DumpFile if we want DownloadRequest to support
restarting.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
5f9beb76cd
CLOUD: Fix HTTP response code TODOs
2016-08-24 16:07:55 +06:00
Alexander Tkachev
bd8f2ed825
CLOUD: Fix some TODOs in CloudManager
...
"No Storage connected!" error message is passed to the error callback
now when there is no Storage connected to the CloudManager.
2016-08-24 16:07:55 +06:00
Peter Bozsó
8c62993769
CLOUD: Remove remove() from BoxStorage
2016-08-24 16:07:55 +06:00
Alexander Tkachev
efebb5b90d
CLOUD: Remove DropboxStorage::remove()
2016-08-24 16:07:55 +06:00
Peter Bozsó
9254df2d96
CLOUD: Fix code formatting
2016-08-24 16:07:55 +06:00
Alexander Tkachev
772d8ee42b
CLOUD: Fix redirect_uri
selection code
...
Now it's not hardcoded based on USE_SDL_NET, but one or another value is
used depending on currently selected LocalWebserver's port.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
438ba985a4
JANITORIAL: Remove spaces at the end of the line
...
I knew there were some, but I wanted to fix them once, instead of doing
it all the time.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
01161ae7dd
CLOUD: Do some refactoring/cleanup in Networking
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b180c73675
CLOUD: Do some refactoring/cleanup
...
Nothing really major.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
a449ddce15
CLOUD: Fix Cppcheck warnings
2016-08-24 16:07:55 +06:00
Alexander Tkachev
85f4c69fc9
CLOUD: Update StorageWizardDialog
...
It now hides code fields not just when built with SDL_Net, but also when
LocalWebserver's using default port.
So that's why NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE is defined
in localwebserver.h now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
39865e6e6c
CLOUD: Add port override for LocalWebserver
...
It's enabled only when NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE is
defined.
It's not defined, because override means we have to reconfigure our
redirect links somehow to use the override port.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b1264df120
CLOUD: Check whether Storage is working when replacing it
...
We do that in CloudManager::replaceStorage(), but I've tried to
eliminate such possibility by adding a check in the StorageWizardDialog.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
f743b31963
CLOUD: Fix CloudManager::connectStorage() memory leak
2016-08-24 16:07:55 +06:00
Alexander Tkachev
0200694dd0
CLOUD: Fix backends/module.mk
...
MinGW failed to compile with the latest fix.
Checked this fix with create_project for MSVC, MinGW's make, make under
kubuntu and while building Android apk.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
e833c8f65c
CLOUD: Add OSD warning when can't start LocalWebserver
2016-08-24 16:07:55 +06:00
Alexander Tkachev
1d78d20fcf
CLOUD: Fix Dropbox and Google Drive UploadRequests
...
Possible segfault there too.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
ab0f2d1a03
CLOUD: Fix OneDriveUploadRequest
...
Segfault when given stream is nullptr.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
6753c18d6f
CLOUD: Add default SavesSync callbacks
...
With OSD messages indicating whether saves sync is complete, cancelled
or failed.
2016-08-24 16:07:55 +06:00
Peter Bozsó
8e9d106658
CLOUD: Fix makefile
2016-08-24 16:07:55 +06:00
Alexander Tkachev
a13e03e988
CLOUD: Add Networking::Connection::isLimited()
...
`false` everywhere by default, but works on Android (`true` if not
Wi-Fi).
2016-08-24 16:07:55 +06:00
Alexander Tkachev
0c1c274abd
CLOUD: Fix OneDriveUploadRequest
...
OneDrive doesn't accept empty files, so UploadRequest just skips such.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
d0c54cdd64
CLOUD: Fix DropboxCreateDirectoryRequest
...
It now calls success callback with `false` on Dropbox's
"path/conflict/folder", indicating that the directory already exists.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
55568d757c
CLOUD: Move Dropbox to API v2
...
We had a few places where their deprecated API v1 was used.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
36b381e411
CLOUD: Make "/create" support AJAX
...
Now creating directories doesn't refresh the "/filesAJAX" page.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
da229dd84c
CLOUD: Add "ajax" parameter for "/create" and "/upload"
...
If it's set, these redirect to "/filesAJAX" instead of "/files".
2016-08-24 16:07:55 +06:00
Alexander Tkachev
e6caa482e1
CLOUD: Add messages in "/filesAJAX"
2016-08-24 16:07:55 +06:00
Alexander Tkachev
cd6d45ecf8
CLOUD: Minor "/filesAJAX" fix
2016-08-24 16:07:55 +06:00
Alexander Tkachev
6442dad710
CLOUD: Add "breadcrumbs" in "/filesAJAX"
2016-08-24 16:07:55 +06:00
Alexander Tkachev
09ae2f7593
CLOUD: Add "/filesAJAX" sketch
...
It works already, but still requires some polishing.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
5163fb4e02
CLOUD: Add ListAjaxHandler
...
"/list" now returns JSON with directory information. Would be used in
AJAX-based Files Manager.
2016-08-24 16:07:55 +06:00
Peter Bozsó
b616cc3d57
CLOUD: Fix indentation in openurl-osx.cpp
2016-08-24 16:07:55 +06:00
Peter Bozsó
18fc113aa9
CLOUD: Add URL opening for OS X
2016-08-24 16:07:55 +06:00
Alexander Tkachev
6c0f491c4f
CLOUD: Add "Index of" label in server's "/files"
2016-08-24 16:07:55 +06:00
Alexander Tkachev
ded8cdf0a0
CLOUD: Add openurl-android.cpp
2016-08-24 16:07:55 +06:00
Alexander Tkachev
06ccfd4b9a
CLOUD: Add icons in "/files" list
2016-08-24 16:07:55 +06:00
Alexander Tkachev
626d85ea49
CLOUD: Fix module.mk for openurl-default.o
...
It's now added to all the backends manually.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
1b56f59add
GUI: Update DownloadDialog
...
It now has download size and speed labels.
Commit also fixes minor mistake in ConnMan.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
c431ae6d84
CLOUD: Calculate FolderDownload download speed
2016-08-24 16:07:55 +06:00
Alexander Tkachev
85adefdb86
CLOUD: Update FolderDownloadRequest::getProgress()
...
It now is based on downloaded size, not number of files.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
479c76bbd2
CLOUD: Fix IdDownloadRequest
...
Wrong value was returned in getProgress() on nullptr there.
2016-08-24 16:07:55 +06:00