mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
Added portable app support
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
namespace Tesses::Framework
|
||||
{
|
||||
|
||||
template<typename...TArgs>
|
||||
class Event {
|
||||
public:
|
||||
@@ -90,6 +91,7 @@ namespace Tesses::Framework
|
||||
|
||||
extern EventList<uint64_t> OnItteraton;
|
||||
std::optional<std::string> TF_GetCommandName();
|
||||
|
||||
void TF_Init();
|
||||
void TF_InitWithConsole();
|
||||
void TF_AllowPortable(std::string argv0);
|
||||
|
||||
@@ -6,7 +6,23 @@ namespace Tesses::Framework::Platform::Environment
|
||||
{
|
||||
extern const char EnvPathSeperator;
|
||||
|
||||
|
||||
struct PortableAppConfig {
|
||||
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> desktop;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> documents;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> music;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> pictures;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> videos;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> downloads;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> user;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> config;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> state;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> data;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> cache;
|
||||
std::optional<Tesses::Framework::Filesystem::VFSPath> temp;
|
||||
};
|
||||
|
||||
extern PortableAppConfig portable_config;
|
||||
|
||||
namespace SpecialFolders {
|
||||
Tesses::Framework::Filesystem::VFSPath GetTemp();
|
||||
|
||||
Reference in New Issue
Block a user