daily update on 20240320 by nitload youmu
This commit is contained in:
@@ -154,7 +154,6 @@ 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
|
||||
EXTRN glfwWindowHint:PROC
|
||||
EXTRN glfwGetProcAddress:PROC
|
||||
EXTRN __imp___acrt_iob_func:PROC
|
||||
@@ -191,7 +190,7 @@ pdata ENDS
|
||||
; COMDAT pdata
|
||||
pdata SEGMENT
|
||||
$pdata$initGL DD imagerel $LN3
|
||||
DD imagerel $LN3+96
|
||||
DD imagerel $LN3+91
|
||||
DD imagerel $unwind$initGL
|
||||
pdata ENDS
|
||||
; COMDAT pdata
|
||||
@@ -375,7 +374,7 @@ _TEXT SEGMENT
|
||||
$T1 = 200
|
||||
readLog PROC ; COMDAT
|
||||
|
||||
; 66 : {
|
||||
; 65 : {
|
||||
|
||||
$LN5:
|
||||
00000 40 55 push rbp
|
||||
@@ -387,7 +386,7 @@ $LN5:
|
||||
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
|
||||
00016 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 67 : infolog[511] = '\0';
|
||||
; 66 : infolog[511] = '\0';
|
||||
|
||||
0001b b8 01 00 00 00 mov eax, 1
|
||||
00020 48 69 c0 ff 01
|
||||
@@ -408,13 +407,13 @@ $LN4@readLog:
|
||||
00 00 mov rcx, QWORD PTR $T1[rbp]
|
||||
00050 c6 04 08 00 mov BYTE PTR [rax+rcx], 0
|
||||
|
||||
; 68 : return &infolog;
|
||||
; 67 : return &infolog;
|
||||
|
||||
00054 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:infolog
|
||||
$LN2@readLog:
|
||||
|
||||
; 69 : }
|
||||
; 68 : }
|
||||
|
||||
0005b 48 8d a5 e8 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+232]
|
||||
@@ -430,7 +429,7 @@ _TEXT SEGMENT
|
||||
out$ = 224
|
||||
unloadImageData PROC ; COMDAT
|
||||
|
||||
; 61 : {
|
||||
; 60 : {
|
||||
|
||||
$LN3:
|
||||
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
|
||||
@@ -443,7 +442,7 @@ $LN3:
|
||||
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
|
||||
0001a e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 62 : free(out->pixelPtr);
|
||||
; 61 : free(out->pixelPtr);
|
||||
|
||||
0001f 48 8b 85 e0 00
|
||||
00 00 mov rax, QWORD PTR out$[rbp]
|
||||
@@ -451,7 +450,7 @@ $LN3:
|
||||
0002a ff 15 00 00 00
|
||||
00 call QWORD PTR __imp_free
|
||||
|
||||
; 63 : }
|
||||
; 62 : }
|
||||
|
||||
00030 48 8d a5 c8 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+200]
|
||||
@@ -469,7 +468,7 @@ i$1 = 40
|
||||
procName$ = 288
|
||||
loadGlfuncDefault PROC ; COMDAT
|
||||
|
||||
; 19 : {
|
||||
; 18 : {
|
||||
|
||||
$LN7:
|
||||
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
|
||||
@@ -482,29 +481,29 @@ $LN7:
|
||||
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
|
||||
0001a e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 20 : void* ret = glfwGetProcAddress(procName);
|
||||
; 19 : 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
|
||||
|
||||
; 21 : printf("%llu\n", (uint64_t)ret);
|
||||
; 20 : 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
|
||||
|
||||
; 22 : if (ret = NULL)
|
||||
; 21 : 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
|
||||
|
||||
; 23 : {
|
||||
; 24 : *infolog = "Failed to load OpenGL api:";
|
||||
; 22 : {
|
||||
; 23 : *infolog = "Failed to load OpenGL api:";
|
||||
|
||||
0004e b8 01 00 00 00 mov eax, 1
|
||||
00053 48 6b c0 00 imul rax, rax, 0
|
||||
@@ -514,7 +513,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
|
||||
|
||||
; 25 : for (size_t i = 0; i < sizeof(procName); i++)
|
||||
; 24 : 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
|
||||
@@ -527,8 +526,8 @@ $LN4@loadGlfunc:
|
||||
0007d 48 83 7d 28 08 cmp QWORD PTR i$1[rbp], 8
|
||||
00082 73 25 jae SHORT $LN3@loadGlfunc
|
||||
|
||||
; 26 : {
|
||||
; 27 : infolog[30 + i] = procName[i];
|
||||
; 25 : {
|
||||
; 26 : infolog[30 + i] = procName[i];
|
||||
|
||||
00084 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:infolog
|
||||
@@ -541,12 +540,12 @@ $LN4@loadGlfunc:
|
||||
000a0 0f b6 09 movzx ecx, BYTE PTR [rcx]
|
||||
000a3 88 4c 10 1e mov BYTE PTR [rax+rdx+30], cl
|
||||
|
||||
; 28 : }
|
||||
; 27 : }
|
||||
|
||||
000a7 eb c9 jmp SHORT $LN2@loadGlfunc
|
||||
$LN3@loadGlfunc:
|
||||
|
||||
; 29 : printf("%s\n", infolog);
|
||||
; 28 : printf("%s\n", infolog);
|
||||
|
||||
000a9 48 8d 15 00 00
|
||||
00 00 lea rdx, OFFSET FLAT:infolog
|
||||
@@ -555,12 +554,12 @@ $LN3@loadGlfunc:
|
||||
000b7 e8 00 00 00 00 call printf
|
||||
$LN5@loadGlfunc:
|
||||
|
||||
; 30 : }
|
||||
; 31 : return (GLFWglproc)ret;
|
||||
; 29 : }
|
||||
; 30 : return (GLFWglproc)ret;
|
||||
|
||||
000bc 48 8b 45 08 mov rax, QWORD PTR ret$[rbp]
|
||||
|
||||
; 32 : }
|
||||
; 31 : }
|
||||
|
||||
000c0 48 8d a5 08 01
|
||||
00 00 lea rsp, QWORD PTR [rbp+264]
|
||||
@@ -578,7 +577,7 @@ out$ = 232
|
||||
loader$ = 240
|
||||
loadImageData PROC ; COMDAT
|
||||
|
||||
; 52 : {
|
||||
; 51 : {
|
||||
|
||||
$LN4:
|
||||
00000 4c 89 44 24 18 mov QWORD PTR [rsp+24], r8
|
||||
@@ -593,14 +592,14 @@ $LN4:
|
||||
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
|
||||
00024 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 53 : if (loader == NULL)
|
||||
; 52 : 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
|
||||
|
||||
; 54 : {
|
||||
; 55 : loader = stbi_load;
|
||||
; 53 : {
|
||||
; 54 : loader = stbi_load;
|
||||
|
||||
00033 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:stbi_load
|
||||
@@ -608,8 +607,8 @@ $LN4:
|
||||
00 00 mov QWORD PTR loader$[rbp], rax
|
||||
$LN2@loadImageD:
|
||||
|
||||
; 56 : }
|
||||
; 57 : out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
|
||||
; 55 : }
|
||||
; 56 : 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]
|
||||
@@ -631,7 +630,7 @@ $LN2@loadImageD:
|
||||
00 00 mov rcx, QWORD PTR out$[rbp]
|
||||
00080 48 89 41 10 mov QWORD PTR [rcx+16], rax
|
||||
|
||||
; 58 : }
|
||||
; 57 : }
|
||||
|
||||
00084 48 8d a5 c8 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+200]
|
||||
@@ -650,7 +649,7 @@ context$ = 256
|
||||
shaderProgram$ = 264
|
||||
linkShaderProgram PROC ; COMDAT
|
||||
|
||||
; 35 : {
|
||||
; 34 : {
|
||||
|
||||
$LN5:
|
||||
00000 89 54 24 10 mov DWORD PTR [rsp+16], edx
|
||||
@@ -675,7 +674,7 @@ $LN5:
|
||||
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
|
||||
00048 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 36 : context->LinkProgram(shaderProgram);
|
||||
; 35 : context->LinkProgram(shaderProgram);
|
||||
|
||||
0004d 8b 8d 08 01 00
|
||||
00 mov ecx, DWORD PTR shaderProgram$[rbp]
|
||||
@@ -684,9 +683,9 @@ $LN5:
|
||||
0005a ff 90 80 22 00
|
||||
00 call QWORD PTR [rax+8832]
|
||||
|
||||
; 37 :
|
||||
; 38 : int success;
|
||||
; 39 : context->GetProgramiv(shaderProgram, GL_LINK_STATUS, &success);
|
||||
; 36 :
|
||||
; 37 : int success;
|
||||
; 38 : 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
|
||||
@@ -697,13 +696,13 @@ $LN5:
|
||||
00076 ff 90 48 1a 00
|
||||
00 call QWORD PTR [rax+6728]
|
||||
|
||||
; 40 : if (!success)
|
||||
; 39 : if (!success)
|
||||
|
||||
0007c 83 7d 04 00 cmp DWORD PTR success$[rbp], 0
|
||||
00080 75 28 jne SHORT $LN2@linkShader
|
||||
|
||||
; 41 : {
|
||||
; 42 : context->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
|
||||
; 40 : {
|
||||
; 41 : context->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
|
||||
|
||||
00082 4c 8d 0d 00 00
|
||||
00 00 lea r9, OFFSET FLAT:infolog
|
||||
@@ -716,27 +715,27 @@ $LN5:
|
||||
0009e ff 90 98 19 00
|
||||
00 call QWORD PTR [rax+6552]
|
||||
|
||||
; 43 : return 0;
|
||||
; 42 : return 0;
|
||||
|
||||
000a4 33 c0 xor eax, eax
|
||||
000a6 eb 08 jmp SHORT $LN1@linkShader
|
||||
|
||||
; 44 : }
|
||||
; 43 : }
|
||||
|
||||
000a8 eb 06 jmp SHORT $LN3@linkShader
|
||||
$LN2@linkShader:
|
||||
|
||||
; 45 : else
|
||||
; 46 : {
|
||||
; 47 : return shaderProgram;
|
||||
; 44 : else
|
||||
; 45 : {
|
||||
; 46 : return shaderProgram;
|
||||
|
||||
000aa 8b 85 08 01 00
|
||||
00 mov eax, DWORD PTR shaderProgram$[rbp]
|
||||
$LN3@linkShader:
|
||||
$LN1@linkShader:
|
||||
|
||||
; 48 : }
|
||||
; 49 : }
|
||||
; 47 : }
|
||||
; 48 : }
|
||||
|
||||
000b0 48 8b f8 mov rdi, rax
|
||||
000b3 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
|
||||
@@ -777,37 +776,33 @@ $LN3:
|
||||
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
|
||||
0001d e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 12 : glfwInit();
|
||||
; 12 : glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, majorVersion);
|
||||
|
||||
00022 e8 00 00 00 00 call glfwInit
|
||||
|
||||
; 13 : glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, majorVersion);
|
||||
|
||||
00027 8b 95 e0 00 00
|
||||
00022 8b 95 e0 00 00
|
||||
00 mov edx, DWORD PTR majorVersion$[rbp]
|
||||
0002d b9 02 20 02 00 mov ecx, 139266 ; 00022002H
|
||||
00032 e8 00 00 00 00 call glfwWindowHint
|
||||
00028 b9 02 20 02 00 mov ecx, 139266 ; 00022002H
|
||||
0002d e8 00 00 00 00 call glfwWindowHint
|
||||
|
||||
; 14 : glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, minorVersion);
|
||||
; 13 : glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, minorVersion);
|
||||
|
||||
00037 8b 95 e8 00 00
|
||||
00032 8b 95 e8 00 00
|
||||
00 mov edx, DWORD PTR minorVersion$[rbp]
|
||||
0003d b9 03 20 02 00 mov ecx, 139267 ; 00022003H
|
||||
00042 e8 00 00 00 00 call glfwWindowHint
|
||||
00038 b9 03 20 02 00 mov ecx, 139267 ; 00022003H
|
||||
0003d e8 00 00 00 00 call glfwWindowHint
|
||||
|
||||
; 15 : glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
; 14 : glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
|
||||
00047 ba 01 20 03 00 mov edx, 204801 ; 00032001H
|
||||
0004c b9 08 20 02 00 mov ecx, 139272 ; 00022008H
|
||||
00051 e8 00 00 00 00 call glfwWindowHint
|
||||
00042 ba 01 20 03 00 mov edx, 204801 ; 00032001H
|
||||
00047 b9 08 20 02 00 mov ecx, 139272 ; 00022008H
|
||||
0004c e8 00 00 00 00 call glfwWindowHint
|
||||
|
||||
; 16 : }
|
||||
; 15 : }
|
||||
|
||||
00056 48 8d a5 c8 00
|
||||
00051 48 8d a5 c8 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+200]
|
||||
0005d 5f pop rdi
|
||||
0005e 5d pop rbp
|
||||
0005f c3 ret 0
|
||||
00058 5f pop rdi
|
||||
00059 5d pop rbp
|
||||
0005a c3 ret 0
|
||||
initGL ENDP
|
||||
_TEXT ENDS
|
||||
; Function compile flags: /Odtp /RTCsu /ZI
|
||||
|
||||
Binary file not shown.
@@ -1,3 +1,4 @@
|
||||
正在创建库 D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC.lib 和对象 D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC.exp
|
||||
LINK : warning LNK4098: 默认库“MSVCRT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
|
||||
StgSharpC.c
|
||||
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\StgSharpC.c(23,18): warning C4047: “=”:“char”与“char [27]”的间接级别不同
|
||||
D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpC\StgSharpC.c(67,5): warning C4047: “return”:“char *”与“char (*)[512]”的间接级别不同
|
||||
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.
Reference in New Issue
Block a user