Skip to content

Commit

Permalink
Reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Mar 5, 2024
1 parent 11b2834 commit 12546a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ target_sources(${EXECUTABLE_NAME} PUBLIC
target_sources(${EXECUTABLE_NAME} PUBLIC
"src/audio_engine.cc"
"src/audio_engine.h"
"src/endian.hpp"
"src/fps_limiter.cc"
"src/fps_limiter.h"
"src/platform_compat.cc"
Expand Down
24 changes: 0 additions & 24 deletions src/endian.hpp

This file was deleted.

11 changes: 10 additions & 1 deletion src/movie_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <string.h>

#include "audio_engine.h"
#include "endian.hpp"
#include "platform_compat.h"

namespace fallout {
Expand Down Expand Up @@ -98,6 +97,16 @@ static int _MVE_sndDecompS16(unsigned short* a1, unsigned char* a2, int a3, int
static void _nfPkConfig();
static void _nfPkDecomp(unsigned char* buf, unsigned char* a2, int a3, int a4, int a5, int a6);

constexpr static uint16_t LoadLE16(const uint8_t* b)
{
return (b[1] << 8) | b[0];
}

constexpr static uint32_t LoadLE32(const uint8_t* b)
{
return (b[3] << 24) | (b[2] << 16) | (b[1] << 8) | b[0];
}

// 0x51EBD8
static int dword_51EBD8 = 0;

Expand Down

0 comments on commit 12546a7

Please sign in to comment.