~rabbits/nasu

6bce16d939c60defe0fdaa60a8063498f254eda1 — neauoire 2 years ago aa2fce3
Ability to create new documents
1 files changed, 4 insertions(+), 1 deletions(-)

M nasu.c
M nasu.c => nasu.c +4 -1
@@ 529,7 529,10 @@ main(int argc, char **argv)
	brush.size = 10;
	if(!init())
		return error("Init", "Failure");
	if(argc < 2 || !opendoc(&doc, argv[1]))
	if(argc > 1) {
		if(!opendoc(&doc, argv[1]))
			makedoc(&doc, argv[1]);
	} else
		makedoc(&doc, "untitled.chr");
	while(1) {
		int tick = SDL_GetTicks();