Antar att det inte skadar att posta den här.. Om någon misstycket är det bara att säga till.
"Hi folks, I just got Voddler to work on wine under Linux.
There are 2 things that has to be solved, the first thing is that the GetSystemTimes() function are not implemented in Wine and i found a patch on internet to solve this, the other thing is to edit the registry
to enable the VoddlerNet service.
First of get the latest wine source from the git and apply the following patch:
diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c
index 2b7bd6c..f717139 100644
--- a/dlls/kernel32/time.c
+++ b/dlls/kernel32/time.c
@@ -1026,9 +1026,17 @@ BOOL WINAPI FileTimeToDosDateTime( const FILETIME *ft, LPWORD fatdate,
* RETURNS
* TRUE if success, FALSE otherwise.
*/
-BOOL WINAPI GetSystemTimes(LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime)
+VOID WINAPI GetSystemTimes(LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime)
{
- FIXME("(%p,%p,%p): Stub!n", lpIdleTime, lpKernelTime, lpUserTime);
-
- return FALSE;
+ // FIXME("(%p,%p,%p): Stub!n", lpIdleTime, lpKernelTime, lpUserTime);
+ struct tms tms;
+ times(&tms);
+ /* FIXME: Calculate based on Idle process time
+ if (lpIdleTime)
+ TIME_ClockTimeToFileTime(tms.tms_utime+tms.tms_stime,lpIdleTime);
+ */
+ if (lpKernelTime)
+ TIME_ClockTimeToFileTime(tms.tms_stime,lpKernelTime);
+ if (lpUserTime)
+ TIME_ClockTimeToFileTime(tms.tms_utime,lpUserTime);
}
diff --git a/include/winbase.h b/include/winbase.h
index 791d58e..6e30e6d 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1726,6 +1726,7 @@ WINBASEAPI BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
WINBASEAPI VOID WINAPI GetSystemTime(LPSYSTEMTIME);
WINBASEAPI BOOL WINAPI GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL);
WINBASEAPI VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
+WINBASEAPI VOID WINAPI GetSystemTimes(LPFILETIME,LPFILETIME,LPFILETIME);
WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryA(LPSTR,UINT);
WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR,UINT);
#define GetSystemWindowsDirectory WINELIB_NAME_AW(GetSystemWindowsDirectory)
Compile and install... dont forget to install the dependencies such as libasound2-dev etc.. to get things to work the right way with wine..
Then you should create a registry file 'voddler.reg' with this content:
REGEDIT4
[HKEY_LOCAL_MACHINESystemCurrentControlSetServicesVoddlerNet]
"Description"="The Voddler Network service"
"DisplayName"="VoddlerNet Service"
"ErrorControl"=dword:00000001
"ImagePath"="C:Program FilesVoddlerserviceVoddler.exe"
"ObjectName"="LocalSystem"
"Start"=dword:00000004
"Type"=dword:00000110
import it into wine registry running:
regedit voddler.reg
start the voddler service: wine net start VoddlerNet
To see that the service is running, run the VNetManager.exe in the c:program filesvoddlerservice
Start the VoddlerPlayer and you are off...
Oh forget one thing, both VNetManager.exe and Voddler.exe service needs the vcredist_x86.exe for Visual studio 2008."
Hade varit kul om någon fick det att fungera.
Lenovo Thinkpad T14 gen 2 - i7 1165G7 - 32Gb ram - 512Gb OPAL2 ssd - 300 nit 1080p