Move common log to new locale
This commit is contained in:
1 parent
252a0820ed
commit
0e040dd0d5
2 files changed
+31
-3
No files matched your search
@@ -47,7 +47,6 @@ enum vulkan_errors_t {
|
|||||||
VULKAN_MESH_NO_FREE,
|
VULKAN_MESH_NO_FREE,
|
||||||
VULKAN_MESH_INSTANCE_NO_FREE,
|
VULKAN_MESH_INSTANCE_NO_FREE,
|
||||||
VULAKN_DRAW_FAILED,
|
VULAKN_DRAW_FAILED,
|
||||||
COMMON_MEMORY_ALLOCATION_FAILED,
|
|
||||||
LAST_MESSAGE
|
LAST_MESSAGE
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -113,8 +112,6 @@ static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MA
|
|||||||
"Could not allocate new mesh instance\n",
|
"Could not allocate new mesh instance\n",
|
||||||
/* VULAKN_DRAW_FAILED */
|
/* VULAKN_DRAW_FAILED */
|
||||||
"Failed to submit draw command buffer!",
|
"Failed to submit draw command buffer!",
|
||||||
/* COMMON_MEMORY_ALLOCATION_FAILED */
|
|
||||||
"Unable to allocate memory"
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
/**
|
||||||
|
* @file locale_common.h
|
||||||
|
* @author Piotr Krygier (everyonecancode@gmail.com)
|
||||||
|
* @brief Error messages for Vulkan initializers
|
||||||
|
* @version 0.1
|
||||||
|
* @date 2022-05-13
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2022
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef RSE_LOCALE_COMMON_H
|
||||||
|
#define RSE_LOCALE_COMMON_H
|
||||||
|
|
||||||
|
#include "localization.h"
|
||||||
|
|
||||||
|
#define vulkan_error_messages vulkan_error_messages_nolocale[SELECTED_LANGUAGE]
|
||||||
|
|
||||||
|
enum vulkan_errors_t {
|
||||||
|
COMMON_MEMORY_ALLOCATION_FAILED,
|
||||||
|
LAST_MESSAGE
|
||||||
|
};
|
||||||
|
|
||||||
|
static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MAX_MESSAGE_LENGHT] = {
|
||||||
|
{/* EN_US */
|
||||||
|
/* COMMON_MEMORY_ALLOCATION_FAILED */
|
||||||
|
"Unable to allocate memory"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* RSE_LOCALE_COMMON_H */
|
||||||
Reference in new issue
Block a user