Skip to content

kiwidoggie/breadflowerdos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BreadFlowerDos

A Battlefield 2/2142 "decompilation" project

What is this project

This project is an "effort" to create a free and open source recreation of the Refractor 2? Game engine.

Primarily focused on Battlefield 2 and 2142. This is more of a reimplementation of the engine than a 1:1 decomp.

We will be using modern C++ and re-implementing functionality as we see fit, this isn't going to be a direct port but more of a recreation.

Do not expect any meaningful efforts as I open Ghidra and start on this project once every 6 months or so.

Compiling

Requirements

  • CMake 4.0+
  • Clang 19+ (or MSVC)
  • Clang-Tidy
  • Clang-Format

Contribution

You must run clang-tidy and clang-format before each commit, or it will cause build errors.

Linux

From the root directory

find ./src -iname '*.hpp' -o -iname '*.cpp' | clang-format-20 -style=file -i -Werror --files=/dev/stdin

clang-tidy -checks='-*,modernize-concat-nested-namespaces' -fix-errors src/**.hpp -- -Isrc

Windows (TODO)

TODO

About

Decompilation of Battlefield 2/2142

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •