-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NDSi] Port Vanilla-Conquer to Nintendo DSi.
This commit introduces a new target platform to Vanilla-Conquer: The mighty Nintendo DSi. It includes: - A CMake toolchain file for devKitPro - A video interface to the game graphical engine relying purely on libnds. - A dedicated asynchronous sound engine running on the secondary ARM7. - Fixing many unaligned accesses problems in the engine. - Introduce ways of measuring how much RAM to allocate to BigShapeBuff. - Optimized functions for the platform and a macro that can be used by other developers to also change some functions optimizations according to their needs. [NDSi] Fix tickling effect in music
- Loading branch information
1 parent
11efe9b
commit eebd762
Showing
80 changed files
with
5,573 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
add_definitions(-DARM7 -D_NDS) | ||
|
||
set(ARCH "-mthumb -mthumb-interwork -mcpu=arm7tdmi -mtune=arm7tdmi") | ||
set(CMAKE_C_FLAGS "${ARCH} -g -fomit-frame-pointer -fno-rtti -fno-exceptions -ffast-math -fstack-protector-all") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS}") | ||
SET(CMAKE_CXX_FLAGS_DEBUG "-Os -g") | ||
set(CMAKE_CXX_FLAGS_RELEASE "-Os") | ||
set(CMAKE_EXE_LINKER_FLAGS "-specs=ds_arm7.specs -mthumb -mthumb-interwork -Wl,-Map,vanilla.map") | ||
|
||
set(ARM7_SRC | ||
main.cpp | ||
audio.cpp | ||
printf.cpp | ||
) | ||
|
||
# Link with those libraries | ||
link_libraries("-lc") # C library | ||
link_libraries("-lnds7d") | ||
|
||
add_executable(arm7.elf ${ARM7_SRC}) |
Oops, something went wrong.