Skip to content

Commit a4e0030

Browse files
FUCK
1 parent 30e7710 commit a4e0030

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Rewind
2+
## v1.1.2
3+
- Fix video memory popup showing on every boot on non-supported devices
24
## v1.1.1
35
- Adjust video memory to default settings calculation
46
- Add popup that shows when video memory cannot be checked

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ios": "2.2074"
88
},
99

10-
"version": "v1.1.1",
10+
"version": "v1.1.2",
1111
"id": "undefined0.rewind",
1212
"name": "Rewind",
1313
"developer": "undefined0",

src/hooks/MenuLayer.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,19 @@ bool HookedMenuLayer::init() {
7373
bool HookedMenuLayer::init() {
7474
if (!MenuLayer::init()) return false;
7575

76+
auto mod = geode::Mod::get();
77+
78+
bool hasSetRecommended = mod->getSavedValue<bool>("has-set-recommended", false);
79+
if (hasSetRecommended) return true;
80+
mod->setSavedValue<bool>("has-set-recommended", true);
81+
7682
geode::log::info("Platform doesn't support fancy vram checks!");
7783

7884
auto pop = FLAlertLayer::create(
7985
"Rewind",
8086
fmt::format(
81-
"Rewind cannot detect the amount of video memory free, likely "
82-
"because you are on an unsupported platform. Rewind has applied "
87+
"Rewind cannot detect the amount of video memory free, because you "
88+
"you are on a non-Windows platform. Rewind has applied "
8389
"<cy>suitable defaults</c>, however if you know you have a "
8490
"<cr>lower end "
8591
GEODE_DESKTOP("computer")

0 commit comments

Comments
 (0)