Skip to content

Commit af079ed

Browse files
authored
Merge pull request #25 from ReDevCafe/dev
Dev
2 parents 91c8955 + ea217ac commit af079ed

7 files changed

Lines changed: 8130 additions & 109 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
!README.md
88
!.github/
99
!.github/**/*
10-
!version_proxy.def
11-
!.gitmodule
10+
!version_proxy.def

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "include"]
22
path = include
33
url = https://github.com/ReDevCafe/FantasyLifeI-ModLoader-Headers.git
4+
branch = main

CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.10)
1+
cmake_minimum_required(VERSION 3.16)
22
project(FantasyLifeI-ModLoader LANGUAGES CXX C)
33

44
set(VERSION 1.00)
@@ -14,7 +14,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
1414
)
1515

1616
target_compile_definitions(${PROJECT_NAME} PRIVATE MLCOMPILED)
17-
target_compile_definitions(${PROJECT_NAME} PRIVATE MLVERSION=\"${VERSION}\")
17+
target_compile_definitions(${PROJECT_NAME} PRIVATE MLVERSION=${VERSION})
1818

1919
if(MLDEBUG)
2020
target_compile_definitions(${PROJECT_NAME} PRIVATE MLDEBUG)
@@ -36,8 +36,11 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
3636
kernel32
3737
)
3838

39-
file(GLOB_RECURSE PROJECT_SOURCE "src/*.cpp")
39+
target_sources(${PROJECT_NAME} PRIVATE src/Lib/miniz.c)
40+
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/miniz)
41+
target_compile_definitions(${PROJECT_NAME} PRIVATE MZ_ZIP_READER_ONLY)
4042

43+
file(GLOB_RECURSE PROJECT_SOURCE "src/*.cpp")
4144
target_sources(${PROJECT_NAME} PUBLIC
4245
${PROJECT_SOURCE}
43-
)
46+
)

DllProxy/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.6)
2-
PROJECT(DllProxy LANGUAGES CXX C)
1+
cmake_minimum_required(VERSION 3.16)
2+
project(DllProxy LANGUAGES CXX C)
33

44
add_library(${PROJECT_NAME} SHARED src/dllmain.cpp)
55

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,14 @@ Fantasy Life I/
4242
└── Mods/
4343
```
4444

45-
2. For each mod. create a subfolder inside `Mods` and drop in **both**:
46-
- `Mod.json`
47-
- The compiled mod DLL (e.g. `MyMod.mod`)
48-
49-
> [!WARNING]
50-
> Both files are required for the mod to be recognized and initialized by the mod loader so if a mod doesn't include them, there's a good chance the developer messed up their export. <br />
45+
2. Place your `.fliarchive` mod files inside the `Mods` directory
5146

5247
Example layout:
5348
```mathematica
5449
Fantasy Life I/
5550
└── Game/
5651
└── Contents/
5752
└── Mods/
58-
├── MyMod/
59-
│ ├── Mod.json
60-
│ └── MyMod.mod
61-
└── OtherMod/...
53+
├── MyMod.fliarchive
54+
└── OtherMod.fliarchive
6255
```

0 commit comments

Comments
 (0)