Commit Graph
230 Commits
Author SHA1 Message Date
Unknown W. Brackets 4f586f9567 PPGe: Left align messages in dialogs.
It was previously left aligned, but the TextDrawer was being told to
center.  These are meant to just center the enclosing box of text, not the
individual lines within.

Makes Final Fantasy 3 look a lot better.
2020-05-23 19:59:56 -07:00
Unknown W. Brackets e4abfd5408 PPGe: Remove half-pixel offset.
This made the background misaligned, causing a black border on the right
and bottom edges.
2020-04-22 21:19:34 -07:00
Unknown W. Brackets 41dfe05de2 Headless: Fix compile on Android. 2020-04-05 15:23:13 -07:00
Henrik Rydgård 620aa50cf1 PPGe: Slightly reduce the font size, might help #12764 2020-03-28 14:37:35 +01:00
Unknown W. Brackets dbc78b437e PPGe: Fix dialog button positioning.
The measure was previously the line height, but always ultimately used
as the full text height.  This just makes it always full height.
2020-03-23 18:23:35 -07:00
Unknown W. Brackets d2d07e253b PPGe: Avoid crash with missing metadata. 2020-03-22 07:12:16 -07:00
Unknown W. Brackets da9158b34b UI: Allow startup without UI assets.
On platforms where we render fonts, it is at least somewhat usable without
assets.  A much better experience than a segfault.

On other platforms, it'll probably be mostly unusable, but you can already
get that with an old/wrong assets file.
2020-03-21 21:35:43 -07:00
Unknown W. Brackets de81b706c4 PPGe: Clear unused parts of text image buffers.
Prevents artifacts when the RAM previously had other data in it.
2020-03-11 06:48:11 -07:00
Unknown W. Brackets 5f65c075e2 PPGe: Correct double spacing in some save text. 2020-03-11 06:37:18 -07:00
Unknown W. Brackets 9c9ace6e1a Android: Delay TextDrawer init in PPGe.
We need it to init on the correct thread.
2020-03-10 21:40:47 -07:00
Unknown W. Brackets 08a6047768 PPGe: Show ellipsis for overly long lines.
To match PPGE_LINE_USE_ELLIPSIS when using TextDrawer.
2020-03-10 21:30:53 -07:00
Unknown W. Brackets 6652fe261f PPGe: Use TextDrawer for save UI if available.
This should result in better spacing for non-Latin characters, and less
missing letters.  Basically the same benefits as for the UI.
2020-03-10 21:30:53 -07:00
Unknown W. Brackets f2c88d6626 PPGe: Make some of the API internal only.
We don't use these externally and probably won't.
2020-03-10 21:30:53 -07:00
Unknown W. Brackets cb1b7b1e43 Core: Bring over some file related Switch changes.
Reducing the distance from the Switch port code.
2020-03-03 22:53:03 -08:00
Henrik Rydgård 4c392c6473 Fix bug in atlas gen.
(Due to the squash and some reordering, the previous commit already
includes fixed metadata)
2020-03-01 12:06:47 +01:00
Henrik Rydgård 45d94c4877 Switch all images to dynamic lookup in the atlas by string ID.
SLN fix

It works, but with the wrong images and the wrong characters!

Fix another bug in atlastool's binary output

Get Android building again.

Oops, didn't mean to disable this permanently.

Error checking

Minor cleanup

Gotta tweak my git ignores...

Regenerate metadata
2020-03-01 12:06:47 +01:00
Henrik Rydgård 7e9578e49d Get rid of atlas tables. 2020-03-01 12:04:51 +01:00
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årdandGitHub 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 2f26297062 Clean up some more ifdefs 2019-05-10 23:25:57 +02:00
driver1998 5072584781 Fix neon headers for MSVC ARM64
MSVC uses arm64_neon.h for ARM64, arm_neon.h is ARM32 only.
2019-05-04 22:45:15 +08:00
Henrik Rydgård bd71af24db Fix some minor things found looking at Valgrind output 2019-02-27 13:42:00 +01:00
Unknown W. Brackets b1146d8d9d PPGe: Correct text wrap without height. 2019-02-20 17:04:30 -08:00
Unknown W. Brackets 9a5fbe5ea5 Savedata: Truncate detail if it's too long.
We could add scrolling later, but this makes it more usable without ugly
text overlap, at least.

Fixes #11711.
2019-02-16 14:52:01 -08:00
Unknown W. Brackets 68317f0067 Core: Match up NOEN define usage a bit more.
Some compile parameters were resulting in us try to use a func we didn't
compile.  We should at least use the same defines in usage and definition.
2018-09-01 19:56:35 -07:00
Unknown W. Brackets fd8a0612fa SaveState: Initialize some memory that is saved.
At the very least, will help them compress better.  Also good not to leak
random memory.
2018-06-22 21:29:18 -07:00
Henrik Rydgård 407812916d Avoid wrapping when shifting down the audio after scaling by a 20-bit value. Fixes #9967 2017-11-30 18:24:26 +01:00
Henrik Rydgård 6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgård 22e65ba80d Get rid of ugly alignment macros and some other cruft, we now have alignas(16) from C++11 2017-08-31 01:14:51 +02:00
Unknown W. Brackets f35fa998a6 Core: Handle 20-bit volumes in SIMD optimizations.
It was previously only accounting for 17 bits of volume, by mistake.
This was introduced in v1.0.0.

May help #9379.
2017-07-30 11:48:01 -07: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 fdfc572b69 Misc logging improvments, minor safety check 2017-03-20 13:07:22 +01:00
Henrik Rydgard b0bd7e3c6f Minor changes for compatibility with VS2017 2017-03-12 17:33:00 +01: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 7b3f84aae8 More buildfixes for Windows on ARM 2017-03-05 10:52:08 +01:00