diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /map65/runtime_paths.h | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'map65/runtime_paths.h')
| -rw-r--r-- | map65/runtime_paths.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/map65/runtime_paths.h b/map65/runtime_paths.h new file mode 100644 index 00000000..4c786c4a --- /dev/null +++ b/map65/runtime_paths.h @@ -0,0 +1,24 @@ +#ifndef MAP65_RUNTIME_PATHS_H +#define MAP65_RUNTIME_PATHS_H + +#include <QString> + +class QSettings; + +QString writableMap65DataDir(); +QString map65SettingsFile(QString const& appDir, QString const& dataDir); +QString map65RuntimeFile(QString const& dataDir, QString const& fileName); +QString map65RuntimeSourceFile(QString const& appDir, QString const& installedDataDir, + QString const& writableDataDir, QString const& fileName); +QString ensureMap65RuntimeFile(QString const& appDir, QString const& installedDataDir, + QString const& writableDataDir, QString const& fileName); + +// Reads the "FSam96000" key (expected to already be scoped, e.g. via +// settings.beginGroup("Common") / SettingsGroup) as text and interprets it +// under both conventions that have shared a single map65.ini across +// versions: legacy MAP65 stored this as a bool (true==96000, false==95238); +// current MAP65 stores it as an integer (0==95238, 1==96000, 2==192000). +// Returns defaultValue if the stored text doesn't match either convention. +int readFSam96000(QSettings const& settings, int defaultValue = 1); + +#endif |
