Files
kichikuou_system3-sdl2/src/config.h
T
kichikuou da91f10779 Allow overriding hard-coded strings by system3.ini
Some strings ("戻る" and "次のページ" in menu, character names in DPS)
are not included in game files but are hard-coded in the executable.

Now those strings can be overridden by adding [string] section to
system3.ini. For example, system3.ini for English translation of DPS
may look like this:

  [config]
  game  = dps
  title = D.P.S - Dream Program System

  [string]
  back        = Back
  next_page   = Next Page
  dps_custom  = Custom
  dps_linus   = Linus
  dps_katsumi = Katsumi
  dps_yumiko  = Yumiko
  dps_itsumi  = Itsumi
  dps_hitomi  = Hitomi
  dps_mariko  = Mariko
2021-09-11 13:20:48 +09:00

41 lines
690 B
C++

#ifndef CONFIG_H_
#define CONFIG_H_
#include <string>
class Encoding;
struct Strings {
std::string back;
std::string next_page;
std::string dps_custom;
std::string dps_linus;
std::string dps_katsumi;
std::string dps_yumiko;
std::string dps_itsumi;
std::string dps_hitomi;
std::string dps_mariko;
};
struct Config {
public:
Config(int argc, char *argv[]);
Strings get_strings(Encoding* encoding, bool english) const;
std::string font_file;
std::string game_id;
std::string encoding;
std::string save_dir;
std::string playlist;
std::string title;
bool use_fm = false;
bool no_antialias = false;
private:
void load_ini();
Strings strings;
};
#endif // CONFIG_H_