diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..4ded6cc --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,10 @@ +FROM devkitpro/devkitppc:20210726 + +RUN useradd -ms /bin/bash dev \ + && usermod -aG sudo dev + +RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + +ENV PATH="${PATH}:/opt/devkitpro/devkitPPC/bin" + +CMD ["sleep", "infinity"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d042687 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "DevkitPPC", + "build": { + "dockerfile": "./Dockerfile", + "context": "." + }, + "overrideCommand": false, + "remoteUser": "dev", + "extensions": [ + "OGoodness.powerpc-syntax", + "ms-vscode.makefile-tools", + "ms-vscode.cpptools" + ] +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..3e904f3 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,22 @@ +{ + "configurations": [ + { + "name": "Linux", + "compilerPath": "${DEVKITPPC}/bin/powerpc-eabi-cpp", + "cppStandard": "c++11", + "includePath": [ + "${workspaceFolder}/include/**", + "${DEVKITPPC}/include/**", + "${DEVKITPRO}/portlibs/wii/include/**", + "${DEVKITPRO}/portlibs/ppc/include/**", + "${DEVKITPRO}/libogc/include/**", + "${DEVKITPPC}/lib/gcc/powerpc-eabi/11.1.0/include/**" + ], + "browse": { + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "" + } + } + ], + "version": 4 +} \ No newline at end of file