(semi-tested) ManMan JA translation, config inis replacing templates, downgrade DivaSound and upgrade DivaMovie, fixes

This commit is contained in:
nastys
2021-11-10 22:44:23 +01:00
parent 770f5649ad
commit 3e15d39a67
58 changed files with 40875 additions and 67165 deletions
@@ -6,7 +6,7 @@
namespace TLAC::Components
{
const std::string COMPONENTS_CONFIG_FILE_NAME = "components.ini";
const std::string COMPONENTS_CONFIG_FILE_NAME = "..\\plugins_config\\components.ini";
// Incomplete type
struct DwGuiDisplay
@@ -18,7 +18,7 @@ namespace TLAC::Components
virtual void UpdateInput() override;
private:
const std::string COMPONENTS_CONFIG_FILE_NAME = "components.ini";
const std::string COMPONENTS_CONFIG_FILE_NAME = "..\\plugins_config\\components.ini";
int updatesPerFrame = 39;
GameState currentGameState;
@@ -16,7 +16,7 @@
#include "../Pause.h"
#include "../../Utils.h"
const std::string KEY_CONFIG_FILE_NAME = "keyconfig.ini";
const std::string KEY_CONFIG_FILE_NAME = "..\\plugins_config\\keyconfig.ini";
using namespace TLAC::Input;
using namespace TLAC::Input::KeyConfig;
@@ -19,7 +19,7 @@ using namespace TLAC::Utilities;
namespace TLAC::Components
{
const std::string KEY_CONFIG_FILE_NAME = "keyconfig.ini";
const std::string KEY_CONFIG_FILE_NAME = "..\\plugins_config\\keyconfig.ini";
TouchSliderEmulator* TouchSliderEmulator::LatestInstance;
@@ -99,7 +99,7 @@ namespace TLAC::Components
panelState = (TouchPanelState*)TASK_TOUCH_ADDRESS;
componentsManager = manager;
TLAC::FileSystem::ConfigFile config(TLAC::framework::GetModuleDirectory(), "keyconfig.ini");
TLAC::FileSystem::ConfigFile config(TLAC::framework::GetModuleDirectory(), "\\..\\plugins_config\\keyconfig.ini");
config.OpenRead();
autoPause = config.GetBooleanValue("autopause");
@@ -8,7 +8,7 @@
#include <windows.h>
#include "GameState.h"
const std::string PLAYER_DATA_FILE_NAME = "playerdata.ini";
const std::string PLAYER_DATA_FILE_NAME = "..\\plugins_config\\playerdata.ini";
static WCHAR configPath[256];
int* headitemequip = (int*)0x0000000141804CDC;
int customheaditemequip;
@@ -237,7 +237,7 @@ namespace TLAC::Components
config.TryGetValue("level_name", &customPlayerData->LevelName);
// ScoreSaver copies & declaring non-playerdata values
std::string utf8path = TLAC::framework::GetModuleDirectory() + "/playerdata.ini";
std::string utf8path = TLAC::framework::GetModuleDirectory() + "\\..\\plugins_config\\playerdata.ini";
MultiByteToWideChar(CP_UTF8, 0, utf8path.c_str(), -1, configPath, 256);
customPlayerData->LevelNum = config.GetIntegerValue("level");
@@ -18,15 +18,15 @@ namespace TLAC::Components
WCHAR ScoreSaver::sfx_configPath[256];
ScoreSaver::ScoreSaver()
{
std::string utf8path = TLAC::framework::GetModuleDirectory() + "/scores.ini";
std::string utf8path = TLAC::framework::GetModuleDirectory() + "../plugins_config/scores.ini";
MultiByteToWideChar(CP_UTF8, 0, utf8path.c_str(), -1, configPath, 256);
utf8path = TLAC::framework::GetModuleDirectory() + "/rivalscores.ini";
utf8path = TLAC::framework::GetModuleDirectory() + "../plugins_config/rivalscores.ini";
MultiByteToWideChar(CP_UTF8, 0, utf8path.c_str(), -1, rival_configPath, 256);
utf8path = TLAC::framework::GetModuleDirectory() + "/pv_equip/modules.ini";
utf8path = TLAC::framework::GetModuleDirectory() + "../plugins_config/pv_equip/modules.ini";
MultiByteToWideChar(CP_UTF8, 0, utf8path.c_str(), -1, modules_configPath, 256);
utf8path = TLAC::framework::GetModuleDirectory() + "/pv_equip/skins.ini";
utf8path = TLAC::framework::GetModuleDirectory() + "../plugins_config/pv_equip/skins.ini";
MultiByteToWideChar(CP_UTF8, 0, utf8path.c_str(), -1, skins_configPath, 256);
utf8path = TLAC::framework::GetModuleDirectory() + "/pv_equip/sfx.ini";
utf8path = TLAC::framework::GetModuleDirectory() + "../plugins_config/pv_equip/sfx.ini";
MultiByteToWideChar(CP_UTF8, 0, utf8path.c_str(), -1, sfx_configPath, 256);
}
@@ -5,7 +5,7 @@
#include "../../../FileSystem/ConfigFile.h"
#include <stdio.h>
const std::string GU_CONFIG_FILE_NAME = "keyconfig.ini";
const std::string GU_CONFIG_FILE_NAME = "..\\plugins_config\\keyconfig.ini";
namespace TLAC::Input
{
@@ -12,7 +12,7 @@ namespace TLAC::Input
Xinput::Xinput()
{
TLAC::FileSystem::ConfigFile config(TLAC::framework::GetModuleDirectory(), "keyconfig.ini");
TLAC::FileSystem::ConfigFile config(TLAC::framework::GetModuleDirectory(), "..\\plugins_config\\keyconfig.ini");
config.OpenRead();
xinput_num = config.GetIntegerValue("xinput_preferred");
rumble = config.GetBooleanValue("rumble");