GithubHelp home page GithubHelp logo

f0rtesque / psptemplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from undeadborn/psptemplate

0.0 0.0 0.0 5 KB

PSP project template for Visual Studio Code

License: MIT License

Makefile 25.97% C 74.03%

psptemplate's Introduction

VSCODE PSP HOMEBREW TEMPLATE

Introduction

Visual Studio Code project template for PSP homebrew creation using MINPSP Windows SDK.

What's included in this template?

  • This project uses the Microsoft VSCode C/C++ extension to have the Visual Studio C/C++ features in VSCode (such as IntelliSense), so it includes the c_cpp_properties.json VSCode properties file with the required configuration to be integrated with MINPSP SDK libraries and PSP GCC compiler.
  • Has been defined a folder structure for the project. Feel free to use it or modify for your project.
  • Includes the Makefile file to easily build the resulting EBOOT.PBP file using make command.

Project structure

This project implements a basic Hello World example, and follows the next folder structure:

.src/ # your main project source
.res/ # any asset, such as PSP icon, background and music (if any) for your homebrew
.lib/ # any 3rd party lib
Makefile # the makefile required to build your program

Remember that any new src file created needs the corresponding *.o file to be provided under OBJS property in Makefile (see main.o and callback.o as example). This is required until I improve the Makefile script.

Requirements

How to start

  • Install MINPSP, VSCode and C/C++ extension from the Requirements section.
  • Clone or download this repository.
  • Inside root project folder, execute make to generate the EBOOT.PBP.
  • Open the EBOOT.PBP with PPSSPP emulator or put the file in your PSP /PSP/GAME/ folder.
  • If you want to clean the generated binaries, use make clean.

TODO

  • Programatically add all *.o files from src in Makefile OBJS property.
  • Specify a target folder (that would be created automatically, if not exists) for the binaries created by make command.
  • Include a quick introduction on this readme of how to debug with PSPLink

Why this ? Personal comments ...

I was playing around with PSPSDK, MINPSP... Didn't want to use Visual Studio because my laptop is quite slow and VSCode is very lightweight in comparison.

My first attemp was to use Linux instead of Windows, so I tried to compile PSPSDK Toolchain in Ubuntu, but faced some errors while building dependencies (some users are facing the same problem as well, there are some issues in github repo about this). I noticed they have a Docker file, but didn't tried out because I prefer to have direct access to SDK libraries for IDE purposes ...

After some few more attemps, I decided to test the MINPSP SDK in Linux (in fact, MINPSP extends PSPSDK including more C libraries ported for PSPSDK), but faced errors with the .deb package installation as well.

Finally I tested with MINPSP build for Windows, and didn't faced any problem with this.

In fact, you can use this template with whatever PSP SDK you use. You only need to update the c_cpp_properties.json with your configuration.

psptemplate's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.