From b2b70fb8d98a5360c420ce95e8c55a9924e653c4 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 12 Jul 2015 21:56:22 -0500 Subject: [PATCH] add jabo printf noise when registry operations fail --- .../mupen64plus-video-jabo/main.cpp | 9 ++++++--- output/dll/mupen64plus-video-jabo.dll | Bin 26624 -> 27136 bytes 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libmupen64plus/mupen64plus-video-jabo/main.cpp b/libmupen64plus/mupen64plus-video-jabo/main.cpp index a06e5fc18f..2ef8cf0f99 100644 --- a/libmupen64plus/mupen64plus-video-jabo/main.cpp +++ b/libmupen64plus/mupen64plus-video-jabo/main.cpp @@ -113,6 +113,7 @@ BOOL readOptionsInitflags (DWORD* options_val, DWORD* initflags_val) if (RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\JaboSoft\\Project64 DLL\\Direct3D8 1.6.1",NULL,NULL,NULL,KEY_READ,NULL,&mainkey,NULL) != ERROR_SUCCESS) { // Couldn't create the key + printf("readOptionsInitflags: Couldn't create the key\n"); return (FALSE); } } @@ -125,6 +126,7 @@ BOOL readOptionsInitflags (DWORD* options_val, DWORD* initflags_val) if (result != ERROR_SUCCESS) { options_value = 0; + printf("readOptionsInitflags: fail A\n"); } *options_val = options_value; @@ -133,6 +135,7 @@ BOOL readOptionsInitflags (DWORD* options_val, DWORD* initflags_val) result = RegQueryValueEx(mainkey, "Direct3D8.InitFlags", NULL, &type, (LPBYTE)&initflags_value, &cbData); if (result != ERROR_SUCCESS) { + printf("readOptionsInitflags: fail B\n"); initflags_value = 0x00e00000; } *initflags_val = initflags_value; @@ -147,7 +150,7 @@ BOOL writeOptionsInitflags(DWORD options_val, DWORD initflags_val) HKEY mainkey; if (RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\JaboSoft\\Project64 DLL\\Direct3D8 1.6.1",0,KEY_WRITE,&mainkey) != ERROR_SUCCESS) { - //LOG("Failure to open key for write"); + printf("writeOptionsInitflags: Failure to open key for write\n"); return (FALSE); } @@ -155,14 +158,14 @@ BOOL writeOptionsInitflags(DWORD options_val, DWORD initflags_val) DWORD new_val = options_val; if (RegSetValueEx(mainkey, "Options", NULL, REG_DWORD, (BYTE *)&new_val, 4) != ERROR_SUCCESS) { - //LOG("Couldn't write options value"); + printf("writeOptionsInitflags: Couldn't write options value\n"); } // Store our init flags value new_val = initflags_val; if (RegSetValueEx(mainkey, "Direct3D8.InitFlags", NULL, REG_DWORD, (BYTE *)&new_val, 4) != ERROR_SUCCESS) { - //LOG("Couldn't write init flags value"); + LOG("writeOptionsInitflags: Couldn't write init flags value"); } RegCloseKey(mainkey); diff --git a/output/dll/mupen64plus-video-jabo.dll b/output/dll/mupen64plus-video-jabo.dll index 0e222a17e44a9bb9487addb3e556251b41e2e73c..88061eaf88ec826b65eaad4abe985005722d6cfe 100644 GIT binary patch delta 6557 zcmcJTdsvj!zQ@-)4TuUhDuaLsg8||V-?`6wnRk#|RA2)#0)`5PI4CJwu{dUpB_%de z)N*^w+(mY?GP6*#9=Ds4gkxUVJG|_+m36F5Wl2eUlTmZN>m5wo=h>$}&eM9H&#d+P zt>0y>^{(~43)XgVYrDB-nd^VlneFRKxO{AD-W5J^hvxkZxq6)@??=?1xV3{dpZ8By zHs%FTU)no7?Id*5rkNvF$J|tXbd+))A1R-nTwBV`yC;dIYM*`38`oO&4ldX9!(q@-a<%SC?V$x z2#I?%aeS0+E+Og6;!1H7(hkem;c0b?>g%BWiGIsX(!6y8jn&*aA}kD=7BHf9t7bm; znD(&=drFBeklb8AbVpG<{tI*b-*$wmT77ftt6HmuljvumDFu<<=pvZv%VD~%U2AUh ze>U&X9KTiPCc5G#Pj8{$GtiXX?{3P!P_Tq}b75Q^$8zhTuUzwo5F3Sv0-(i zlRQM{?s3Eu(v+7J=S}s{r@|iBO!H82cupjb&Vrtt34~m~uUJ{v9_F=p=%(SeaMeq7 zaCqpc;RXj&6gFicLarL{a2z49_jd;LTQE|0&t53}`Qa=Evn^;Uf^C_Hrj2+~qn%5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