Support translating strings in emulator core
This commit is contained in:
@ -109,6 +109,10 @@ public:
|
||||
/// Returns a float setting from the configuration.
|
||||
virtual float GetFloatSettingValue(const char* section, const char* key, float default_value = 0.0f);
|
||||
|
||||
/// Translates a string to the current language.
|
||||
virtual TinyString TranslateString(const char* context, const char* str) const;
|
||||
virtual std::string TranslateStdString(const char* context, const char* str) const;
|
||||
|
||||
/// Loads the BIOS image for the specified region.
|
||||
std::optional<std::vector<u8>> GetBIOSImage(ConsoleRegion region);
|
||||
|
||||
@ -164,4 +168,6 @@ protected:
|
||||
std::string m_user_directory;
|
||||
};
|
||||
|
||||
#define TRANSLATABLE(context, str) str
|
||||
|
||||
extern HostInterface* g_host_interface;
|
||||
|
||||
Reference in New Issue
Block a user