Skip to content

Commit

Permalink
Add IniFolderType.AbsolutePath
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jun 25, 2024
1 parent 218ea3c commit 162ca62
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/hello_imgui/doc_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ std::string CurrentLayoutName();
```cpp
// IniFolderType is an enum which describle where is the base path to store
// IniFolderType is an enum which describes where is the base path to store
// the ini file for the application settings.
//
// You can use IniFolderLocation(iniFolderType) to get the corresponding path.
Expand All @@ -348,6 +348,10 @@ enum class IniFolderType
// (convenient for development, but not recommended for production)
CurrentFolder,
// AbsolutePath: an absolute path
// (convenient, but not recommended if targeting multiple platforms)
AbsolutePath,
// AppUserConfigFolder:
// AppData under Windows (Example: C:\Users\[Username]\AppData\Roaming under windows)
// ~/.config under Linux
Expand Down
2 changes: 2 additions & 0 deletions src/hello_imgui/internal/platform/ini_folder_locations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ namespace HelloImGui
{
case IniFolderType::CurrentFolder:
return "";
case IniFolderType::AbsolutePath:
return "";
case IniFolderType::AppUserConfigFolder:
return GetAppUserConfigFolder();
case IniFolderType::DocumentsFolder:
Expand Down
6 changes: 5 additions & 1 deletion src/hello_imgui/runner_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ enum class RendererBackendType

// @@md#IniFolderType

// IniFolderType is an enum which describle where is the base path to store
// IniFolderType is an enum which describes where is the base path to store
// the ini file for the application settings.
//
// You can use IniFolderLocation(iniFolderType) to get the corresponding path.
Expand All @@ -70,6 +70,10 @@ enum class IniFolderType
// (convenient for development, but not recommended for production)
CurrentFolder,

// AbsolutePath: an absolute path
// (convenient, but not recommended if targeting multiple platforms)
AbsolutePath,

// AppUserConfigFolder:
// AppData under Windows (Example: C:\Users\[Username]\AppData\Roaming under windows)
// ~/.config under Linux
Expand Down

0 comments on commit 162ca62

Please sign in to comment.