Skip to content

Commit 6cbec61

Browse files
author
Gin
committed
fix persistent folder path
1 parent 5529288 commit 6cbec61

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SerialPrograms/Source/CommonFramework/Globals.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ std::string get_training_path(){
137137
std::string get_runtime_base_path(){
138138
// On MacOS, find the writable application support directory
139139
if (QSysInfo::productType() == "macos" || QSysInfo::productType() == "osx"){
140-
QString appSupportPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
140+
// QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) returns
141+
// "/Users/$USERNAME/Library/Application Support/SerialPrograms/UserSettings", the parent folder
142+
// to hold application-specific persistent data
143+
QString appSupportPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/SerialPrograms";
141144
QDir dir(appSupportPath);
142145
if (!dir.exists()) {
143146
dir.mkpath(".");

SerialPrograms/Source/PokemonLZA/Programs/ShinyHunting/PokemonLZA_WildZoneEntrance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ShinyHunt_WildZoneEntrance_Descriptor::Stats : public StatsTracker{
5151
m_display_order.emplace_back("Visits");
5252
m_display_order.emplace_back("Chased");
5353
m_display_order.emplace_back("Shiny Sounds");
54-
m_display_order.emplace_back("Game Resets");
54+
m_display_order.emplace_back("Game Resets", ALWAYS_HIDDEN);
5555
m_display_order.emplace_back("Errors", HIDDEN_IF_ZERO);
5656
m_display_order.emplace_back("Day/Night Changes", ALWAYS_HIDDEN);
5757
m_aliases["Wild Zone"] = "Visits";

0 commit comments

Comments
 (0)