Skip to content

Commit 85c221f

Browse files
committed
Update all references of hosae to new name.
1 parent d68c558 commit 85c221f

37 files changed

+132
-134
lines changed

.clang-format

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
# Generated from CLion C/C++ Code Style settings
2-
BasedOnStyle: LLVM
1+
BasedOnStyle: Microsoft
32
AccessModifierOffset: -4
43
AlignAfterOpenBracket: Align
5-
#AlignConsecutiveAssignments: AcrossComments
64
AlignConsecutiveBitFields: Consecutive
75
AlignConsecutiveMacros: Consecutive
8-
AlignConsecutiveDeclarations: Consecutive
96
AlignEscapedNewlines: Left
107
AlignTrailingComments: true
118
AlignOperands: true
12-
AllowAllArgumentsOnNextLine: false
13-
AllowAllConstructorInitializersOnNextLine: false
14-
AllowAllParametersOfDeclarationOnNextLine: false
9+
AlignArrayOfStructures: Left
10+
AllowAllArgumentsOnNextLine: true
11+
AllowAllConstructorInitializersOnNextLine: true
12+
AllowAllParametersOfDeclarationOnNextLine: true
1513
AllowShortBlocksOnASingleLine: Always
1614
AllowShortCaseLabelsOnASingleLine: true
1715
AllowShortFunctionsOnASingleLine: All
@@ -51,9 +49,9 @@ SpaceInEmptyParentheses: false
5149
SpacesBeforeTrailingComments: 0
5250
SpacesInAngles: true
5351
SpacesInCStyleCastParentheses: true
54-
SpacesInContainerLiterals: false
52+
SpacesInContainerLiterals: true
5553
SpacesInParentheses: true
5654
SpacesInSquareBrackets: true
5755
TabWidth: 4
58-
UseTab: AlignWithSpaces
56+
UseTab: ForIndentation
5957
SortIncludes: Never

.github/workflows/build-linux-gcc_x64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: 'Upload Artifact'
2828
uses: actions/upload-artifact@v2.2.4
2929
with:
30-
name: hosae-release
30+
name: chronon-release
3131
path: release/
3232
retention-days: 30
3333

.github/workflows/build-windows-gcc_x64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: 'Upload Artifact'
3838
uses: actions/upload-artifact@v2.2.4
3939
with:
40-
name: hosae-release
40+
name: chronon-release
4141
path: release/
4242
retention-days: 30
4343

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1919

2020
cmake_minimum_required(VERSION 3.5.1)
2121

22-
project(hosae)
22+
project(Chronon)
2323

2424
set(CMAKE_CXX_STANDARD 20)
2525
set(CMAKE_C_STANDARD 11)
@@ -66,15 +66,15 @@ add_definitions(-DGIT_BRANCH="${GIT_BRANCH}")
6666

6767
##############################################################
6868

69-
set(HOSAE_OUTPUT_DIR "${CMAKE_SOURCE_DIR}/release/")
70-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${HOSAE_OUTPUT_DIR}")
71-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${HOSAE_OUTPUT_DIR}")
69+
set(CHRONON_OUTPUT_DIR "${CMAKE_SOURCE_DIR}/release/")
70+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CHRONON_OUTPUT_DIR}")
71+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CHRONON_OUTPUT_DIR}")
7272
set(CMAKE_SHARED_LIBRARY_PREFIX "")
7373
foreach (OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
7474
string(TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG)
75-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${HOSAE_OUTPUT_DIR})
76-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${HOSAE_OUTPUT_DIR})
77-
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${HOSAE_OUTPUT_DIR})
75+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CHRONON_OUTPUT_DIR})
76+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CHRONON_OUTPUT_DIR})
77+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CHRONON_OUTPUT_DIR})
7878
endforeach (OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES)
7979

8080
include_directories(qcommon/include/)

engine/CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elseif (UNIX)
4343
)
4444
endif ()
4545

