Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
CMakeUserPresets.json


*build*/**/*
.idea
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.10)
project(pm3)

# Specify C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# Add library
add_library(pm3lib pm3/pm3.cc)

# Include directories for the library
target_include_directories(pm3lib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/pm3)

# Create executable
add_executable(pm3 main.cc)

# Link the library with the executable
target_link_libraries(pm3 PRIVATE pm3lib)
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# pm3
Premier Manager 3 savegame tool

# Build
mkdir build
cd build
cmake ..
make

# Run
```
Usage: pm3 -[abc] -g 1-8 [-f] [-t 0-113] [-l] [-s] [-h] /path/to/pm3/

-[abc]
Dump game[abc]

-g 1-8, --game=1-8
Which savegame to work on

-f
Print out free players

-t 0-113
Change starting team to team ID

-l
Level aggression to 5 for all players in all teams

-s
Maximize all values for team

-h
Displays this help message

/path/to/pm3/
Path to PM3
```
Loading