Mesen-X/Core/MessageManager.h

38 lines
1.1 KiB
C
Raw Normal View History

#pragma once
#include "stdafx.h"
#include "IMessageManager.h"
#include <unordered_map>
#include "../Utilities/SimpleLock.h"
class MessageManager
{
private:
static IMessageManager* _messageManager;
static std::unordered_map<string, string> _enResources;
static std::unordered_map<string, string> _frResources;
static std::unordered_map<string, string> _jaResources;
2016-07-20 14:35:20 +03:00
static std::unordered_map<string, string> _ruResources;
static std::unordered_map<string, string> _esResources;
static std::unordered_map<string, string> _ukResources;
static std::unordered_map<string, string> _ptResources;
2017-08-13 23:11:33 +02:00
static std::unordered_map<string, string> _caResources;
static std::unordered_map<string, string> _zhResources;
static bool _osdEnabled;
static SimpleLock _logLock;
static std::list<string> _log;
public:
static void SetOsdState(bool enabled);
static string Localize(string key);
static void RegisterMessageManager(IMessageManager* messageManager);
static void DisplayMessage(string title, string message, string param1 = "", string param2 = "");
static void Log(string message = "");
static string GetLog();
2017-08-13 23:11:33 +02:00
};