Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Commit

Permalink
UUTF-8 with BOMに統一
Browse files Browse the repository at this point in the history
  • Loading branch information
NoixChou committed Apr 27, 2019
1 parent c400d11 commit 4dc0bda
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Otoge/Game/Scenes/Title/Setting/SettingScene.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SettingScene.hpp"
#include "SettingScene.hpp"
#include "../../../../Util/Setting/SettingManager.h"
#include "../../../../System/Config.h"
#include "../../../../System/Input/KeyboardManager.hpp"
Expand All @@ -18,7 +18,7 @@ SettingScene::SettingScene() : Scene("SettingScene", 40.f)
CloseButton_->SetTransparent(100.f);
AddChildTask(std::static_pointer_cast<Task>(CloseButton_));

std::shared_ptr<Label> l_TitleLabel = std::make_shared<Label>("Ý’è", ScreenData(20.0f, 0.0f, 60.f, CloseButton_->GetScreenHeight()), DefaultScaler_);
std::shared_ptr<Label> l_TitleLabel = std::make_shared<Label>(u8"設定", ScreenData(20.0f, 0.0f, 60.f, CloseButton_->GetScreenHeight()), DefaultScaler_);
l_TitleLabel->SetTextAlign(Label::TextAlignment::center | Label::TextAlignment::middle);
l_TitleLabel->baseColor = GetColor(117, 117, 117);
l_TitleLabel->AdjustmentFontSize_ = false;
Expand Down
2 changes: 1 addition & 1 deletion Otoge/Game/Scenes/Title/Setting/SettingScene.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "../../../../System/Task/Scene.hpp"
#include "../../../../Util/Calculate/Screen/FlexibleScaler.hpp"
#include "../../../../System/GUI/Button.hpp"
Expand Down
4 changes: 2 additions & 2 deletions Otoge/Game/Scenes/Title/TitleScene.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "TitleScene.hpp"
#include "TitleScene.hpp"
#include "../../../Util/Setting/SettingManager.h"
#include "../../../System/Config.h"
#include "../../../System/Input/KeyboardManager.hpp"
Expand All @@ -12,7 +12,7 @@
TitleScene::TitleScene() : Scene("TitleScene")
{
// メニュー開閉ボタン
MenuOpener_ = std::make_shared<Button>("おなまえ", ScreenData(40.f, 40.f, 20.f, 20.f, true), DefaultScaler_);
MenuOpener_ = std::make_shared<Button>(u8"おなまえ", ScreenData(40.f, 40.f, 20.f, 20.f, true), DefaultScaler_);
MenuOpener_->GetTextLabelInstance()->AdjustmentFontSize_ = false;
MenuOpener_->baseColor = GetColor(179, 229, 252);
MenuOpener_->animationColor = GetColor(3, 169, 244);
Expand Down
2 changes: 1 addition & 1 deletion Otoge/Game/Scenes/Title/TitleScene.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "../../../System/Task/Scene.hpp"
#include "../../../Util/Calculate/Screen/FlexibleScaler.hpp"
#include "../../../System/GUI/Button.hpp"
Expand Down
2 changes: 1 addition & 1 deletion Otoge/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void PreInitialize()
g_SystemSettings->SetGlobal();

ChangeWindowMode(!g_SystemSettings->Get<bool>(SETTINGS_FULLSCREEN).get()); // ウィンドウモード/フルスクリーン
SetUseCharCodeFormat(DX_CHARCODEFORMAT_UTF8);
SetUseCharCodeFormat(DX_CHARCODEFORMAT_UTF8); // 文字コード
SetMainWindowText(GAME_APP_NAME " v" GAME_APP_VER); // ウィンドウのタイトル
SetAlwaysRunFlag(TRUE); // 常に処理
SetWaitVSyncFlag(static_cast<int>(g_SystemSettings->Get<bool>(SETTINGS_VSYNC).get())); // 垂直同期
Expand Down
2 changes: 1 addition & 1 deletion Otoge/Otoge.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion Otoge/System/Config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

// アプリケーション
#define GAME_APP_NAME "おとげー" // アプリ名
Expand Down
2 changes: 1 addition & 1 deletion Otoge/System/PrecompiledHeader/pch.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
////#include "pch.h" // Forced
////#include "pch.h" // Forced
2 changes: 1 addition & 1 deletion Otoge/System/PrecompiledHeader/pch.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

// コンパイラ設定
#define _CRT_SECURE_NO_WARNINGS
Expand Down
2 changes: 1 addition & 1 deletion Otoge/System/Task/Task.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Task.h"
#include "Task.h"

Task::Task(const std::string& taskName)
{
Expand Down
2 changes: 1 addition & 1 deletion Otoge/System/Task/Task.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "../../Util/Debug/Logger.h"
#include <cstdarg>

Expand Down
2 changes: 1 addition & 1 deletion Otoge/Util/Calculate/Animation/Easing.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Easing.hpp"
#include "Easing.hpp"

double Easing::InQuad(double t, double totaltime, double max, double min)
{
Expand Down
2 changes: 1 addition & 1 deletion Otoge/Util/Calculate/Animation/Easing.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

class Easing
{
Expand Down
18 changes: 9 additions & 9 deletions Otoge/Util/Debug/Logger.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Logger.h"
#include "Logger.h"

using namespace std;

Expand Down Expand Up @@ -38,30 +38,30 @@ Logger::~Logger()
void Logger::Log(const string& message, const string &tag)
{
#ifdef _DEBUG
printf("[%s] ", tag.c_str());
OutputDebugString(("[" + tag + "] ").c_str());
printf(u8"[%s] ", tag.c_str());
OutputDebugString((u8"[" + tag + "] ").c_str());

if (ModuleName_ != "")
printf("<%s> ", ModuleName_.c_str()), OutputDebugString(("<" + ModuleName_ + "> ").c_str());
printf("%s", message.c_str());
printf(u8"<%s> ", ModuleName_.c_str()), OutputDebugString(("<" + ModuleName_ + "> ").c_str());
printf(u8"%s", message.c_str());
printf("\n");
OutputDebugString(message.c_str());
OutputDebugString("\n");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN); //‰ŠúF
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN); //初期色
#endif
}

void Logger::LowLevelLog(const std::string& message, const std::string& tag)
{
#ifdef _DEBUG
printf("[%s] ", tag.c_str());
printf(u8"[%s] ", tag.c_str());
OutputDebugString(("[" + tag + "] ").c_str());

printf("%s", message.c_str());
printf(u8"%s", message.c_str());
printf("\n");
OutputDebugString(message.c_str());
OutputDebugString("\n");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN); //‰ŠúF
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN); //初期色
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion Otoge/Util/Debug/Logger.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

class Logger
{
Expand Down
2 changes: 1 addition & 1 deletion Otoge/Util/Setting/SettingManager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SettingManager.h"
#include "SettingManager.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion Otoge/Util/Setting/SettingManager.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

#include "../Debug/Logger.h"

Expand Down

0 comments on commit 4dc0bda

Please sign in to comment.