46-
add_executable(hosae-engine WIN32
46+
add_executable(chronon-engine WIN32
4747
app.cpp
4848
hunk.cpp
4949
input.cpp
@@ -122,36 +122,36 @@ add_executable(hosae-engine WIN32
122122
../3rdparty/glew/src/glew.c
123123
)
124124

125-
set_target_properties(hosae-engine PROPERTIES OUTPUT_NAME hosae)
125+
set_target_properties(chronon-engine PROPERTIES OUTPUT_NAME Chronon)
126126

127-
target_compile_definitions(hosae-engine PRIVATE
127+
target_compile_definitions(chronon-engine PRIVATE
128128
GLEW_STATIC
129129
)
130-
target_include_directories(hosae-engine PRIVATE
130+
target_include_directories(chronon-engine PRIVATE
131131
./
132132
../
133133
../3rdparty/
134134
../3rdparty/glew/include/
135135
)
136136

137-
target_link_libraries(hosae-engine hosae-game)
137+
target_link_libraries(chronon-engine chronon-game)
138138

139139
find_package(SDL2 CONFIG)
140140
if (${SDL2_FOUND})
141-
target_link_libraries(hosae-engine ${SDL2_LIBRARIES})
141+
target_link_libraries(chronon-engine ${SDL2_LIBRARIES})
142142
else ()
143143
message("Linking against SDL2 in repository.")
144-
target_include_directories(hosae-engine PRIVATE ../3rdparty/sdl2/include/)
145-
target_link_directories(hosae-engine PRIVATE ../3rdparty/sdl2/lib/)
146-
target_link_libraries(hosae-engine SDL2)
144+
target_include_directories(chronon-engine PRIVATE ../3rdparty/sdl2/include/)
145+
target_link_directories(chronon-engine PRIVATE ../3rdparty/sdl2/lib/)
146+
target_link_libraries(chronon-engine SDL2)
147147
endif ()
148148

149149
set(OpenGL_GL_PREFERENCE GLVND)
150150
find_package(OpenGL REQUIRED)
151-
target_link_libraries(hosae-engine ${OPENGL_LIBRARIES})
151+
target_link_libraries(chronon-engine ${OPENGL_LIBRARIES})
152152

153153
if (WIN32)
154-
target_link_libraries(hosae-engine
154+
target_link_libraries(chronon-engine
155155
mingw32
156156
Imm32
157157
Setupapi
@@ -160,5 +160,5 @@ if (WIN32)
160160
Winmm
161161
)
162162
elseif (UNIX AND NOT APPLE)
163-
target_link_libraries(hosae-engine X11 Xext dl)
163+
target_link_libraries(chronon-engine X11 Xext dl)
164164
endif ()

engine/ape/ape.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include "../client/client.h"
77

8-
namespace nox::ape
8+
namespace chr::ape
99
{
1010
enum class OpCode
1111
{

engine/app.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3131
#include "client/keys.h"
3232
#include "client/input.h"
3333

34-
nox::App *nox::globalApp = nullptr;
34+
chr::App *chr::globalApp = nullptr;
3535

36-
void nox::App::Initialize()
36+
void chr::App::Initialize()
3737
{
3838
int status = SDL_Init(
3939
SDL_INIT_VIDEO |
@@ -48,13 +48,13 @@ void nox::App::Initialize()
4848
Qcommon_Init( argc_, argv_ );
4949
}
5050

51-
[[noreturn]] void nox::App::Run()
51+
[[noreturn]] void chr::App::Run()
5252
{
5353
unsigned int time, newTime;
5454
unsigned int oldTime = GetNumMilliseconds();
5555
while ( true )
5656
{
57-
nox::globalApp->PollEvents();
57+
chr::globalApp->PollEvents();
5858

5959
do
6060
{
@@ -73,7 +73,7 @@ void nox::App::Initialize()
7373

7474
unsigned int sys_frame_time = 0;// todo: kill
7575

76-
void nox::App::SendKeyEvents()
76+
void chr::App::SendKeyEvents()
7777
{
7878
SDL_PumpEvents();
7979

@@ -82,13 +82,13 @@ void nox::App::SendKeyEvents()
8282
sys_frame_time = GetNumMilliseconds();// FIXME: should this be at start?
8383
}
8484

85-
unsigned int nox::App::GetNumMilliseconds()
85+
unsigned int chr::App::GetNumMilliseconds()
8686
{
8787
lastMs_ = SDL_GetTicks();
8888
return lastMs_;
8989
}
9090

91-
char *nox::App::GetClipboardData()
91+
char *chr::App::GetClipboardData()
9292
{
9393
if ( !SDL_HasClipboardText() )
9494
{
@@ -99,7 +99,7 @@ char *nox::App::GetClipboardData()
9999
}
100100

101101
bool IN_HandleEvent( const SDL_Event &event );
102-
void nox::App::PollEvents()
102+
void chr::App::PollEvents()
103103
{
104104
SDL_Event event;
105105
while ( SDL_PollEvent( &event ) )
@@ -140,7 +140,7 @@ void nox::App::PollEvents()
140140
/**
141141
* This pushes the given string to the native terminal/console.
142142
*/
143-
void nox::App::PushConsoleOutput( const char *text )
143+
void chr::App::PushConsoleOutput( const char *text )
144144
{
145145
#if defined( _WIN32 ) && defined( _MSC_VER )
146146
OutputDebugString( text );
@@ -149,7 +149,7 @@ void nox::App::PushConsoleOutput( const char *text )
149149
#endif
150150
}
151151

152-
void nox::App::ShowCursor( bool show )
152+
void chr::App::ShowCursor( bool show )
153153
{
154154
SDL_ShowCursor( show );
155155
}
@@ -163,9 +163,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
163163
extern "C" int main( int argc, char **argv )
164164
{
165165
#endif
166-
nox::globalApp = new nox::App( argc, argv );
166+
chr::globalApp = new chr::App( argc, argv );
167167

168168
// todo: consider combining these??
169-
nox::globalApp->Initialize();
170-
nox::globalApp->Run();
169+
chr::globalApp->Initialize();
170+
chr::globalApp->Run();
171171
}

engine/app.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2121

2222
#pragma once
2323

24-
namespace nox
24+
namespace chr
2525
{
2626
class App
2727
{

engine/client/cl_input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void CL_SendCmd( void )
475475

476476
if ( cls.state == ca_connected )
477477
{
478-
if ( cls.netchan.message.cursize || nox::globalApp->GetCurrentMillisecond() - cls.netchan.last_sent > 1000 )
478+
if ( cls.netchan.message.cursize || chr::globalApp->GetCurrentMillisecond() - cls.netchan.last_sent > 1000 )
479479
Netchan_Transmit( &cls.netchan, 0, buf.data );
480480
return;
481481
}

engine/client/cl_main.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ void CL_Disconnect( void )
611611
{
612612
int time;
613613

614-
time = nox::globalApp->GetNumMilliseconds() - cl.timedemo_start;
614+
time = chr::globalApp->GetNumMilliseconds() - cl.timedemo_start;
615615
if ( time > 0 )
616616
Com_Printf( "%i frames, %3.1f seconds: %3.1f fps\n", cl.timedemo_frames,
617617
time / 1000.0, cl.timedemo_frames * 1000.0 / time );
@@ -858,7 +858,7 @@ void CL_Skins_f( void )
858858
continue;
859859
Com_Printf( "client %i: %s\n", i, cl.configstrings[ CS_PLAYERSKINS + i ] );
860860
SCR_UpdateScreen();
861-
nox::globalApp->SendKeyEvents();// pump message loop
861+
chr::globalApp->SendKeyEvents();// pump message loop
862862
CL_ParseClientinfo( i );
863863
}
864864
}
@@ -1443,7 +1443,7 @@ CL_InitLocal
14431443
void CL_InitLocal( void )
14441444
{
14451445
cls.state = ca_disconnected;
1446-
cls.realtime = nox::globalApp->GetNumMilliseconds();
1446+
cls.realtime = chr::globalApp->GetNumMilliseconds();
14471447

14481448
CL_InitInput();
14491449

@@ -1683,7 +1683,7 @@ CL_SendCommand
16831683
void CL_SendCommand()
16841684
{
16851685
// get new key events
1686-
nox::globalApp->SendKeyEvents();
1686+
chr::globalApp->SendKeyEvents();
16871687

16881688
// allow mice or other external controllers to add commands
16891689
IN_Commands();
@@ -1725,7 +1725,7 @@ void CL_Frame( unsigned int msec )
17251725
// decide the simulation time
17261726
cls.frametime = extratime / 1000.0;
17271727
cl.time += extratime;
1728-
cls.realtime = nox::globalApp->GetCurrentMillisecond();
1728+
cls.realtime = chr::globalApp->GetCurrentMillisecond();
17291729

17301730
extratime = 0;
17311731
#if 0
@@ -1738,7 +1738,7 @@ void CL_Frame( unsigned int msec )
17381738

17391739
// if in the debugger last frame, don't timeout
17401740
if ( msec > 5000 )
1741-
cls.netchan.last_received = nox::globalApp->GetNumMilliseconds();
1741+
cls.netchan.last_received = chr::globalApp->GetNumMilliseconds();
17421742

17431743
// fetch results from server
17441744
CL_ReadPackets();
@@ -1756,10 +1756,10 @@ void CL_Frame( unsigned int msec )
17561756

17571757
// update the screen
17581758
if ( host_speeds->value )
1759-
time_before_ref = nox::globalApp->GetNumMilliseconds();
1759+
time_before_ref = chr::globalApp->GetNumMilliseconds();
17601760
SCR_UpdateScreen();
17611761
if ( host_speeds->value )
1762-
time_after_ref = nox::globalApp->GetNumMilliseconds();
1762+
time_after_ref = chr::globalApp->GetNumMilliseconds();
17631763

17641764
// update audio
17651765
S_Update( cl.refdef.vieworg, cl.v_forward, cl.v_right, cl.v_up );
@@ -1780,13 +1780,13 @@ void CL_Frame( unsigned int msec )
17801780
{
17811781
if ( !lasttimecalled )
17821782
{
1783-
lasttimecalled = nox::globalApp->GetNumMilliseconds();
1783+
lasttimecalled = chr::globalApp->GetNumMilliseconds();
17841784
if ( log_stats_file )
17851785
fprintf( log_stats_file, "0\n" );
17861786
}
17871787
else
17881788
{
1789-
unsigned int now = nox::globalApp->GetNumMilliseconds();
1789+
unsigned int now = chr::globalApp->GetNumMilliseconds();
17901790

17911791
if ( log_stats_file )
17921792
fprintf( log_stats_file, "%d\n", now - lasttimecalled );

0 commit comments

Comments
 (0)