daily update on 2024.03.18 by itload youmu

This commit is contained in:
YoumuLiu
2024-03-19 02:41:04 +08:00
parent 15bf989285
commit 0c50c6282e
200 changed files with 7663 additions and 3455 deletions
Binary file not shown.
+48 -274
View File
@@ -143,16 +143,15 @@ PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PUBLIC printf
PUBLIC initGL
PUBLIC loadShaderCode
PUBLIC linkShaderProgram
PUBLIC loadImageData
PUBLIC loadGlfuncDefault
PUBLIC unloadImageData
PUBLIC readLog
PUBLIC __JustMyCode_Default
PUBLIC ??_C@_03OFAPEBGM@?$CFs?6@ ; `string'
PUBLIC ??_C@_05JMLLFKBP@?$CFllu?6@ ; `string'
PUBLIC ??_C@_0BL@MOJGOJJP@Failed?5to?5load?5OpenGL?5api?3@ ; `string'
PUBLIC ??_C@_03OFAPEBGM@?$CFs?6@ ; `string'
EXTRN __report_rangecheckfailure:PROC
EXTRN __imp_free:PROC
EXTRN glfwInit:PROC
@@ -197,12 +196,6 @@ $pdata$initGL DD imagerel $LN3
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$loadShaderCode DD imagerel $LN8
DD imagerel $LN8+380
DD imagerel $unwind$loadShaderCode
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$linkShaderProgram DD imagerel $LN5
DD imagerel $LN5+223
DD imagerel $unwind$linkShaderProgram
@@ -239,6 +232,10 @@ rtc$TMZ ENDS
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
; COMDAT ??_C@_03OFAPEBGM@?$CFs?6@
CONST SEGMENT
??_C@_03OFAPEBGM@?$CFs?6@ DB '%s', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BL@MOJGOJJP@Failed?5to?5load?5OpenGL?5api?3@
CONST SEGMENT
??_C@_0BL@MOJGOJJP@Failed?5to?5load?5OpenGL?5api?3@ DB 'Failed to load Op'
@@ -248,10 +245,6 @@ CONST ENDS
CONST SEGMENT
??_C@_05JMLLFKBP@?$CFllu?6@ DB '%llu', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_03OFAPEBGM@?$CFs?6@
CONST SEGMENT
??_C@_03OFAPEBGM@?$CFs?6@ DB '%s', 0aH, 00H ; `string'
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$readLog DD 025050f01H
@@ -313,39 +306,6 @@ linkShaderProgram$rtcFrameData DD 01H
DD 00H
DQ FLAT:linkShaderProgram$rtcVarDesc
CONST ENDS
; COMDAT voltbl
voltbl SEGMENT
_volmd DW 040H
DW 0163H
voltbl ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$loadShaderCode DD 025054719H
DD 0118231dH
DD 070110029H
DD 05010H
DD imagerel __GSHandlerCheck
DD 0138H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
loadShaderCode$rtcName$0 DB 073H
DB 075H
DB 063H
DB 063H
DB 065H
DB 073H
DB 073H
DB 00H
ORG $+8
loadShaderCode$rtcVarDesc DD 044H
DD 04H
DQ FLAT:loadShaderCode$rtcName$0
ORG $+48
loadShaderCode$rtcFrameData DD 01H
DD 00H
DQ FLAT:loadShaderCode$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$initGL DD 025051601H
@@ -415,7 +375,7 @@ _TEXT SEGMENT
$T1 = 200
readLog PROC ; COMDAT
; 91 : {
; 66 : {
$LN5:
00000 40 55 push rbp
@@ -427,7 +387,7 @@ $LN5:
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00016 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
; 92 : infolog[511] = '\0';
; 67 : infolog[511] = '\0';
0001b b8 01 00 00 00 mov eax, 1
00020 48 69 c0 ff 01
@@ -448,13 +408,13 @@ $LN4@readLog:
00 00 mov rcx, QWORD PTR $T1[rbp]
00050 c6 04 08 00 mov BYTE PTR [rax+rcx], 0
; 93 : return &infolog;
; 68 : return &infolog;
00054 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:infolog
$LN2@readLog:
; 94 : }
; 69 : }
0005b 48 8d a5 e8 00
00 00 lea rsp, QWORD PTR [rbp+232]
@@ -470,7 +430,7 @@ _TEXT SEGMENT
out$ = 224
unloadImageData PROC ; COMDAT
; 86 : {
; 61 : {
$LN3:
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
@@ -483,7 +443,7 @@ $LN3:
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
0001a e8 00 00 00 00 call __CheckForDebuggerJustMyCode
; 87 : free(out->pixelPtr);
; 62 : free(out->pixelPtr);
0001f 48 8b 85 e0 00
00 00 mov rax, QWORD PTR out$[rbp]
@@ -491,7 +451,7 @@ $LN3:
0002a ff 15 00 00 00
00 call QWORD PTR __imp_free
; 88 : }
; 63 : }
00030 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
@@ -509,7 +469,7 @@ i$1 = 40
procName$ = 288
loadGlfuncDefault PROC ; COMDAT
; 44 : {
; 19 : {
$LN7:
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
@@ -522,29 +482,29 @@ $LN7:
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
0001a e8 00 00 00 00 call __CheckForDebuggerJustMyCode
; 45 : void* ret = glfwGetProcAddress(procName);
; 20 : void* ret = glfwGetProcAddress(procName);
0001f 48 8b 8d 20 01
00 00 mov rcx, QWORD PTR procName$[rbp]
00026 e8 00 00 00 00 call glfwGetProcAddress
0002b 48 89 45 08 mov QWORD PTR ret$[rbp], rax
; 46 : printf("%llu\n", (uint64_t)ret);
; 21 : printf("%llu\n", (uint64_t)ret);
0002f 48 8b 55 08 mov rdx, QWORD PTR ret$[rbp]
00033 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:??_C@_05JMLLFKBP@?$CFllu?6@
0003a e8 00 00 00 00 call printf
; 47 : if (ret = NULL)
; 22 : if (ret = NULL)
0003f 48 c7 45 08 00
00 00 00 mov QWORD PTR ret$[rbp], 0
00047 48 83 7d 08 00 cmp QWORD PTR ret$[rbp], 0
0004c 74 6e je SHORT $LN5@loadGlfunc
; 48 : {
; 49 : *infolog = "Failed to load OpenGL api:";
; 23 : {
; 24 : *infolog = "Failed to load OpenGL api:";
0004e b8 01 00 00 00 mov eax, 1
00053 48 6b c0 00 imul rax, rax, 0
@@ -554,7 +514,7 @@ $LN7:
00 00 lea rdx, OFFSET FLAT:??_C@_0BL@MOJGOJJP@Failed?5to?5load?5OpenGL?5api?3@
00065 88 14 01 mov BYTE PTR [rcx+rax], dl
; 50 : for (size_t i = 0; i < sizeof(procName); i++)
; 25 : for (size_t i = 0; i < sizeof(procName); i++)
00068 48 c7 45 28 00
00 00 00 mov QWORD PTR i$1[rbp], 0
@@ -567,8 +527,8 @@ $LN4@loadGlfunc:
0007d 48 83 7d 28 08 cmp QWORD PTR i$1[rbp], 8
00082 73 25 jae SHORT $LN3@loadGlfunc
; 51 : {
; 52 : infolog[30 + i] = procName[i];
; 26 : {
; 27 : infolog[30 + i] = procName[i];
00084 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:infolog
@@ -581,12 +541,12 @@ $LN4@loadGlfunc:
000a0 0f b6 09 movzx ecx, BYTE PTR [rcx]
000a3 88 4c 10 1e mov BYTE PTR [rax+rdx+30], cl
; 53 : }
; 28 : }
000a7 eb c9 jmp SHORT $LN2@loadGlfunc
$LN3@loadGlfunc:
; 54 : printf("%s\n", infolog);
; 29 : printf("%s\n", infolog);
000a9 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:infolog
@@ -595,12 +555,12 @@ $LN3@loadGlfunc:
000b7 e8 00 00 00 00 call printf
$LN5@loadGlfunc:
; 55 : }
; 56 : return (GLFWglproc)ret;
; 30 : }
; 31 : return (GLFWglproc)ret;
000bc 48 8b 45 08 mov rax, QWORD PTR ret$[rbp]
; 57 : }
; 32 : }
000c0 48 8d a5 08 01
00 00 lea rsp, QWORD PTR [rbp+264]
@@ -618,7 +578,7 @@ out$ = 232
loader$ = 240
loadImageData PROC ; COMDAT
; 77 : {
; 52 : {
$LN4:
00000 4c 89 44 24 18 mov QWORD PTR [rsp+24], r8
@@ -633,14 +593,14 @@ $LN4:
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00024 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
; 78 : if (loader == NULL)
; 53 : if (loader == NULL)
00029 48 83 bd f0 00
00 00 00 cmp QWORD PTR loader$[rbp], 0
00031 75 0e jne SHORT $LN2@loadImageD
; 79 : {
; 80 : loader = stbi_load;
; 54 : {
; 55 : loader = stbi_load;
00033 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:stbi_load
@@ -648,8 +608,8 @@ $LN4:
00 00 mov QWORD PTR loader$[rbp], rax
$LN2@loadImageD:
; 81 : }
; 82 : out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
; 56 : }
; 57 : out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
00041 48 8b 85 e8 00
00 00 mov rax, QWORD PTR out$[rbp]
@@ -671,7 +631,7 @@ $LN2@loadImageD:
00 00 mov rcx, QWORD PTR out$[rbp]
00080 48 89 41 10 mov QWORD PTR [rcx+16], rax
; 83 : }
; 58 : }
00084 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
@@ -690,7 +650,7 @@ context$ = 256
shaderProgram$ = 264
linkShaderProgram PROC ; COMDAT
; 60 : {
; 35 : {
$LN5:
00000 89 54 24 10 mov DWORD PTR [rsp+16], edx
@@ -715,7 +675,7 @@ $LN5:
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00048 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
; 61 : context->LinkProgram(shaderProgram);
; 36 : context->LinkProgram(shaderProgram);
0004d 8b 8d 08 01 00
00 mov ecx, DWORD PTR shaderProgram$[rbp]
@@ -724,9 +684,9 @@ $LN5:
0005a ff 90 80 22 00
00 call QWORD PTR [rax+8832]
; 62 :
; 63 : int success;
; 64 : context->GetProgramiv(shaderProgram, GL_LINK_STATUS, &success);
; 37 :
; 38 : int success;
; 39 : context->GetProgramiv(shaderProgram, GL_LINK_STATUS, &success);
00060 4c 8d 45 04 lea r8, QWORD PTR success$[rbp]
00064 ba 82 8b 00 00 mov edx, 35714 ; 00008b82H
@@ -737,13 +697,13 @@ $LN5:
00076 ff 90 48 1a 00
00 call QWORD PTR [rax+6728]
; 65 : if (!success)
; 40 : if (!success)
0007c 83 7d 04 00 cmp DWORD PTR success$[rbp], 0
00080 75 28 jne SHORT $LN2@linkShader
; 66 : {
; 67 : context->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
; 41 : {
; 42 : context->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
00082 4c 8d 0d 00 00
00 00 lea r9, OFFSET FLAT:infolog
@@ -756,27 +716,27 @@ $LN5:
0009e ff 90 98 19 00
00 call QWORD PTR [rax+6552]
; 68 : return 0;
; 43 : return 0;
000a4 33 c0 xor eax, eax
000a6 eb 08 jmp SHORT $LN1@linkShader
; 69 : }
; 44 : }
000a8 eb 06 jmp SHORT $LN3@linkShader
$LN2@linkShader:
; 70 : else
; 71 : {
; 72 : return shaderProgram;
; 45 : else
; 46 : {
; 47 : return shaderProgram;
000aa 8b 85 08 01 00
00 mov eax, DWORD PTR shaderProgram$[rbp]
$LN3@linkShader:
$LN1@linkShader:
; 73 : }
; 74 : }
; 48 : }
; 49 : }
000b0 48 8b f8 mov rdi, rax
000b3 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
@@ -797,192 +757,6 @@ linkShaderProgram ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpC\StgSharpC.c
; COMDAT loadShaderCode
_TEXT SEGMENT
shader$ = 4
success$ = 36
$T4 = 264
__$ArrayPad$ = 280
context$ = 320
shaderCode$ = 328
shadertype$ = 336
loadShaderCode PROC ; COMDAT
; 19 : {
$LN8:
00000 44 89 44 24 18 mov DWORD PTR [rsp+24], r8d
00005 48 89 54 24 10 mov QWORD PTR [rsp+16], rdx
0000a 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
0000f 55 push rbp
00010 57 push rdi
00011 48 81 ec 48 01
00 00 sub rsp, 328 ; 00000148H
00018 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32]
0001d 48 8d 7c 24 20 lea rdi, QWORD PTR [rsp+32]
00022 b9 1a 00 00 00 mov ecx, 26
00027 b8 cc cc cc cc mov eax, -858993460 ; ccccccccH
0002c f3 ab rep stosd
0002e 48 8b 8c 24 68
01 00 00 mov rcx, QWORD PTR [rsp+360]
00036 48 8b 05 00 00
00 00 mov rax, QWORD PTR __security_cookie
0003d 48 33 c5 xor rax, rbp
00040 48 89 85 18 01
00 00 mov QWORD PTR __$ArrayPad$[rbp], rax
00047 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
0004e e8 00 00 00 00 call __CheckForDebuggerJustMyCode
; 20 : unsigned int shader = context->CreateShader(GL_VERTEX_SHADER);
00053 b9 31 8b 00 00 mov ecx, 35633 ; 00008b31H
00058 48 8b 85 40 01
00 00 mov rax, QWORD PTR context$[rbp]
0005f ff 90 f0 09 00
00 call QWORD PTR [rax+2544]
00065 89 45 04 mov DWORD PTR shader$[rbp], eax
; 21 : if (!shader)
00068 83 7d 04 00 cmp DWORD PTR shader$[rbp], 0
0006c 75 0a jne SHORT $LN2@loadShader
; 22 : {
; 23 : return 0xffffffff;
0006e b8 ff ff ff ff mov eax, -1 ; ffffffffH
00073 e9 d5 00 00 00 jmp $LN1@loadShader
$LN2@loadShader:
; 24 : }
; 25 : printf("%s\n", shaderCode);
00078 48 8b 95 48 01
00 00 mov rdx, QWORD PTR shaderCode$[rbp]
0007f 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:??_C@_03OFAPEBGM@?$CFs?6@
00086 e8 00 00 00 00 call printf
; 26 : context->ShaderSource(shader, 1, shaderCode, NULL);
0008b 45 33 c9 xor r9d, r9d
0008e 4c 8b 85 48 01
00 00 mov r8, QWORD PTR shaderCode$[rbp]
00095 ba 01 00 00 00 mov edx, 1
0009a 8b 4d 04 mov ecx, DWORD PTR shader$[rbp]
0009d 48 8b 85 40 01
00 00 mov rax, QWORD PTR context$[rbp]
000a4 ff 90 50 37 00
00 call QWORD PTR [rax+14160]
; 27 : printf("%s\n", shaderCode);
000aa 48 8b 95 48 01
00 00 mov rdx, QWORD PTR shaderCode$[rbp]
000b1 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:??_C@_03OFAPEBGM@?$CFs?6@
000b8 e8 00 00 00 00 call printf
; 28 : context->CompileShader(shader);
000bd 8b 4d 04 mov ecx, DWORD PTR shader$[rbp]
000c0 48 8b 85 40 01
00 00 mov rax, QWORD PTR context$[rbp]
000c7 ff 90 18 07 00
00 call QWORD PTR [rax+1816]
; 29 : int success;
; 30 : context->GetShaderiv(shader, GL_COMPILE_STATUS, &success);
000cd 4c 8d 45 24 lea r8, QWORD PTR success$[rbp]
000d1 ba 81 8b 00 00 mov edx, 35713 ; 00008b81H
000d6 8b 4d 04 mov ecx, DWORD PTR shader$[rbp]
000d9 48 8b 85 40 01
00 00 mov rax, QWORD PTR context$[rbp]
000e0 ff 90 40 1b 00
00 call QWORD PTR [rax+6976]
; 31 : if (!success)
000e6 83 7d 24 00 cmp DWORD PTR success$[rbp], 0
000ea 75 5e jne SHORT $LN3@loadShader
; 32 : {
; 33 : context->GetShaderInfoLog(shader, 512, NULL, infolog);
000ec 4c 8d 0d 00 00
00 00 lea r9, OFFSET FLAT:infolog
000f3 45 33 c0 xor r8d, r8d
000f6 ba 00 02 00 00 mov edx, 512 ; 00000200H
000fb 8b 4d 04 mov ecx, DWORD PTR shader$[rbp]
000fe 48 8b 85 40 01
00 00 mov rax, QWORD PTR context$[rbp]
00105 ff 90 20 1b 00
00 call QWORD PTR [rax+6944]
; 34 : infolog[511] = '\0';
0010b b8 01 00 00 00 mov eax, 1
00110 48 69 c0 ff 01
00 00 imul rax, rax, 511 ; 000001ffH
00117 48 89 85 08 01
00 00 mov QWORD PTR $T4[rbp], rax
0011e 48 81 bd 08 01
00 00 00 02 00
00 cmp QWORD PTR $T4[rbp], 512 ; 00000200H
00129 73 02 jae SHORT $LN6@loadShader
0012b eb 05 jmp SHORT $LN7@loadShader
$LN6@loadShader:
0012d e8 00 00 00 00 call __report_rangecheckfailure
$LN7@loadShader:
00132 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:infolog
00139 48 8b 8d 08 01
00 00 mov rcx, QWORD PTR $T4[rbp]
00140 c6 04 08 00 mov BYTE PTR [rax+rcx], 0
; 35 : return 0;
00144 33 c0 xor eax, eax
00146 eb 05 jmp SHORT $LN1@loadShader
; 36 : }
00148 eb 03 jmp SHORT $LN4@loadShader
$LN3@loadShader:
; 37 : else
; 38 : {
; 39 : return shader;
0014a 8b 45 04 mov eax, DWORD PTR shader$[rbp]
$LN4@loadShader:
$LN1@loadShader:
$LN5@loadShader:
; 40 : }
; 41 : }
0014d 48 8b f8 mov rdi, rax
00150 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
00154 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:loadShaderCode$rtcFrameData
0015b e8 00 00 00 00 call _RTC_CheckStackVars
00160 48 8b c7 mov rax, rdi
00163 48 8b 8d 18 01
00 00 mov rcx, QWORD PTR __$ArrayPad$[rbp]
0016a 48 33 cd xor rcx, rbp
0016d e8 00 00 00 00 call __security_check_cookie
00172 48 8d a5 28 01
00 00 lea rsp, QWORD PTR [rbp+296]
00179 5f pop rdi
0017a 5d pop rbp
0017b c3 ret 0
loadShaderCode ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpC\StgSharpC.c
; COMDAT initGL
_TEXT SEGMENT
majorVersion$ = 224
Binary file not shown.
+2 -7
View File
@@ -1,8 +1,3 @@
StgSharpC.c
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\StgSharpC.c(26,38): warning C4047: “函数”:“const GLchar *const *”与“char *const ”的间接级别不同
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\StgSharpC.c(26,38): warning C4024: “通过指针的函数”: 形参和实参 3 的类型不同
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\StgSharpC.c(49,18): warning C4047: “=”:“char”与“char [27]”的间接级别不同
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\StgSharpC.c(93,5): warning C4047: “return”:“char *”与“char (*)[512]”的间接级别不同
glfw3.lib(init.obj) : warning LNK4099: 未找到 PDB“”(使用“glfw3.lib(init.obj)”或在“”中寻找);正在链接对象,如同没有调试信息一样
glfw3.lib(win32_joystick.obj) : warning LNK4099: 未找到 PDB“”(使用“glfw3.lib(win32_joystick.obj)”或在“”中寻找);正在链接对象,如同没有调试信息一样
正在创建库 D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC.lib 和对象 D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC.exp
LINK : warning LNK4098: 默认库“MSVCRT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
StgSharpC.vcxproj -> D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.