Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Next

## Version 9.2.13 (2025-05-23)
* More fixes for placeshifter on windows (added consolewin registry optional logging to match client)

## Version 9.2.12 (2025-05-18)
* Fix for placeshifter on windows (also added optional logging)

Expand Down
2 changes: 1 addition & 1 deletion java/sage/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Version
{
public static final byte MAJOR_VERSION = 9;
public static final byte MINOR_VERSION = 2;
public static final byte MICRO_VERSION = 12;
public static final byte MICRO_VERSION = 13;

public static final String VERSION = MAJOR_VERSION + "." + MINOR_VERSION + "." + MICRO_VERSION + "." + SageConstants.BUILD_VERSION;

Expand Down
6 changes: 4 additions & 2 deletions java/sage/media/image/RawImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package sage.media.image;

import java.nio.Buffer;

/**
*
* @author Narflex
Expand Down Expand Up @@ -86,9 +88,9 @@ public java.nio.ByteBuffer getData()
// For multithreading we need to give each caller a new buffer object to handle the positions; but share the same data
public java.nio.ByteBuffer getROData()
{
dataBuff.mark(); // GCJ needs this or it throws an exception
((Buffer) dataBuff).mark(); // GCJ needs this or it throws an exception
java.nio.ByteBuffer rv = dataBuff.asReadOnlyBuffer();
rv.rewind();
((Buffer) rv).rewind();
return rv;
}

Expand Down
19 changes: 1 addition & 18 deletions java/sage/miniclient/MiniClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
*/
package sage.miniclient;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class MiniClient
{
public static boolean WINDOWS_OS = false;
Expand All @@ -29,7 +24,6 @@ public class MiniClient
public static boolean fsStartup = false;
public static Integer irKillCode = null;
public static final String BYTE_CHARSET = "ISO8859_1";
public static final String redirectLogProp = "write_output_to_miniClient_log";
static
{
System.out.println("Starting MiniClient");
Expand Down Expand Up @@ -166,18 +160,7 @@ public synchronized void println(String s)
}
};

if (myProperties.getProperty(redirectLogProp, "false").equalsIgnoreCase("true")){
try {
PrintStream printStream = new PrintStream(new BufferedOutputStream(new FileOutputStream(redirectLog)),true);
System.setOut(printStream);
System.setErr(printStream);
} catch (FileNotFoundException ex) {
ex.printStackTrace();
}
}else{
System.setOut(redir);
}

System.setOut(redir);
mainArgs = args;
boolean noretries = false;
for (int i = 0; args != null && i < args.length; i++)
Expand Down
19 changes: 16 additions & 3 deletions native/exe/MiniClientLauncher/MiniClientLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,27 @@ int APIENTRY WinMain(HINSTANCE hInstance,
(LPSTR)NULL );

/*
* Explicitly load jvm.dll by using the Windows Registry to locate the current version to use.
*/
* Optionally open a console window for debugging - dependent on "consolewin" in registry
*/
HKEY rootKey = HKEY_LOCAL_MACHINE;
char currVer[16];
HKEY myKey;
DWORD readType;
DWORD dwRead = 0;
DWORD hsize = sizeof(dwRead);
if (RegOpenKeyEx(rootKey, "Software\\Frey Technologies\\Common", 0, KEY_QUERY_VALUE, &myKey) == ERROR_SUCCESS)
{
if (RegQueryValueEx(myKey, "consolewin", 0, &readType, (LPBYTE)&dwRead, &hsize) == ERROR_SUCCESS)
{
if (dwRead)
AllocConsole();
}
RegCloseKey(myKey);
}

/*
* Explicitly load jvm.dll by using the Windows Registry to locate the current version to use.
*/
char currVer[16];
hsize = sizeof(currVer);
HMODULE exeMod = GetModuleHandle(NULL);
LPTSTR appPath = new TCHAR[512];
Expand Down