70 lines
1.5 KiB
C++
70 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "string.h"
|
|
|
|
class FilePathManager {
|
|
|
|
public:
|
|
char filler[0x20];
|
|
|
|
static void (*FilePathManager_construct)(
|
|
FilePathManager*,
|
|
mcpe::string,
|
|
bool
|
|
);
|
|
|
|
static mcpe::string (*FilePathManager_getRootPath)(
|
|
FilePathManager const*
|
|
);
|
|
|
|
static mcpe::string (*FilePathManager_getUserDataPath)(
|
|
FilePathManager const*
|
|
);
|
|
|
|
static void (*FilePathManager_setPackagePath)(
|
|
FilePathManager*,
|
|
mcpe::string
|
|
);
|
|
|
|
static mcpe::string (*FilePathManager_getPackagePath)(
|
|
FilePathManager const*
|
|
);
|
|
|
|
static void (*FilePathManager_setSettingsPath)(
|
|
FilePathManager*,
|
|
mcpe::string
|
|
);
|
|
|
|
static mcpe::string (*FilePathManager_getSettingsPath)(
|
|
FilePathManager const*
|
|
);
|
|
|
|
FilePathManager(mcpe::string str, bool b) {
|
|
FilePathManager_construct(this, std::move(str), b);
|
|
}
|
|
|
|
mcpe::string getRootPath() const {
|
|
return FilePathManager_getRootPath(this);
|
|
}
|
|
|
|
mcpe::string getUserDataPath() const {
|
|
return FilePathManager_getUserDataPath(this);
|
|
}
|
|
|
|
void setPackagePath(mcpe::string s) {
|
|
FilePathManager_setPackagePath(this, std::move(s));
|
|
}
|
|
|
|
mcpe::string getPackagePath() const {
|
|
return FilePathManager_getPackagePath(this);
|
|
}
|
|
|
|
void setSettingsPath(mcpe::string s) {
|
|
FilePathManager_setSettingsPath(this, std::move(s));
|
|
}
|
|
|
|
mcpe::string getSettingsPath() const {
|
|
return FilePathManager_getSettingsPath(this);
|
|
}
|
|
}; |