Skip to content

Commit 6f83013

Browse files
committed
no points for guessing what it does
1 parent 0da0797 commit 6f83013

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

loader/include/Geode/loader/Dirs.hpp

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,99 @@
66
namespace geode::dirs {
77
/**
88
* Directory where Geometry Dash is
9+
*
10+
* Windows: {GD installation folder}/ (traditionally Geometry Dash)
11+
* macOS: {GD installation folder}/ (traditionally GeometryDash.app)
12+
* Android: {Android Launcher's media directory}/game
13+
* iOS: Documents/game (within the launcher's sandbox)
914
*/
1015
GEODE_DLL std::filesystem::path getGameDir();
1116
/**
1217
* Directory where GD saves its files
18+
*
19+
* Windows: %LOCALAPPDATA%/{executable name}
20+
* macOS: ~/Library/Application Support/GeometryDash
21+
* Android: {Android Launcher's media directory}/save
22+
* iOS: Documents/save (within the launcher's sandbox)
1323
*/
1424
GEODE_DLL std::filesystem::path getSaveDir();
1525
/**
1626
* Directory where Geode is
27+
* `getGameDir()`/geode
1728
*/
1829
GEODE_DLL std::filesystem::path getGeodeDir();
1930
/**
2031
* Directory where Geode saves its files
32+
* `getSaveDir()`/geode
2133
*/
2234
GEODE_DLL std::filesystem::path getGeodeSaveDir();
2335
/**
2436
* Directory where Geode's resources are stored
37+
* `getGeodeDir()`/resources
2538
*/
2639
GEODE_DLL std::filesystem::path getGeodeResourcesDir();
2740
/**
28-
* Directory where Geode's resources are stored
41+
* Directory where Geode's logs are stored
42+
* `getGeodeDir()`/logs
2943
*/
3044
GEODE_DLL std::filesystem::path getGeodeLogDir();
3145
/**
3246
* Directory to store temporary files
47+
* `getGeodeDir()`/temp
3348
*/
3449
GEODE_DLL std::filesystem::path getTempDir();
3550
/**
3651
* Directory where mods are stored by default
52+
* `getGeodeDir()`/mods
3753
*/
3854
GEODE_DLL std::filesystem::path getModsDir();
3955
/**
4056
* Directory where mods' save data is stored
57+
* `getGeodeSaveDir()`/mods
4158
*/
4259
GEODE_DLL std::filesystem::path getModsSaveDir();
4360
/**
4461
* Directory where mods' unzipped packages are stored at runtime
62+
*
63+
* Windows/macOS/iOS: `getGeodeDir()`/unzipped
64+
* Android: {Android Launcher's internal files directory}/geode/unzipped
4565
*/
4666
GEODE_DLL std::filesystem::path getModRuntimeDir();
4767
/**
4868
* Directory where mods' unzipped binary files are stored
4969
* This is used in order to override existing unzip binaries,
5070
* such as on iOS where signing the binary is required
5171
*
52-
* TODO: enable on 4.7.0
72+
* TODO: enable on ~~4.7.0~~ nice job
5373
*/
5474
// GEODE_DLL std::filesystem::path getModBinariesDir();
5575
/**
5676
* Directory where mods' config files lie
77+
* `getGeodeDir()`/config
5778
*/
5879
GEODE_DLL std::filesystem::path getModConfigDir();
5980
/**
6081
* Directory where Geode stores the cached index
82+
* `getGeodeDir()`/index
6183
*/
6284
GEODE_DLL std::filesystem::path getIndexDir();
6385
/**
6486
* Directory where crashlogs are stored
87+
* `getGeodeDir()`/crashlogs
6588
*/
6689
GEODE_DLL std::filesystem::path getCrashlogsDir();
6790
/**
6891
* Directory where mods' persistent files lie
6992
* This directory is not deleted even when Geode is uninstalled
93+
* `getSaveDir()`/geode-persistent
7094
*/
7195
GEODE_DLL std::filesystem::path getModPersistentDir();
7296
/**
7397
* Directory where Geometry Dash's resources are stored
74-
* On Android, the resources are stored in the APK, so this just returns "assets"
98+
*
99+
* Windows/macOS: `getGameDir()`/Resources
100+
* Android: assets
101+
* iOS: {GD bundle path}/Resources
75102
*/
76103
GEODE_DLL std::filesystem::path getResourcesDir();
77104
}

loader/include/Geode/loader/Mod.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,18 @@ namespace geode {
150150

151151
/**
152152
* Get the mod's save directory path
153+
* `geode::dirs::getModsSaveDir()`/{mod_id}/
153154
*/
154155
std::filesystem::path getSaveDir() const;
155156
/**
156157
* Get the mod's config directory path
158+
* `geode::dirs::getModConfigDir()`/{mod_id}/
157159
*/
158160
std::filesystem::path getConfigDir(bool create = true) const;
159161
/**
160162
* Get the mod's persistent directory path
161163
* This directory is not deleted even when Geode/mod is uninstalled
164+
* `geode::dirs::getModPersistentDir()`/{mod_id}/
162165
*/
163166
std::filesystem::path getPersistentDir(bool create = true) const;
164167

0 commit comments

Comments
 (0)