mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
fix formatting -- no code change
This commit is contained in:
parent
ded7ffc6fe
commit
7b985fcbae
1 changed files with 17 additions and 15 deletions
|
@ -202,15 +202,15 @@ public class GameUtils {
|
|||
XwJNI.comms_setAddr( gamePtr, addr );
|
||||
}
|
||||
|
||||
if ( null == lockDest ) {
|
||||
long rowid = saveNewGame( context, gamePtr, gi );
|
||||
lockDest = new GameLock( rowid, true ).lock();
|
||||
} else {
|
||||
saveGame( context, gamePtr, gi, lockDest, true );
|
||||
}
|
||||
summarizeAndClose( context, lockDest, gamePtr, gi );
|
||||
if ( null == lockDest ) {
|
||||
long rowid = saveNewGame( context, gamePtr, gi );
|
||||
lockDest = new GameLock( rowid, true ).lock();
|
||||
} else {
|
||||
saveGame( context, gamePtr, gi, lockDest, true );
|
||||
}
|
||||
summarizeAndClose( context, lockDest, gamePtr, gi );
|
||||
|
||||
return lockDest;
|
||||
return lockDest;
|
||||
} // resetGame
|
||||
|
||||
public static void resetGame( Context context, long rowidIn )
|
||||
|
@ -315,16 +315,18 @@ public class GameUtils {
|
|||
gamePtr = XwJNI.initJNI();
|
||||
|
||||
String langName = gi.langName();
|
||||
boolean madeGame = XwJNI.game_makeFromStream( gamePtr, stream,
|
||||
JNIUtilsImpl.get(), gi,
|
||||
dictNames, pairs.m_bytes,
|
||||
pairs.m_paths, langName,
|
||||
util,
|
||||
CommonPrefs.get(context));
|
||||
boolean madeGame =
|
||||
XwJNI.game_makeFromStream( gamePtr, stream,
|
||||
JNIUtilsImpl.get(), gi,
|
||||
dictNames, pairs.m_bytes,
|
||||
pairs.m_paths, langName,
|
||||
util,
|
||||
CommonPrefs.get(context));
|
||||
if ( !madeGame ) {
|
||||
XwJNI.game_makeNewGame( gamePtr, gi, JNIUtilsImpl.get(),
|
||||
CommonPrefs.get(context), dictNames,
|
||||
pairs.m_bytes, pairs.m_paths, langName );
|
||||
pairs.m_bytes, pairs.m_paths,
|
||||
langName );
|
||||
}
|
||||
}
|
||||
return gamePtr;
|
||||
|
|
Loading…
Reference in a new issue