Commit graph

49 commits

Author SHA1 Message Date
Unknown W. Brackets
5009698cc0 Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
Unknown W. Brackets
913121cf2b Io: Consistently use error codes with OpenFile().
This gets rid of OpenWithError(), and just always returns a negative value
on error for OpenFile().  Also fixed the sequence rollover, which could've
returned 0.

0 should be considered a valid handle ideally, but left it never returning
0 to simplify cleanup in some areas.
2019-10-20 11:03:37 -07:00
Unknown W. Brackets
1307273dd7 UI: Cleanup install threads from UI thread. 2019-09-28 11:39:58 -07:00
Henrik Rydgård
ccf63ef544 Fix crash in zip handling 2019-09-27 22:55:39 +02:00
Unknown W. Brackets
fbcfd77402 UI: Support zip files with deep folder structures.
This will extract the level that has textures.ini, but it doesn't really
handle skipping other folders properly.
2019-07-27 06:17:56 -07:00
Unknown W. Brackets
4832434865 UI: Fix zip leak in error case. 2019-07-15 20:57:43 -07:00
Henrik Rydgård
3f134606e4
Merge pull request #12175 from unknownbrackets/texreplace-install
UI: Allow installing texture packs from zips
2019-07-15 22:03:31 +02:00
Unknown W. Brackets
8aed212952 UI: Allow installing texture packs from zips.
Requires the textures.ini to have a [games] section.
2019-07-14 17:43:51 -07:00
Unknown W. Brackets
07b5470827 UI: Fix type comparison warning. 2019-07-14 15:07:47 -07:00
Henrik Rydgård
274a8d7538 Address review feedback, thanks unknownbrackets 2019-07-14 11:32:32 +02:00
Henrik Rydgård
66c3f31ff9 More GameManager improvements. 2019-07-13 18:19:44 +02:00
Henrik Rydgård
aca0f35bdf Fix build error on non-windows 2019-07-13 18:19:43 +02:00
Henrik Rydgård
0e978ba2e3 Pre-check the contents of ZIP files before allowing install. 2019-07-13 18:19:43 +02:00
Henrik Rydgård
663f10d08b GameManager: Actually allow installing ISOs from zip files. Refactor. 2019-07-13 18:19:43 +02:00
Henrik Rydgård
4d30a8d04e Start refactoring GameManager zip handling to easier support ISOs in zips 2019-07-13 18:19:43 +02:00
Henrik Rydgård
66dc0ea62f Typo fix 2017-05-19 11:23:22 +02:00
Henrik Rydgård
d0613511b2 Many reported ANRs were from homebrew installs. Make sure installs run on the background thread. 2017-05-18 14:21:13 +02:00
Henrik Rydgard
b1a530b3a5 Use the root of the memstick as a tempdir for downloads. Should help #8711 2017-04-07 09:58:36 +02:00
Henrik Rydgård
85c8d9b806 Homebrew Store: Add support for cancelling downloads, fix progress bar. Fixes #9374 2017-03-06 16:03:05 +01:00
Henrik Rydgard
50be4e72b2 Get rid of our own silly reimplementation of std::thread 2017-02-27 20:51:36 +01:00
Florent Castelli
4145b60a0e symbian: Remove! 2016-10-11 18:49:08 +02:00
Henrik Rydgard
3924d8bdea Fix bug in ZIP file extraction breaking the Mega Drops homebrew, and others.
Was rounding file sizes up to the nearest 128k...
2016-03-09 17:02:15 +01:00
Unknown W. Brackets
d5196b44f9 Minor tweaks. 2016-01-17 09:45:55 -08:00
Henrik Rydgard
3ba911bf07 Replace some calls to fopen with File::OpenCFile (utf8). 2016-01-17 15:59:20 +01:00
Henrik Rydgard
cf63ec6d3c Delete some duplicate code 2015-09-22 23:02:02 +02:00
sergiobenrocha2
5ec87f3459 Improve detection of for shared libs in both sdl and Qt (zlib, libzip, snappy and glew). 2015-09-16 00:59:31 -03:00
vnctdj
c8d4ebdbfa Consistently use *sy for the System i18n category 2015-07-02 01:00:04 +02:00
sum2012
4c827d1b3e Add install error translatable 2015-03-04 20:59:09 +08:00
Kentucky Compass
fb1a3149fa Don't use strstr for single character search terms 2013-12-30 21:48:36 -08:00
Unknown W. Brackets
f14361c3b8 Add a bunch more missing cstring includes. 2013-12-30 21:37:19 -08:00
Henrik Rydgård
87f203a5b8 More include untangling 2013-12-29 23:44:35 +01:00
Unknown W. Brackets
0636a65ad9 Use ReadEntireFile() a few more places.
This fixes one or two minor memory leaks.
2013-12-08 12:02:37 -08:00
Henrik Rydgård
37de6eee0f Improved error handling in ZIP installer 2013-12-06 15:29:14 +01:00
Henrik Rydgård
c262e47bdc Error handling on disk full when installing zip files 2013-12-06 12:49:57 +01:00
Henrik Rydgård
3ab1aeb9ef Install zip file screen: Add working progress bar for install. 2013-12-05 17:49:37 +01:00
Sacha
502621bb08 Travis: Fix android script. 2013-12-06 00:35:45 +10:00
Sacha
8eacddf549 Symbian buildfix. 2013-12-06 00:18:39 +10:00
Henrik Rydgård
160cafdb34 Game installer: Handle zip files without directory entries 2013-12-05 14:21:07 +01:00
Sacha
3ccbbcf63b Buildfixes from homebrew merge. 2013-12-05 22:41:23 +10:00
Henrik Rydgård
e7ec53a97f zip game installer: Extract files by streaming instead of reading the
whole thing into ram.
2013-12-05 13:22:06 +01:00
Henrik Rydgård
8e658d628f GameManager: Add functions to query progress 2013-12-05 13:01:00 +01:00
Henrik Rydgård
6e60db7c22 Store: Handle zip files with external URLs and deep paths inside. 2013-12-05 12:48:09 +01:00
Henrik Rydgård
eaed2e516b Show simple progress bars at the top of the screen during downloads.
Should do something more practical eventually.
2013-12-05 12:48:09 +01:00
Henrik Rydgård
8b1ef01b5a GameManager: Sanity check ZIP files when installing them 2013-12-05 12:48:09 +01:00
Henrik Rydgård
5833bd45c3 More work on the Homebrew Store. 2013-12-05 12:48:09 +01:00
Henrik Rydgard
3a6941c1ab Safeguard GameManager::Uninstall from calls with empty filename.
Could wipe all your games if a bug would cause this to happen.
2013-12-05 12:48:09 +01:00
Henrik Rydgård
15f45806b9 GameManager: Sanity check ZIP files when installing them 2013-12-05 12:48:09 +01:00
Henrik Rydgård
7f481905b0 More work on the Homebrew Store, get it working on Windows and Android 2013-12-05 12:48:09 +01:00
Henrik Rydgård
2fb2602387 Initial draft of the Homebrew Store. Lets you install a few homebrew. 2013-12-05 12:48:08 +01:00