mirror of
https://github.com/stasenso/Puer.git
synced 2026-06-26 21:32:42 +03:00
Add: app icon
This commit is contained in:
Vendored
+33
-17
@@ -1,56 +1,72 @@
|
|||||||
{
|
{
|
||||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
||||||
// for the documentation about the tasks.json format
|
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "assemble",
|
"label": "assemble",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
"command": "ml64.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"/I",
|
"/I",
|
||||||
"include",
|
"include",
|
||||||
"/c",
|
"/c",
|
||||||
"src/${fileBasenameNoExtension}.asm"
|
"src/${fileBasenameNoExtension}.asm"
|
||||||
|
|
||||||
],
|
],
|
||||||
"command":"ml64.exe",
|
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"owner":"nasm",
|
"owner": "masm",
|
||||||
"fileLocation":["relative","${workspaceFolder}"],
|
"fileLocation": [
|
||||||
|
"relative",
|
||||||
|
"${workspaceFolder}"
|
||||||
|
],
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp":"^(.*)\\((\\d*)\\)\\s+:?\\s+(error|warning)\\s+([A-z]+\\d+):\\s+(.*)$",
|
"regexp": "^(.*)\\((\\d*)\\)\\s+:?\\s+(error|warning)\\s+([A-Z]+\\d+):\\s+(.*)$",
|
||||||
"file": 1,
|
"file": 1,
|
||||||
"line": 2,
|
"line": 2,
|
||||||
"severity": 3,
|
"severity": 3,
|
||||||
"code": 4,
|
"code": 4,
|
||||||
"message":5,
|
"message": 5
|
||||||
"loop":true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "compile-resources",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "rc.exe",
|
||||||
|
"args": [
|
||||||
|
"res/rsrc.rc"
|
||||||
|
],
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"dependsOn": [
|
||||||
|
"assemble"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "link",
|
"label": "link",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
"command": "link.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"/SUBSYSTEM:WINDOWS",
|
"/SUBSYSTEM:WINDOWS",
|
||||||
"/MACHINE:X64",
|
"/MACHINE:X64",
|
||||||
"/ENTRY:entry_point",
|
"/ENTRY:entry_point",
|
||||||
"/nologo",
|
"/nologo",
|
||||||
"/LARGEADDRESSAWARE",
|
"/LARGEADDRESSAWARE",
|
||||||
"${fileBasenameNoExtension}.obj"
|
"${fileBasenameNoExtension}.obj",
|
||||||
|
"res/rsrc.res"
|
||||||
],
|
],
|
||||||
"command":"link.exe",
|
"dependsOn": [
|
||||||
"dependsOn":"assemble"
|
"compile-resources",
|
||||||
|
"assemble"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "execute",
|
"label": "execute",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
|
"command": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
|
||||||
"group":{
|
"group": "build",
|
||||||
"kind":"build",
|
"dependsOn": "link",
|
||||||
"isDefault":true
|
"problemMatcher": []
|
||||||
},
|
|
||||||
"dependsOn":"link"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -10,7 +10,7 @@ myDraw proto nSegment:DWORD ;принимаю параметр с колличе
|
|||||||
.data?
|
.data?
|
||||||
hInstance HINSTANCE ? ; Хэндл нашей пpогpаммы
|
hInstance HINSTANCE ? ; Хэндл нашей пpогpаммы
|
||||||
CommandLine LPSTR ?
|
CommandLine LPSTR ?
|
||||||
|
hIcon dq ? ; icon handle
|
||||||
|
|
||||||
NOTIFYICONDATAW STRUCT
|
NOTIFYICONDATAW STRUCT
|
||||||
cbSize DWORD ?
|
cbSize DWORD ?
|
||||||
@@ -78,3 +78,4 @@ IDM_RESTORE equ 1000
|
|||||||
|
|
||||||
IDM_EXIT equ 1010
|
IDM_EXIT equ 1010
|
||||||
|
|
||||||
|
IDI_ICON equ 1020
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
#define IDI_ICON 1020
|
||||||
|
|
||||||
|
IDI_ICON ICON "icon.ico"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 202 KiB |
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||||
|
<assemblyIdentity
|
||||||
|
version="1.0.0.0"
|
||||||
|
processorArchitecture="amd64"
|
||||||
|
name="MASM32.Text Editor.bigicon"
|
||||||
|
type="win32"
|
||||||
|
/>
|
||||||
|
<description>Your application description here.</description>
|
||||||
|
<dependency>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity
|
||||||
|
type="win32"
|
||||||
|
name="Microsoft.Windows.Common-Controls"
|
||||||
|
version="6.0.0.0"
|
||||||
|
processorArchitecture="amd64"
|
||||||
|
publicKeyToken="6595b64144ccf1df"
|
||||||
|
language="*"
|
||||||
|
/>
|
||||||
|
</dependentAssembly>
|
||||||
|
</dependency> </assembly>
|
||||||
+40
@@ -0,0 +1,40 @@
|
|||||||
|
// *************************************************************************************************
|
||||||
|
|
||||||
|
#include "\masm64\include64\resource.h"
|
||||||
|
|
||||||
|
// *************************************************************************************************
|
||||||
|
|
||||||
|
1 24 "manifest.xml" // manifest file
|
||||||
|
|
||||||
|
#include "dlgs.rc"
|
||||||
|
|
||||||
|
// *************************************************************************************************
|
||||||
|
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
FILEVERSION 1, 0, 0, 0
|
||||||
|
PRODUCTVERSION 1, 0, 0, 0
|
||||||
|
FILEOS VOS__WINDOWS32
|
||||||
|
FILETYPE VFT_APP
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "041904B0"
|
||||||
|
BEGIN
|
||||||
|
VALUE "CompanyName", "Friends of Svetopaper\000"
|
||||||
|
VALUE "FileDescription", "Pu'er tea executable file\000"
|
||||||
|
VALUE "FileVersion", "1.0\000"
|
||||||
|
VALUE "InternalName", "Pu'er tea\000"
|
||||||
|
VALUE "OriginalFilename", "Puer.exe\000"
|
||||||
|
VALUE "LegalCopyright", "\251 2025 Friends of Svetopaper\000"
|
||||||
|
VALUE "ProductName", "Pu'er tea\000"
|
||||||
|
VALUE "ProductVersion", "1.0\000"
|
||||||
|
END
|
||||||
|
END
|
||||||
|
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0x419, 0x4B0
|
||||||
|
END
|
||||||
|
END
|
||||||
|
|
||||||
|
// *************************************************************************************************
|
||||||
Binary file not shown.
@@ -3,6 +3,7 @@ include template.inc
|
|||||||
entry_point proc
|
entry_point proc
|
||||||
invoke GetModuleHandle, NULL ; Взять хэндл пpогpаммы
|
invoke GetModuleHandle, NULL ; Взять хэндл пpогpаммы
|
||||||
mov hInstance,rax ; Под Win32, hmodule==hinstance mov hInstance,eax
|
mov hInstance,rax ; Под Win32, hmodule==hinstance mov hInstance,eax
|
||||||
|
|
||||||
invoke WinMain, hInstance,NULL,CommandLine, SW_SHOWDEFAULT ; вызвать основную функцию
|
invoke WinMain, hInstance,NULL,CommandLine, SW_SHOWDEFAULT ; вызвать основную функцию
|
||||||
invoke ExitProcess, rax ; Выйти из пpогpаммы.
|
invoke ExitProcess, rax ; Выйти из пpогpаммы.
|
||||||
; Возвpащаемое значение, помещаемое в eax, беpется из WinMain'а.
|
; Возвpащаемое значение, помещаемое в eax, беpется из WinMain'а.
|
||||||
@@ -15,7 +16,7 @@ WinMain proc hInst:HINSTANCE,hPrevInst:HINSTANCE,CmdLine:LPSTR,CmdShow:QWORD
|
|||||||
;регистрация оконного класса
|
;регистрация оконного класса
|
||||||
push hInstance
|
push hInstance
|
||||||
pop wc.hInstance
|
pop wc.hInstance
|
||||||
invoke LoadIcon,NULL,IDI_APPLICATION
|
invoke LoadIcon,wc.hInstance,IDI_ICON
|
||||||
mov wc.hIcon,rax
|
mov wc.hIcon,rax
|
||||||
mov wc.hIconSm,rax
|
mov wc.hIconSm,rax
|
||||||
invoke LoadCursor,NULL,IDC_ARROW
|
invoke LoadCursor,NULL,IDC_ARROW
|
||||||
Reference in New Issue
Block a user