Flatten src into model, edit and ui, with .h headers
Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui. Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization. Includes are written from src.
This commit is contained in:
1 parent
a515267e26
commit
7fb2c607c2
175 files changed
+537
-537
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
#include "sdl.h"
|
||||
|
||||
#include <SDL3/SDL_filesystem.h>
|
||||
#include <SDL3/SDL_stdinc.h>
|
||||
|
||||
#include "path.h"
|
||||
|
||||
namespace anm2ed::util::sdl
|
||||
{
|
||||
std::filesystem::path preferences_directory_get()
|
||||
{
|
||||
auto sdlPath = SDL_GetPrefPath(nullptr, "anm2ed");
|
||||
if (!sdlPath) return {};
|
||||
auto filePath = path::from_utf8(sdlPath);
|
||||
SDL_free(sdlPath);
|
||||
return filePath;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user