- Joined
- Jan 27, 2015
- Messages
- 4,999
- Trophies
- 1
- Location
- Behind a screen reading news
- XP
- 4,935
- Country
Hey all! I was wondering how or if I could setup Sublime text 3 to compile .3dsx files.
Since when has the choice of a text editor mattered in development of any kind? (Except where a specialized IDE is used: see Unity3d)
Just open a terminal and run "make" there, or create a shortcut for that command with your editor.
You can, add this to your makefile after all:/clean: section
Code:run: @ echo run ... PathToCitra\citra.exe $(TARGET).smdh
On Mac?
uh... not sure, but try this:
Code:run: open -a Citra $(TARGET).smdh
run:
PathToCitra\citra.exe $(TARGET).elf //If you're using Windows
open -a Citra $(TARGET).elf //If you're using Linux/Mac.
//Assuming you work from a source folder within your project. Else, you have to tweak "-C .."
{
"cmd": "make -C ..",
"variants":
[
{
"name": "Run",
"cmd": "make run -C .."
},
{
"name": "Clean",
"cmd": "make clean -C .."
},
]
}
I'm not really for adding a run target in the makefile, because it's too platform- and installation-dependent. Just do something like "make && path/to/citra thing" on the cmd line (again, this differs per platform and text editor).
Yeah, but he asked how to do it directly with sublime and/or netbeans.
"cmd": "make && path/to/citra thing"
Thank you. I will try this as soon as I can.Ok just retested it on windows, there are some errors and missing stuff in my previous post.
Here is an update instruction:
1. in your makefile add.
Code:run: PathToCitra\citra.exe $(TARGET).elf //If you're using Windows open -a Citra $(TARGET).elf //If you're using Linux/Mac.
NetBeans only:
2. Right click your project -> properties -> run -> and in the run command field write : make run
Sublime Text 3:
1. Tools -> Build System -> New Build System
2. Replace existing code with:
3. Save it as 3DS (or whatever)Code://Assuming you work from a source folder within your project. Else, you have to tweak "-C .." { "cmd": "make -C ..", "variants": [ { "name": "Run", "cmd": "make run -C .." }, { "name": "Clean", "cmd": "make clean -C .." }, ] }
4. Open your source file
5. Tools -> Build System -> 3DS (or whatever)
You can now build/run from the tools tab and you will find all options in the command palette (CTRL+Shift+P)
Hope that helps