Skip to content

Commit 606cb37

Browse files
committed
Restore Byte-Order-Mark to src files because on Japanese locale this causes visual studio to not read the file properly.
Added `charset` option to editorconfig to force saving as this format in the future so JP contributors can actually build.
1 parent 271665a commit 606cb37

File tree

384 files changed

+420
-417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

384 files changed

+420
-417
lines changed

.editorconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ end_of_line = lf
1212
trim_trailing_whitespace = true
1313

1414
[*.{cpp,h}]
15+
charset = utf-8-bom
1516
indent_style = space
1617
indent_size = 4
1718
end_of_line = lf
1819
trim_trailing_whitespace = true
19-
indent_brace_style = allman # This is unfortunately ignored in the Visual Studio add on
20+
indent_brace_style = allman # This is unfortunately ignored in Visual Studio
2021

2122
# Makefiles actually require the tabs.
2223
[Makefile]

src/common/blowfish.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/blowfish.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/cbasetypes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifndef _CBASETYPES_H_
1+
#ifndef _CBASETYPES_H_
22
#define _CBASETYPES_H_
33

44
#include <cstdint>

src/common/detour/DetourAlloc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourAlloc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourAssert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourCommon.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourCommon.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourMath.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
@defgroup detour Detour
33
44
Members in this module are wrappers around the standard math library

src/common/detour/DetourNavMesh.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNavMesh.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNavMeshBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNavMeshBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNavMeshQuery.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNavMeshQuery.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourNode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/detour/DetourStatus.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/fmt/container.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++ - standard container utilities
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/format.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/format.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/ostream.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++ - std::ostream support
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/ostream.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++ - std::ostream support
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/posix.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
A C++ interface to POSIX functions.
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/posix.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
A C++ interface to POSIX functions.
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/printf.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/printf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/string.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++ - string utilities
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/fmt/time.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Formatting library for C++ - time formatting
33
44
Copyright (c) 2012 - 2016, Victor Zverovich

src/common/kernel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/kernel.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/lua/lua.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
** $Id: lua.h,v 1.218.1.4 2008/01/03 15:41:15 roberto Exp $
33
** Lua - An Extensible Extension Language
44
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)

src/common/lua/lua.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// lua.hpp
1+
// lua.hpp
22
// Lua header files for C++
33
// <<extern "C">> not supplied automatically because Lua also compiles as C++
44

src/common/lua/luaconf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
** $Id: luaconf.h,v 1.82.1.6 2008/01/18 17:07:48 roberto Exp $
33
** Configuration file for Lua
44
** See Copyright Notice in lua.h

src/common/lua/lualib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
** $Id: lualib.h,v 1.36.1.1 2007/12/27 13:02:25 roberto Exp $
33
** Lua standard libraries
44
** See Copyright Notice in lua.h

src/common/lua/luaxlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
** $Id: lauxlib.h,v 1.88.1.1 2007/12/27 13:02:25 roberto Exp $
33
** Auxiliary functions for building Lua libraries
44
** See Copyright Notice in lua.h

src/common/lua/lunar.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22
#include "lua.hpp"
33
/* Binds C++ objects to Lua objects. */
44
template <typename T> class Lunar {

src/common/marshal/string.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
1+
/*
22
===========================================================================
33
4-
Copyright © 2015 Darkstar Dev Teams
4+
Copyright © 2015 Darkstar Dev Teams
55
66
This program is free software: you can redistribute it and/or modify
77
it under the terms of the GNU General Public License as published by

src/common/md52.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/md52.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/mmo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/recast/Recast.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/recast/RecastAlloc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/recast/RecastAssert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2009-2010 Mikko Mononen [email protected]
33
//
44
// This software is provided 'as-is', without any express or implied

src/common/showmsg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
Copyright (c) Athena Dev Teams - Licensed under GNU G
44
===========================================================================

src/common/showmsg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
Copyright (c) Athena Dev Teams - Licensed under GNU G
44
===========================================================================

src/common/socket.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2010-2015 Darkstar Dev Teams
1+
// Copyright (c) 2010-2015 Darkstar Dev Teams
22

33
#include "../common/cbasetypes.h"
44
#include "../common/mmo.h"

src/common/socket.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2010-2015 Darkstar Dev Teams
1+
// Copyright (c) 2010-2015 Darkstar Dev Teams
22

33
#ifndef _SOCKET_H_
44
#define _SOCKET_H_

src/common/sql.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33
44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/sql.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
1+
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
22
// For more information, see LICENCE in the main folder
33

44
#ifndef _COMMON_SQL_H

src/common/taskmgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/taskmgr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/timer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2010-2015 Darkstar Dev Teams
1+
// Copyright (c) 2010-2015 Darkstar Dev Teams
22

33
#include "../common/showmsg.h"
44
#include "../common/utils.h"

src/common/timer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2010-2015 Darkstar Dev Teams
1+
// Copyright (c) 2010-2015 Darkstar Dev Teams
22

33
#ifndef _TIMER_H
44
#define _TIMER_H

src/common/tpzrand.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <random>
1+
#include <random>
22

33
class tpzrand
44
{

src/common/utils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/common/zlib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../common/zlib.h"
1+
#include "../common/zlib.h"
22
#include "../common/showmsg.h"
33
#include <vector>
44
#include <string>

src/common/zlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2010-2015 Darkstar Dev Teams
1+
// Copyright (c) 2010-2015 Darkstar Dev Teams
22
#ifndef _ZLIB_H
33
#define _ZLIB_H
44

src/login/account.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/login/account.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

src/login/lobby.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
===========================================================================
33

44
Copyright (c) 2010-2015 Darkstar Dev Teams

0 commit comments

Comments
 (0)