Skip to content

Commit

Permalink
Damn it, I can't read my own code!
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverIce committed Jan 8, 2016
1 parent 1ce8c1d commit 7e3b19b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Scripts/Source/PSM_PosemanagerEntries.psc
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,8 @@ int function KHConf_singleton() global
int jLocalObj = JDB.solveObj(path)
int jRemote = JValue.readFromFile(fpath)

bool chooseLocal = jLocalObj != 0 \
&& JSONFile_formatVersion(jLocalObj) == JSONFile_formatVersion(jRemote) \
&& JSONFile_modifyDate(jLocalObj) > JSONFile_modifyDate(jRemote)

if !chooseLocal
if JSONFile_formatVersion(jLocalObj) != JSONFile_formatVersion(jRemote)
JDB.solveObjSetter(path, jRemote, True)
;PrintConsole("KHConf_singleton: " + jRemote)
return jRemote
elseif JSONFile_modifyDate(jLocalObj) > JSONFile_modifyDate(jRemote)
JValue.writeToFile(jLocalObj, fpath)
Expand Down

0 comments on commit 7e3b19b

Please sign in to comment.