mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix: use LIBRARY instead of VLC
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
#include "StdInc.h"
|
#include "StdInc.h"
|
||||||
#include "TextOperations.h"
|
#include "TextOperations.h"
|
||||||
|
|
||||||
#include "texts/CGeneralTextHandler.h"
|
#include "../GameLibrary.h"
|
||||||
|
#include "../texts/CGeneralTextHandler.h"
|
||||||
#include "Languages.h"
|
#include "Languages.h"
|
||||||
#include "CConfigHandler.h"
|
#include "CConfigHandler.h"
|
||||||
|
|
||||||
@@ -304,7 +305,7 @@ DLL_LINKAGE std::string TextOperations::getLocaleName()
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const std::string localeName = Languages::getLanguageOptions(VLC->generaltexth->getPreferredLanguage()).localeName;
|
const std::string localeName = Languages::getLanguageOptions(LIBRARY->generaltexth->getPreferredLanguage()).localeName;
|
||||||
|
|
||||||
if(localeName.empty())
|
if(localeName.empty())
|
||||||
throw std::runtime_error("Locale name is empty, will use fallback option.");
|
throw std::runtime_error("Locale name is empty, will use fallback option.");
|
||||||
|
|||||||
@@ -9,9 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../../lib/texts/Languages.h"
|
|
||||||
#include "../../lib/VCMI_Lib.h"
|
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
/// Namespace that provides utilities for unicode support (UTF-8)
|
/// Namespace that provides utilities for unicode support (UTF-8)
|
||||||
|
|||||||
Reference in New Issue
Block a user