Skip to content

Commit

Permalink
Creating separate directory for Practice and matches, v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thefourtheye committed Sep 8, 2013
1 parent ecd99cc commit a20312a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 0.0.1
VERSION = 0.0.2
MESSAGE = v${VERSION} (Beta)

default: build
Expand Down
8 changes: 6 additions & 2 deletions src/thefourtheyeEditor/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ public void setProblemComponent (ProblemComponentModel component,
Language language, Renderer renderer)throws Exception
{
String contestName = component.getProblem().getRound().getContestName();
boolean isPracticeRound = component.getProblem().getRound().getRoundType()
.isPracticeRound();
String contestType = isPracticeRound ? "Practice" : "Match";
String problemName = component.getProblem().getName();
File contestDirFileObject = new
File(getConfigValue("SolutionsDirectory"), contestName);
File contestDirFileObject = new File(new
File(getConfigValue("SolutionsDirectory"), contestType),
contestName);

if (contestDirFileObject.exists() == false)
{
Expand Down
Binary file modified thefourtheyeEditor.jar
Binary file not shown.

0 comments on commit a20312a

Please sign in to comment.