diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /map65/runtime_paths.h | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
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 |
