Changed project back to C++
This commit is contained in:
1 parent
ce0c399810
commit
e7b9d4a32f
15 files changed
+1181
-412
No files matched your search
+21
-19
@@ -9,7 +9,17 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "localization.h"
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "localization.hpp"
|
||||
|
||||
|
||||
namespace rse::locale::window
|
||||
{
|
||||
|
||||
#define windowErrorMesssages windowErrorMesssages_nolocale[SELECTED_LANGUAGE]
|
||||
|
||||
enum Errors
|
||||
{
|
||||
@@ -19,23 +29,15 @@ enum Errors
|
||||
LAST_MESSAGE
|
||||
};
|
||||
|
||||
const struct MessageString_t windowErrorMesssages[LAST_MESSAGE] =
|
||||
{
|
||||
{
|
||||
17,
|
||||
{/* WINDOW_GLFW_INIT_FAILED */
|
||||
"GLFW init failed!"
|
||||
std::array<std::array<const char*, LAST_LANGUAGE>, LAST_MESSAGE> windowErrorMesssages_nolocale = {
|
||||
{/* EN_US */
|
||||
/* WINDOW_GLFW_INIT_FAILED */
|
||||
"GLFW init failed!"
|
||||
/* WINDOW_VULKAN_NOT_SUPPORTED */
|
||||
"Unable to load Vulkan"
|
||||
/*WINDOW_NOT_CREATED*/
|
||||
"Window context creation failed"
|
||||
}
|
||||
},
|
||||
{
|
||||
22,
|
||||
{/* WINDOW_VULKAN_NOT_SUPPORTED */
|
||||
"Unable to load Vulkan"
|
||||
}
|
||||
},
|
||||
{
|
||||
31,
|
||||
{/*WINDOW_NOT_CREATED*/
|
||||
"Window context creation failed"
|
||||
}}
|
||||
};
|
||||
|
||||
} // namespace rse::locale::window
|
||||
Reference in new issue
Block a user