diff options
author | 浅倉麗子 | 2020-06-16 20:48:32 -0400 |
---|---|---|
committer | 浅倉麗子 | 2020-06-16 20:48:32 -0400 |
commit | 8eb658dc569d54b9efddbd95c3cc404fcd0bb513 (patch) | |
tree | dc20fb63c9702ca12a1391985f73df13a6e2f8a4 | |
parent | Add LiveArea manual to config app (diff) | |
download | sharpscale-8eb658dc569d54b9efddbd95c3cc404fcd0bb513.tar.gz |
Remove all limitations on framebuffer dimension
-rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -61,7 +61,7 @@ static void LOG(const char *fmt, ...) { #endif } -#define N_INJECT 8 +#define N_INJECT 9 static SceUID inject_id[N_INJECT]; #define N_HOOK 3 @@ -250,6 +250,10 @@ int set_unlock_fb_size(bool enable) { GLZ(ret = INJECT_DATA(6, scedisplay_uid, 0, 0x46CA, movw_r0_1, 4)); GLZ(ret = INJECT_DATA(7, scedisplay_uid, 0, 0x47F4, movw_r0_1, 4)); + // dimension check + char b_0x20[] = "\x0e\xe0"; + GLZ(ret = INJECT_DATA(8, scedisplay_uid, 0, 0x42BC, b_0x20, 2)); + enabled = 1; ret = 0; } @@ -259,7 +263,7 @@ int set_unlock_fb_size(bool enable) { } fail: - for (int i = 0; i < 8; i++) { UNINJECT(i); } + for (int i = 0; i < 9; i++) { UNINJECT(i); } enabled = 0; done: return ret; |