mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-03 21:13:42 +00:00
rm getApplicationId;
This commit is contained in:
parent
0a27a0b17b
commit
0dd4a1191c
|
@ -100,18 +100,6 @@ static int l_lovrFilesystemGetAppdataDirectory(lua_State* L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int l_lovrFilesystemGetApplicationId(lua_State *L) {
|
|
||||||
char buffer[LOVR_PATH_MAX];
|
|
||||||
|
|
||||||
if (lovrFilesystemGetApplicationId(buffer, sizeof(buffer))) {
|
|
||||||
lua_pushstring(L, buffer);
|
|
||||||
} else {
|
|
||||||
lua_pushnil(L);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int l_lovrFilesystemGetDirectoryItems(lua_State* L) {
|
static int l_lovrFilesystemGetDirectoryItems(lua_State* L) {
|
||||||
const char* path = luaL_checkstring(L, 1);
|
const char* path = luaL_checkstring(L, 1);
|
||||||
lua_settop(L, 1);
|
lua_settop(L, 1);
|
||||||
|
@ -331,7 +319,6 @@ static const luaL_Reg lovrFilesystem[] = {
|
||||||
{ "append", l_lovrFilesystemAppend },
|
{ "append", l_lovrFilesystemAppend },
|
||||||
{ "createDirectory", l_lovrFilesystemCreateDirectory },
|
{ "createDirectory", l_lovrFilesystemCreateDirectory },
|
||||||
{ "getAppdataDirectory", l_lovrFilesystemGetAppdataDirectory },
|
{ "getAppdataDirectory", l_lovrFilesystemGetAppdataDirectory },
|
||||||
{ "getApplicationId", l_lovrFilesystemGetApplicationId },
|
|
||||||
{ "getDirectoryItems", l_lovrFilesystemGetDirectoryItems },
|
{ "getDirectoryItems", l_lovrFilesystemGetDirectoryItems },
|
||||||
{ "getExecutablePath", l_lovrFilesystemGetExecutablePath },
|
{ "getExecutablePath", l_lovrFilesystemGetExecutablePath },
|
||||||
{ "getIdentity", l_lovrFilesystemGetIdentity },
|
{ "getIdentity", l_lovrFilesystemGetIdentity },
|
||||||
|
|
|
@ -388,10 +388,6 @@ size_t lovrFilesystemWrite(const char* path, const char* content, size_t size, b
|
||||||
|
|
||||||
// Paths
|
// Paths
|
||||||
|
|
||||||
size_t lovrFilesystemGetApplicationId(char* buffer, size_t size) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t lovrFilesystemGetAppdataDirectory(char* buffer, size_t size) {
|
size_t lovrFilesystemGetAppdataDirectory(char* buffer, size_t size) {
|
||||||
return lovrPlatformGetDataDirectory(buffer, size);
|
return lovrPlatformGetDataDirectory(buffer, size);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@ const char* lovrFilesystemGetSaveDirectory(void);
|
||||||
bool lovrFilesystemCreateDirectory(const char* path);
|
bool lovrFilesystemCreateDirectory(const char* path);
|
||||||
bool lovrFilesystemRemove(const char* path);
|
bool lovrFilesystemRemove(const char* path);
|
||||||
size_t lovrFilesystemWrite(const char* path, const char* content, size_t size, bool append);
|
size_t lovrFilesystemWrite(const char* path, const char* content, size_t size, bool append);
|
||||||
size_t lovrFilesystemGetApplicationId(char* buffer, size_t size);
|
|
||||||
size_t lovrFilesystemGetAppdataDirectory(char* buffer, size_t size);
|
size_t lovrFilesystemGetAppdataDirectory(char* buffer, size_t size);
|
||||||
size_t lovrFilesystemGetExecutablePath(char* buffer, size_t size);
|
size_t lovrFilesystemGetExecutablePath(char* buffer, size_t size);
|
||||||
size_t lovrFilesystemGetUserDirectory(char* buffer, size_t size);
|
size_t lovrFilesystemGetUserDirectory(char* buffer, size_t size);
|
||||||
|
|
Loading…
Reference in a new issue