├── C++ ├── lnedit2.sln └── lnedit2 │ ├── Strings.cpp │ ├── deelx.h │ ├── lnedit.h │ ├── lnedit2.cpp │ ├── lnedit2.vcxproj │ ├── lnedit2.vcxproj.filters │ ├── lnedit2.vcxproj.user │ ├── regexp.cpp │ └── resource.h ├── SDK ├── C++ │ ├── CppTemplate │ │ ├── CppTemplate.sln │ │ └── CppTemplate │ │ │ ├── CppTemplate.vcxproj │ │ │ ├── exp.def │ │ │ ├── resource.h │ │ │ ├── rsrc.rc │ │ │ ├── template.cpp │ │ │ └── xuse.h │ ├── deelx.h │ └── plugin.h ├── asm │ ├── Stuff │ │ ├── Stuff.asm │ │ ├── Stuff.def │ │ ├── Stuff.inc │ │ ├── makeit.bat │ │ └── rsrc.rc │ ├── config.inc │ ├── export.inc │ ├── lnedit.lib │ └── plugin.inc └── 开发帮助.txt ├── _BrowseFolder.asm ├── _CreateDIBitmap.asm ├── bin ├── lnedit.exe ├── update.lst ├── zdll.lib └── zlib.lib ├── bkgnd.jpg ├── choosemel.asm ├── cmdmode.asm ├── com.inc ├── config.asm ├── config.inc ├── cppimp.inc ├── defaultedit.asm ├── document ├── Readme.txt ├── filterhelp.txt ├── mef │ └── musica.txt └── mel │ ├── BGI.txt │ ├── CatSystem2.txt │ ├── Circus.txt │ ├── Circus2.txt │ ├── ExHIBIT.txt │ ├── GsWin.txt │ ├── ISM.txt │ ├── InnocentGrey.txt │ ├── J_List.txt │ ├── Lios.txt │ ├── Lucifen.txt │ ├── M2Psb.txt │ ├── Majiro.txt │ ├── N2System.txt │ ├── Stuff.txt │ ├── Xuse.txt │ ├── Yuris.txt │ ├── advwin32.txt │ ├── yuka.txt │ └── yukapsp.txt ├── export.def ├── export.inc ├── globalvars.asm ├── icon2.ico ├── lnMefs └── Musica │ ├── Musica.sln │ └── Musica │ ├── Musica.vcxproj │ ├── exp.def │ ├── musica.cpp │ ├── resource.h │ └── rsrc.rc ├── lnMels ├── BGI │ ├── bgi.asm │ ├── bgi.def │ ├── bgi.inc │ ├── makeit.bat │ ├── rsrc.inc │ └── rsrc.rc ├── CatSystem2 │ ├── CatSystem2.sln │ └── CatSystem2 │ │ ├── CatSystem2.cpp │ │ ├── CatSystem2.vcxproj │ │ ├── cs.h │ │ ├── exp.def │ │ ├── resource.h │ │ └── rsrc.rc ├── Circus │ ├── Circus.asm │ ├── Circus.def │ ├── Circus.inc │ ├── makeit.bat │ └── rsrc.rc ├── Circus2 │ ├── Circus2.asm │ ├── Circus2.def │ ├── Circus2.inc │ ├── Circus2.lib │ ├── Circus2.mel │ ├── makeit.bat │ └── rsrc.rc ├── ExHIBIT │ ├── ExHIBIT.asm │ ├── ExHIBIT.def │ ├── ExHIBIT.inc │ ├── makeit.bat │ └── rsrc.rc ├── GsWin │ ├── GsWin.sln │ └── GsWin │ │ ├── GsWin.cpp │ │ ├── GsWin.vcxproj │ │ ├── exp.def │ │ ├── resource.h │ │ └── rsrc.rc ├── ISM │ ├── ISM.asm │ ├── ISM.def │ ├── ISM.inc │ ├── makeit.bat │ └── rsrc.rc ├── InnocentGrey │ ├── InnocentGrey.asm │ ├── InnocentGrey.def │ ├── InnocentGrey.inc │ ├── InnocentGrey.lib │ ├── InnocentGrey.mel │ ├── makeit.bat │ └── rsrc.rc ├── J_List │ ├── j_list.asm │ ├── j_list.def │ ├── j_list.inc │ ├── makeit.bat │ └── rsrc.rc ├── Lios │ ├── lios.asm │ ├── lios.def │ ├── lios.inc │ ├── makeit.bat │ ├── rsrc.inc │ └── rsrc.rc ├── Lucifen │ ├── Lucifen.asm │ ├── Lucifen.def │ ├── Lucifen.inc │ ├── makeit.bat │ └── rsrc.rc ├── M2Psb │ ├── M2Psb.sln │ └── M2Psb │ │ ├── M2Psb.cpp │ │ ├── M2Psb.vcxproj │ │ ├── Psb.h │ │ ├── exp.def │ │ ├── resource.h │ │ └── rsrc.rc ├── Majiro │ ├── MjDec.asm │ ├── majiro.asm │ ├── majiro.def │ ├── majiro.inc │ ├── makeit.bat │ └── rsrc.rc ├── N2System │ ├── N2System.asm │ ├── N2System.def │ ├── N2System.inc │ ├── makeit.bat │ └── rsrc.rc ├── Stuff │ ├── Stuff.asm │ ├── Stuff.def │ ├── Stuff.inc │ ├── makeit.bat │ └── rsrc.rc ├── System4 │ ├── makeit.bat │ ├── prescan.asm │ ├── rsrc.rc │ ├── system4.asm │ ├── system4.def │ └── system4.inc ├── Xuse │ ├── Xuse.asm │ ├── Xuse.def │ ├── Xuse.inc │ ├── makeit.bat │ └── rsrc.rc ├── Yuris │ ├── Yuris.asm │ ├── Yuris.def │ ├── Yuris.inc │ ├── makeit.bat │ ├── rsrc.rc │ ├── yuris.lib │ └── yuris.mel ├── advwin32 │ ├── Advwin32.sln │ └── advwin32 │ │ ├── Advwin32.cpp │ │ ├── advwin32.vcxproj │ │ ├── exp.def │ │ ├── mes.h │ │ ├── resource.h │ │ └── rsrc.rc ├── pvarsasm.bat ├── yuka_script │ ├── makeit.bat │ ├── rsrc.rc │ ├── yuka.asm │ ├── yuka.def │ └── yuka.inc └── yuka_script_psp │ ├── makeit.bat │ ├── rsrc.rc │ ├── yukapsp.asm │ ├── yukapsp.def │ └── yukapsp.inc ├── lnedit.asm ├── lnedit.inc ├── lnedit.ini ├── lnrc.aps ├── lnrc.rc ├── log.asm ├── macros.inc ├── makedbg.bat ├── makerel.bat ├── mel ├── CatSystem2.mel ├── Circus.mel ├── Circus2.mel ├── ExHIBIT.mel ├── GsWin.mel ├── InnocentGrey.mel ├── M2Psb.mel ├── Musica.mef ├── N2System.mel ├── Stuff.mel ├── Xuse.mel ├── advwin32.mel ├── bgi.mel ├── ism.mel ├── j_list.mel ├── lios.mel ├── lucifen.mel ├── majiro.mel ├── yuka.mel ├── yukapsp.mel └── yuris.mel ├── menuasm.asm ├── menuedit.asm ├── menufile.asm ├── menuopt.asm ├── menuview.asm ├── misc.asm ├── misc2.asm ├── newUI.asm ├── plugin.inc ├── progbar.asm ├── record.asm ├── rsrc.inc ├── update.asm ├── varsasm.bat ├── ver.txt ├── wildchar.asm └── xpmanifest.xml /C++/lnedit2.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lnedit2", "lnedit2\lnedit2.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /C++/lnedit2/Strings.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | //the const unicode strings for asm. 4 | 5 | extern "C" 6 | { 7 | //extern const WCHAR szPatQuotes[]=L"(?:[(「『]|( +))(.*)(?(1).*|[)」』])"; 8 | extern const WCHAR szPatQuotes[]=L"[(「『 ]+(.*?)(([)」』]+)|$|(%K%P))"; 9 | } 10 | -------------------------------------------------------------------------------- /C++/lnedit2/deelx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/C++/lnedit2/deelx.h -------------------------------------------------------------------------------- /C++/lnedit2/lnedit.h: -------------------------------------------------------------------------------- 1 | #ifndef _LN_LNEDIT_H 2 | #define _LN_LNEDIT_H 3 | 4 | #include 5 | #include "..\..\SDK\C++\plugin.h" 6 | 7 | #define MAX_MELCOUNT 50 8 | #define MAX_STRINGLEN 2048 9 | #define SHORT_STRINGLEN 64 10 | 11 | #define VT_PRODUCTNAME 1 12 | 13 | #define TM_FAILED -2 14 | #define TM_EXIT -3 15 | 16 | typedef DWORD (__stdcall *PFMATCH)(LPCWSTR); 17 | typedef void (__stdcall *PFPREPROC)(LPPRE_DATA); 18 | 19 | typedef struct _MEL_INFO { 20 | WCHAR lpszName[SHORT_STRINGLEN/2]; 21 | HMODULE hModule; 22 | PFMATCH pMatch; 23 | LPMEL_INFO2 lpMelInfo2; 24 | } MEL_INFO, *LPMEL_INFO; 25 | 26 | typedef struct _LN_OPTIONS { 27 | LPWSTR ScriptName; 28 | DWORD Code; 29 | DWORD Plugin; 30 | LPWSTR ImportFile; 31 | LPWSTR ExportFile; 32 | 33 | LPWSTR SourceDir; 34 | LPWSTR TxtDir; 35 | LPWSTR NewDir; 36 | LPWSTR NameFilter; 37 | BOOL IsRecursive; 38 | } LN_OPTIONS, *LPLN_OPTIONS; 39 | 40 | extern "C" { 41 | extern HANDLE hGlobalHeap; 42 | extern HANDLE hStdOutput; 43 | extern HANDLE hStdInput; 44 | extern DWORD nUIStatus; 45 | 46 | extern LPPRE_DATA lpPreData; 47 | extern DWORD dbConf; 48 | 49 | extern FILE_INFO FileInfo1; 50 | 51 | extern LPMEL_INFO lpMels; 52 | extern DWORD nMels; 53 | extern DWORD nCurMel; 54 | 55 | extern SIMPFUNC_TABLE dbSimpFunc; 56 | 57 | extern CMD_OPTIONS coCmdOptions; 58 | extern LPCWSTR lpszConfigFile; 59 | 60 | extern DWORD dwTemp; 61 | 62 | LPCWSTR __stdcall _GetCmdOption(LPCWSTR lpszName); 63 | MRESULT __stdcall _OpenSingleScript(LPOPEN_PARAMETERS para, LPFILE_INFO fi, BOOL isLeft); 64 | 65 | MRESULT __stdcall _LoadSingleMel(LPMEL_INFO lpMelInfo, LPCWSTR lpszPluginName); 66 | void __stdcall _LoadMel(DWORD reserved); 67 | DWORD __stdcall _FindPlugin(LPCWSTR name, DWORD type); 68 | void __stdcall _GetMelInfo(LPMEL_INFO mi, LPWSTR lpszOut, DWORD type); 69 | 70 | void __stdcall _GetSimpFunc(HANDLE hModule, LPSIMPFUNC_TABLE st); 71 | 72 | MRESULT __stdcall _ExportSingleTxt(LPFILE_INFO lpFI, HANDLE ht); 73 | MRESULT __stdcall _ImportSingleTxt(LPFILE_INFO lpFI, LPVOID lpTxt, BOOL bFilterOn); 74 | 75 | void __stdcall _DirBackW(LPWSTR lpStr); 76 | void __stdcall _DirModifyExtendName(LPWSTR lpStr, LPCWSTR lpExt); 77 | 78 | LPCWSTR __stdcall _GetGeneralErrorString(DWORD type); 79 | } 80 | 81 | #endif -------------------------------------------------------------------------------- /C++/lnedit2/lnedit2.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | lnedit2 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | StaticLibrary 26 | false 27 | true 28 | Unicode 29 | false 30 | Dynamic 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | true 44 | 45 | 46 | false 47 | D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\api\crt\stl60;D:\WinDDK\7600.16385.1\inc\crt 48 | F:\Software\VC6\2600\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 49 | 50 | 51 | $(SolutionDir)$\..\..\ 52 | 53 | 54 | 55 | 56 | 57 | Level3 58 | Disabled 59 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 60 | 61 | 62 | Windows 63 | true 64 | exp.def 65 | 66 | 67 | 68 | 69 | Level3 70 | 71 | 72 | MaxSpeed 73 | true 74 | true 75 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 76 | false 77 | true 78 | Speed 79 | false 80 | false 81 | false 82 | false 83 | 84 | 85 | Windows 86 | true 87 | true 88 | true 89 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 90 | exp.def 91 | true 92 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /C++/lnedit2/lnedit2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | source 6 | 7 | 8 | source 9 | 10 | 11 | source 12 | 13 | 14 | 15 | 16 | header 17 | 18 | 19 | header 20 | 21 | 22 | header 23 | 24 | 25 | 26 | 27 | {0778b641-8836-4929-84d2-6891c863c5a1} 28 | 29 | 30 | {e7eb3481-6a8b-4478-8027-a984a8ea547a} 31 | 32 | 33 | {165f0e8d-f7de-466c-8a9f-7b52993eb0e1} 34 | 35 | 36 | -------------------------------------------------------------------------------- /C++/lnedit2/lnedit2.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /C++/lnedit2/regexp.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "deelx.h" 3 | #include "..\..\SDK\C++\plugin.h" 4 | 5 | extern "C" 6 | { 7 | MRESULT WINAPI _RegInitA(CHAR* lpszPattern,int nFlag,CRegexpA** lpReg); 8 | MRESULT WINAPI _RegReleaseA(CRegexpA* lpReg); 9 | MRESULT WINAPI _RegReplaceA(CRegexpA* lpReg, CHAR* lpszStr, CHAR* lpszRpl, int nStart, CHAR** lpszRet); 10 | MRESULT WINAPI _RegReleaseStringA(CHAR* lpszStr); 11 | MRESULT WINAPI _RegMatchA(CRegexpA* lpReg, CHAR* lpszStr, int nStart, LPREGEXP_RESULT lprRslt); 12 | BOOL WINAPI _IsRegMatchA(CHAR* lpszPatt,CHAR* lpszStr); 13 | 14 | MRESULT WINAPI _RegInitW(WCHAR* lpszPattern,int nFlag,CRegexpW** lpReg); 15 | MRESULT WINAPI _RegReleaseW(CRegexpW* lpReg); 16 | MRESULT WINAPI _RegReplaceW(CRegexpW* lpReg, WCHAR* lpszStr, WCHAR* lpszRpl, int nStart, WCHAR** lpszRet); 17 | MRESULT WINAPI _RegReleaseStringW(WCHAR* lpszStr); 18 | MRESULT WINAPI _RegMatchW(CRegexpW* lpReg, WCHAR* lpszStr, int nStart, LPREGEXP_RESULT lprRslt); 19 | BOOL WINAPI _IsRegMatchW(WCHAR* lpszPatt,WCHAR* lpszStr); 20 | 21 | MRESULT WINAPI _RegCreateInstanceA(CRegexpA** lpReg); 22 | MRESULT WINAPI _RegCreateInstanceW(CRegexpW** lpReg); 23 | }; 24 | 25 | MRESULT WINAPI _RegCreateInstanceA(CRegexpA** lppReg) 26 | { 27 | *lppReg=new CRegexpA(); 28 | if(!*lppReg) 29 | return E_NOMEM; 30 | return E_SUCCESS; 31 | } 32 | 33 | MRESULT WINAPI _RegInitA(CHAR* lpszPattern,int nFlag,CRegexpA** lppReg) 34 | { 35 | *lppReg=new CRegexpA(lpszPattern,nFlag); 36 | if(!*lppReg) 37 | return E_NOMEM; 38 | 39 | return E_SUCCESS; 40 | } 41 | 42 | MRESULT WINAPI _RegReleaseA(CRegexpA* lpReg) 43 | { 44 | if(lpReg) 45 | delete lpReg; 46 | return E_SUCCESS; 47 | } 48 | 49 | MRESULT WINAPI _RegReplaceA(CRegexpA* lpReg, CHAR* lpszStr, CHAR* lpszRpl, int nStart, CHAR** lpszRet) 50 | { 51 | *lpszRet=lpReg->Replace(lpszStr,lpszRpl,nStart,-1); 52 | return E_SUCCESS; 53 | } 54 | 55 | MRESULT WINAPI _RegReleaseStringA(CHAR* lpszStr) 56 | { 57 | CRegexpA::ReleaseString(lpszStr); 58 | return E_SUCCESS; 59 | } 60 | 61 | BOOL WINAPI _IsRegMatchA(CHAR* lpszPatt,CHAR* lpszStr) 62 | { 63 | CRegexpA Reg(lpszPatt); 64 | 65 | auto mr=Reg.Match(lpszStr); 66 | return mr.IsMatched(); 67 | } 68 | 69 | MRESULT WINAPI _RegMatchA(CRegexpA* lpReg, CHAR* lpszStr, int nStart, LPREGEXP_RESULT lprRslt) 70 | { 71 | auto mr=lpReg->Match(lpszStr,nStart); 72 | lprRslt->bIsMatched=mr.IsMatched(); 73 | if(!lprRslt->bIsMatched) 74 | return E_SUCCESS; 75 | 76 | lprRslt->rBase.nLeft=mr.GetStart(); 77 | lprRslt->rBase.nRight=mr.GetEnd(); 78 | 79 | auto mx=REG_MAX_GROUPS>mr.MaxGroupNumber()?mr.MaxGroupNumber():REG_MAX_GROUPS; 80 | lprRslt->nGroups=mx; 81 | 82 | for(int i=0;i<=mx;i++) 83 | { 84 | lprRslt->rGroups[i].nLeft=mr.GetGroupStart(i+1); 85 | lprRslt->rGroups[i].nRight=mr.GetGroupEnd(i+1); 86 | } 87 | return E_SUCCESS; 88 | } 89 | 90 | MRESULT WINAPI _RegCreateInstanceW(CRegexpW** lppReg) 91 | { 92 | *lppReg=new CRegexpW(); 93 | if(!*lppReg) 94 | return E_NOMEM; 95 | return E_SUCCESS; 96 | } 97 | 98 | MRESULT WINAPI _RegInitW(WCHAR* lpszPattern,int nFlag,CRegexpW** lppReg) 99 | { 100 | *lppReg=new CRegexpW(lpszPattern,nFlag); 101 | if(!*lppReg) 102 | return E_NOMEM; 103 | return E_SUCCESS; 104 | } 105 | 106 | MRESULT WINAPI _RegReleaseW(CRegexpW* lpReg) 107 | { 108 | if(lpReg) 109 | delete lpReg; 110 | return E_SUCCESS; 111 | } 112 | 113 | MRESULT WINAPI _RegReplaceW(CRegexpW* lpReg, WCHAR* lpszStr, WCHAR* lpszRpl, int nStart, WCHAR** lpszRet) 114 | { 115 | *lpszRet=lpReg->Replace(lpszStr,lpszRpl,nStart,-1); 116 | return E_SUCCESS; 117 | } 118 | 119 | MRESULT WINAPI _RegReleaseStringW(WCHAR* lpszStr) 120 | { 121 | CRegexpW::ReleaseString(lpszStr); 122 | return E_SUCCESS; 123 | } 124 | 125 | BOOL WINAPI _IsRegMatchW(WCHAR* lpszPatt,WCHAR* lpszStr) 126 | { 127 | CRegexpW Reg(lpszPatt); 128 | 129 | auto mr=Reg.Match(lpszStr); 130 | return mr.IsMatched(); 131 | } 132 | 133 | MRESULT WINAPI _RegMatchW(CRegexpW* lpReg, WCHAR* lpszStr, int nStart, LPREGEXP_RESULT lprRslt) 134 | { 135 | auto mr=lpReg->Match(lpszStr,nStart); 136 | lprRslt->bIsMatched=mr.IsMatched(); 137 | if(!lprRslt->bIsMatched) 138 | return E_SUCCESS; 139 | 140 | lprRslt->rBase.nLeft=mr.GetStart(); 141 | lprRslt->rBase.nRight=mr.GetEnd(); 142 | 143 | auto mx=REG_MAX_GROUPS>mr.MaxGroupNumber()?mr.MaxGroupNumber():REG_MAX_GROUPS; 144 | lprRslt->nGroups=mx; 145 | 146 | for(int i=0;i<=mx;i++) 147 | { 148 | lprRslt->rGroups[i].nLeft=mr.GetGroupStart(i+1); 149 | lprRslt->rGroups[i].nRight=mr.GetGroupEnd(i+1); 150 | } 151 | return E_SUCCESS; 152 | } 153 | -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CppTemplate", "CppTemplate\CppTemplate.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate/CppTemplate.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | CppTemplate 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | DynamicLibrary 26 | false 27 | true 28 | Unicode 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | false 45 | .mel 46 | D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\crt;D:\WinDDK\7600.16385.1\inc\api\crt 47 | \masm32\lneditor;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 58 | 59 | 60 | Windows 61 | true 62 | exp.def 63 | 64 | 65 | 66 | 67 | Level3 68 | 69 | 70 | MaxSpeed 71 | true 72 | true 73 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 74 | false 75 | true 76 | Speed 77 | false 78 | false 79 | 80 | 81 | Windows 82 | true 83 | true 84 | true 85 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 86 | exp.def 87 | true 88 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate/exp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | PreProc 4 | Match 5 | GetText 6 | ModifyLine 7 | SaveText 8 | -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/C++/CppTemplate/CppTemplate/resource.h -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/C++/CppTemplate/CppTemplate/rsrc.rc -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate/template.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | HANDLE g_hHeap; 4 | #define OVERLOAD_NEW 5 | #include "\masm32\lneditor\SDK\C++\plugin.h" 6 | 7 | #include"xuse.h" 8 | 9 | HINSTANCE g_hInstance; 10 | 11 | 12 | void WINAPI InitInfo(LPMEL_INFO lpMelInfo) 13 | { 14 | lpMelInfo->dwInterfaceVersion=INTERFACE_VERSION; 15 | lpMelInfo->dwCharacteristic=0; 16 | } 17 | 18 | void WINAPI PreProc(LPPRE_DATA lpPreData) 19 | { 20 | g_hHeap=lpPreData->hGlobalHeap; 21 | } 22 | 23 | int WINAPI Match(LPCWSTR lpszName) 24 | { 25 | int len=lstrlenW(lpszName); 26 | if(lstrcmpiW(lpszName+len-4,L".bin")==0) 27 | { 28 | HANDLE hFile=CreateFile(lpszName,GENERIC_READ,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); 29 | if(hFile==INVALID_HANDLE_VALUE) 30 | return MR_ERR; 31 | DWORD dwMagic,nRead; 32 | BOOL bRet=ReadFile(hFile,&dwMagic,4,&nRead,0); 33 | CloseHandle(hFile); 34 | if(!bRet) 35 | return MR_ERR; 36 | if(dwMagic=='IRON') 37 | return MR_YES; 38 | } 39 | return MR_NO; 40 | } 41 | 42 | MRESULT WINAPI GetText(LPFILE_INFO lpFileInfo, LPDWORD lpdwRInfo) 43 | { 44 | XuseHdr* hdr=(XuseHdr*)lpFileInfo->lpStream; 45 | WORD* lpCode=(WORD *)((BYTE*)lpFileInfo->lpStream+\ 46 | sizeof(XuseHdr)+hdr->nFunc2len+hdr->nFunc1len+hdr->nFunc3len+8); 47 | BYTE* lpStrings=(BYTE*)lpCode+hdr->nCodeLen+2; 48 | 49 | lpFileInfo->lpTextIndex=(LPWSTR*)VirtualAlloc(0,hdr->nCodeLen/8*4,MEM_COMMIT,PAGE_READWRITE); 50 | if(!lpFileInfo->lpTextIndex) 51 | return E_NOMEM; 52 | 53 | lpFileInfo->lpStreamIndex=(LPSTREAM_ENTRY)VirtualAlloc(0,\ 54 | hdr->nCodeLen/8*sizeof(STREAM_ENTRY),MEM_COMMIT,PAGE_READWRITE); 55 | if(!lpFileInfo->lpStreamIndex) 56 | return E_NOMEM; 57 | 58 | WORD* pc=lpCode; 59 | DWORD nLine=0; 60 | while((BYTE*)pc<(BYTE*)lpCode+hdr->nCodeLen) 61 | { 62 | if(*pc==5) 63 | { 64 | WORD len=*(pc+1); 65 | LPBYTE lpStr=lpStrings+*(DWORD*)(pc+2); 66 | char* s1=new char[len]; 67 | memcpy(s1,lpStr,len); 68 | for(int i=0;idwCharSet,0,s1,len,s2,len+1); 72 | delete[] s1; 73 | lpFileInfo->lpTextIndex[nLine]=s2; 74 | lpFileInfo->lpStreamIndex[nLine].lpStart=pc; 75 | nLine++; 76 | } 77 | pc+=4; 78 | } 79 | lpFileInfo->dwMemoryType=MT_EVERYSTRING; 80 | lpFileInfo->nLine=nLine; 81 | *lpdwRInfo=RI_SUC_LINEONLY; 82 | 83 | return E_SUCCESS; 84 | } 85 | 86 | MRESULT WINAPI ModifyLine(LPFILE_INFO lpFileInfo, DWORD nLine) 87 | { 88 | return E_SUCCESS; 89 | } 90 | 91 | MRESULT WINAPI SaveText(LPFILE_INFO lpFileInfo) 92 | { 93 | return _SaveText(lpFileInfo); 94 | } 95 | 96 | -------------------------------------------------------------------------------- /SDK/C++/CppTemplate/CppTemplate/xuse.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct XuseHdr { 4 | DWORD dwMagic; 5 | DWORD nVer; 6 | DWORD nFunc1; 7 | DWORD nFunc1len; 8 | DWORD nFunc2; 9 | DWORD nFunc2len; 10 | DWORD nFunc3; 11 | DWORD nFunc3len; 12 | DWORD nCodeLen; 13 | DWORD nStringLen; 14 | }; -------------------------------------------------------------------------------- /SDK/C++/deelx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/C++/deelx.h -------------------------------------------------------------------------------- /SDK/C++/plugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/C++/plugin.h -------------------------------------------------------------------------------- /SDK/asm/Stuff/Stuff.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/asm/Stuff/Stuff.asm -------------------------------------------------------------------------------- /SDK/asm/Stuff/Stuff.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /SDK/asm/Stuff/Stuff.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | ModifyLine proto :dword,:dword 34 | 35 | .data? 36 | hInstance dd ? 37 | hHeap dd ? 38 | 39 | dwTemp dd ? 40 | bIsCrypted dd ? 41 | .const 42 | 43 | ddTable\ ;00 44 | dd 0bh,11h,5,5,0,6,0,1,0ffh,0,1,0,0,0,0,0 45 | dd 5,5,0,0,0,0,1,5,0,0,0,0,0,0bh,0,0 46 | dd 0ch,15 dup (0) 47 | dd 0,0,0,5,5,0,1,0bh,8 dup (0) 48 | ;01 49 | dd 0feh,0ff01h,5,0fffefeh,0ff01h,0ah,0ah,0ah,23h,01fefefeh,0ah,0fe0ah,6,0fefe05h,15h,5 50 | dd 10h,5,23h,19h,5,0ff01h,0,0ffffh,0feh,0,2,6,0bh,0bh,0ffffh,0 51 | dd 16 dup (0) 52 | dd 16 dup (0) 53 | ;02 54 | dd 0ff05h,0fh,6,19h,0ah,0fh,0ah,0ah,14h,1eh,0fh,14h,15h,0ah,0ah,0ah 55 | dd 0fh,0fh,0fe19h,0ah,10ff05h,14h,14ff05h,6,8 dup (0) 56 | dd 16 dup (0) 57 | dd 16 dup (0) 58 | ;03 59 | dd 06ff05h,0bh,5,01ffh,12 dup (0) 60 | dd 16 dup (0) 61 | dd 16 dup (0) 62 | dd 16 dup (0) 63 | ;04 64 | dd 0bh,6,6,0ah,0ah,11 dup (0) 65 | dd 16 dup (0) 66 | dd 16 dup (0) 67 | dd 16 dup (0) 68 | ;05 69 | dd 0fe05h,28h,23h,0ah,0ah,1,0,2,8 dup (0) 70 | dd 16 dup (0) 71 | dd 16 dup (0) 72 | dd 16 dup (0) 73 | ;06 74 | dd 06ffh,5,0ffh,0,0ff05h,6,5,0,5,5,0ffh,0bh,14h,0,0,0 75 | dd 16 dup (0) 76 | dd 16 dup (0) 77 | dd 16 dup (0) 78 | 79 | 80 | -------------------------------------------------------------------------------- /SDK/asm/Stuff/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set CURPATH=%CD% 3 | cd .. 4 | call pvarsasm.bat 5 | cd "%CURPATH%" 6 | if %PATH_ERROR%==1 goto errpath 7 | 8 | : ------------------------------- 9 | : if resources exist, build them 10 | : ------------------------------- 11 | if not exist rsrc.rc goto over1 12 | Rc.exe /v rsrc.rc 13 | Cvtres.exe /machine:ix86 rsrc.res 14 | :over1 15 | 16 | 17 | : ----------------------------------------- 18 | : assemble stuff.asm into an OBJ file 19 | : ----------------------------------------- 20 | Ml.exe /c /coff stuff.asm 21 | if errorlevel 1 goto errasm 22 | 23 | : -------------------------------------------------- 24 | : link the main OBJ file with the resource OBJ file 25 | : -------------------------------------------------- 26 | Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:stuff.def /section:.bss,S /out:stuff.mel stuff.obj rsrc.obj 27 | if errorlevel 1 goto errlink 28 | if not exist ..\..\mel\stuff.mel goto ohehe 29 | del ..\..\mel\stuff.mel 30 | :ohehe 31 | copy stuff.mel ..\..\mel 32 | dir stuff.* 33 | goto TheEnd 34 | 35 | :errlink 36 | : ---------------------------------------------------- 37 | : display message if there is an error during linking 38 | : ---------------------------------------------------- 39 | echo. 40 | echo There has been an error while linking this stuff. 41 | echo. 42 | goto TheEnd 43 | 44 | :errasm 45 | : ----------------------------------------------------- 46 | : display message if there is an error during assembly 47 | : ----------------------------------------------------- 48 | echo. 49 | echo There has been an error while assembling this stuff. 50 | echo. 51 | goto TheEnd 52 | 53 | :errpath 54 | echo. 55 | echo Path Error! 56 | echo. 57 | goto TheEnd 58 | 59 | :TheEnd 60 | 61 | 62 | pause 63 | -------------------------------------------------------------------------------- /SDK/asm/Stuff/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,1,10,0 5 | PRODUCTVERSION 1,1,10,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.1.10.0\0" 14 | VALUE "ProductVersion", "1.1.10.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Stuff Script Plugin.\0" 17 | VALUE "InternalName", "Stuff.mel\0" 18 | VALUE "OriginalFilename", "Stuff.mel\0" 19 | VALUE "ProductName", "Stuff Script Editor\0" 20 | VALUE "Format", ".msc\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /SDK/asm/config.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/asm/config.inc -------------------------------------------------------------------------------- /SDK/asm/export.inc: -------------------------------------------------------------------------------- 1 | 2 | ;Internal String Len 3 | SHORT_STRINGLEN EQU 64 4 | 5 | ;Export Functions 6 | _GetConstString proto 7 | _Int2Str proto :dword,:dword,:dword 8 | _DisplayStatus proto :dword,:dword 9 | _GetStringInList proto :dword,:dword 10 | 11 | _SelfMatch proto :dword 12 | 13 | _GetText proto :dword,:dword 14 | _SaveText proto :dword 15 | _ModifyLine proto :dword,:dword 16 | _SetLine proto :dword,:dword 17 | 18 | ;Help Match String 19 | _GetStringInTxt proto :dword,:dword,:dword,:dword 20 | _WildcharMatchW proto :dword,:dword 21 | 22 | ; 23 | _ReplaceInMem proto :dword,:dword,:dword,:dword,:dword 24 | _OutputMessage proto :dword,:dword,:dword,:dword 25 | -------------------------------------------------------------------------------- /SDK/asm/lnedit.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/asm/lnedit.lib -------------------------------------------------------------------------------- /SDK/asm/plugin.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/asm/plugin.inc -------------------------------------------------------------------------------- /SDK/开发帮助.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/SDK/开发帮助.txt -------------------------------------------------------------------------------- /_BrowseFolder.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/_BrowseFolder.asm -------------------------------------------------------------------------------- /_CreateDIBitmap.asm: -------------------------------------------------------------------------------- 1 | .code 2 | _CreateDIBitmap proc _hwnd,_lpFileData 3 | local @lpBitmapInfo,@lpBitmapBits 4 | local @dwWidth,@dwHeight 5 | local @hdc,@hBitmap 6 | pushad 7 | mov @hBitmap,0 8 | mov esi,_lpFileData 9 | mov eax,BITMAPFILEHEADER.bfOffBits[esi] 10 | add eax,esi 11 | mov @lpBitmapBits,eax 12 | add esi,sizeof BITMAPFILEHEADER 13 | mov @lpBitmapInfo,esi 14 | .if BITMAPINFO.bmiHeader.biSize[esi]==sizeof BITMAPCOREHEADER 15 | movzx eax,BITMAPCOREHEADER.bcWidth[esi] 16 | movzx ebx,BITMAPCOREHEADER.bcHeight[esi] 17 | .else 18 | mov eax,BITMAPINFOHEADER.biWidth[esi] 19 | mov ebx,BITMAPINFOHEADER.biHeight[esi] 20 | .endif 21 | mov @dwWidth,eax 22 | mov @dwHeight,ebx 23 | invoke GetDC,_hwnd 24 | push eax 25 | invoke CreateCompatibleDC,eax 26 | mov @hdc,eax 27 | pop eax 28 | push eax 29 | invoke CreateCompatibleBitmap,eax,@dwWidth,@dwHeight 30 | mov @hBitmap,eax 31 | invoke SelectObject,@hdc,@hBitmap 32 | pop eax 33 | invoke ReleaseDC,_hwnd,eax 34 | invoke SetDIBitsToDevice,@hdc,0,0,@dwWidth,@dwHeight,0,0,0,@dwHeight,@lpBitmapBits,@lpBitmapInfo,DIB_RGB_COLORS 35 | .if eax==0 36 | invoke DeleteObject,@hBitmap 37 | mov @hBitmap,0 38 | .endif 39 | invoke DeleteDC,@hdc 40 | popad 41 | mov eax,@hBitmap 42 | ret 43 | _CreateDIBitmap endp -------------------------------------------------------------------------------- /bin/lnedit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/bin/lnedit.exe -------------------------------------------------------------------------------- /bin/update.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/bin/update.lst -------------------------------------------------------------------------------- /bin/zdll.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/bin/zdll.lib -------------------------------------------------------------------------------- /bin/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/bin/zlib.lib -------------------------------------------------------------------------------- /bkgnd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/bkgnd.jpg -------------------------------------------------------------------------------- /choosemel.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/choosemel.asm -------------------------------------------------------------------------------- /cmdmode.asm: -------------------------------------------------------------------------------- 1 | .data 2 | 3 | TW0 'script', szOptionScriptName 4 | TW0 's', szOptionScriptNameS 5 | TW0 'code1', szOptionCode1 6 | TW0 'c1', szOptionCode1S 7 | TW0 'code2', szOptionCode2 8 | TW0 'c2', szOptionCode2S 9 | TW0 'line', szOptionLine 10 | TW0 'l', szOptionLineS 11 | TW0 'plugin', szOptionPlugin 12 | TW0 'p', szOptionPluginS 13 | TW0 'filter', szOptionFilter 14 | TW0 'f', szOptionFilterS 15 | TW0 'import', szOptionImport 16 | TW0 'i', szOptionImportS 17 | TW0 'export', szOptionExport 18 | TW0 'e', szOptionExportS 19 | TW0 'scdir', szOptionScDir 20 | TW0 'sd', szOptionScDirS 21 | TW0 'txtdir', szOptionTxtDir 22 | TW0 'td', szOptionTxtDirS 23 | TW0 'newdir', szOptionNewDir 24 | TW0 'nd', szOptionNewDirS 25 | 26 | TW0 'con', szOptionConsole 27 | TW0 'help', szOptionHelp 28 | 29 | coCmdOptions\ 30 | _StCmdOption 31 | _StCmdOption 32 | _StCmdOption 33 | _StCmdOption 34 | _StCmdOption 35 | _StCmdOption 36 | _StCmdOption 37 | _StCmdOption 38 | _StCmdOption 39 | _StCmdOption 40 | _StCmdOption 41 | .code 42 | 43 | _GetCmdOption proc uses esi edi ebx _lpName 44 | LOCAL @lpRslt 45 | LOCAL @temp 46 | LOCAL @nLen 47 | mov edi,lpArgTbl 48 | mov @lpRslt,0 49 | .if _lpName 50 | invoke lstrlenW,_lpName 51 | shl eax,1 52 | mov @nLen,eax 53 | .else 54 | mov @nLen,0 55 | .endif 56 | mov ebx,1 57 | .while ebx 31 | nGroups dd ? 32 | rGroups _RegexpRange REG_MAX_GROUPS dup(<>) 33 | _RegexpResult ends 34 | -------------------------------------------------------------------------------- /defaultedit.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/defaultedit.asm -------------------------------------------------------------------------------- /document/Readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/Readme.txt -------------------------------------------------------------------------------- /document/filterhelp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/filterhelp.txt -------------------------------------------------------------------------------- /document/mef/musica.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mef/musica.txt -------------------------------------------------------------------------------- /document/mel/BGI.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/BGI.txt -------------------------------------------------------------------------------- /document/mel/CatSystem2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/CatSystem2.txt -------------------------------------------------------------------------------- /document/mel/Circus.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Circus.txt -------------------------------------------------------------------------------- /document/mel/Circus2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Circus2.txt -------------------------------------------------------------------------------- /document/mel/ExHIBIT.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/ExHIBIT.txt -------------------------------------------------------------------------------- /document/mel/GsWin.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/GsWin.txt -------------------------------------------------------------------------------- /document/mel/ISM.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/ISM.txt -------------------------------------------------------------------------------- /document/mel/InnocentGrey.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/InnocentGrey.txt -------------------------------------------------------------------------------- /document/mel/J_List.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/J_List.txt -------------------------------------------------------------------------------- /document/mel/Lios.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Lios.txt -------------------------------------------------------------------------------- /document/mel/Lucifen.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Lucifen.txt -------------------------------------------------------------------------------- /document/mel/M2Psb.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/M2Psb.txt -------------------------------------------------------------------------------- /document/mel/Majiro.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Majiro.txt -------------------------------------------------------------------------------- /document/mel/N2System.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/N2System.txt -------------------------------------------------------------------------------- /document/mel/Stuff.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Stuff.txt -------------------------------------------------------------------------------- /document/mel/Xuse.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Xuse.txt -------------------------------------------------------------------------------- /document/mel/Yuris.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/Yuris.txt -------------------------------------------------------------------------------- /document/mel/advwin32.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/advwin32.txt -------------------------------------------------------------------------------- /document/mel/yuka.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/yuka.txt -------------------------------------------------------------------------------- /document/mel/yukapsp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/document/mel/yukapsp.txt -------------------------------------------------------------------------------- /export.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | _GetConstString 3 | _DisplayStatus 4 | _GetStringInList 5 | 6 | _SelfMatch 7 | 8 | _GetText 9 | _SaveText 10 | _ModifyLine 11 | _SetLine 12 | _RetLine 13 | 14 | _GetStringInTxt 15 | _WildcharMatchW 16 | _ReplaceInMem 17 | _ReplaceCharsW 18 | 19 | _OutputMessage 20 | 21 | _ZlibCompress=compress 22 | _ZlibUncompress=uncompress 23 | 24 | _RegCreateInstanceA 25 | _RegReleaseA 26 | _RegCreateInstanceW 27 | _RegReleaseW 28 | -------------------------------------------------------------------------------- /export.inc: -------------------------------------------------------------------------------- 1 | 2 | ;Internal String Len 3 | SHORT_STRINGLEN EQU 64 4 | 5 | ;Export Functions 6 | _GetConstString proto 7 | _Int2Str proto :dword,:dword,:dword 8 | _DisplayStatus proto :dword,:dword 9 | _GetStringInList proto :dword,:dword 10 | 11 | _SelfMatch proto :dword 12 | 13 | _GetText proto :dword,:dword 14 | _SaveText proto :dword 15 | _ModifyLine proto :dword,:dword 16 | _SetLine proto :dword,:dword 17 | 18 | ;Help Match String 19 | _GetStringInTxt proto :dword,:dword,:dword,:dword 20 | _WildcharMatchW proto :dword,:dword 21 | 22 | ; 23 | _ReplaceInMem proto :dword,:dword,:dword,:dword,:dword 24 | _OutputMessage proto :dword,:dword,:dword,:dword 25 | _ReplaceCharsW proto :dword,:dword,:dword 26 | 27 | ; 28 | _ZlibCompress proto :dword,:dword,:dword,:dword 29 | _ZlibUncompress proto :dword,:dword,:dword,:dword -------------------------------------------------------------------------------- /globalvars.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/globalvars.asm -------------------------------------------------------------------------------- /icon2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/icon2.ico -------------------------------------------------------------------------------- /lnMefs/Musica/Musica.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Musica", "Musica\Musica.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /lnMefs/Musica/Musica/Musica.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | Musica 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | DynamicLibrary 26 | false 27 | true 28 | Unicode 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | false 45 | .mef 46 | D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\crt;D:\WinDDK\7600.16385.1\inc\api\crt 47 | \masm32\lneditor;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 58 | 59 | 60 | Windows 61 | true 62 | exp.def 63 | 64 | 65 | 66 | 67 | Level3 68 | 69 | 70 | MaxSpeed 71 | true 72 | true 73 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 74 | false 75 | true 76 | Speed 77 | false 78 | false 79 | 80 | 81 | Windows 82 | true 83 | true 84 | true 85 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 86 | exp.def 87 | true 88 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /lnMefs/Musica/Musica/exp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | ProcessLine -------------------------------------------------------------------------------- /lnMefs/Musica/Musica/musica.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "\masm32\lneditor\SDK\C++\plugin.h" 4 | 5 | 6 | void WINAPI InitInfo(LPMEL_INFO2 lpMelInfo) 7 | { 8 | lpMelInfo->dwInterfaceVersion=TXTINTERFACE_VERSION; 9 | lpMelInfo->dwCharacteristic=0; 10 | } 11 | 12 | 13 | MRESULT WINAPI ProcessLine(LPSTREAM_ENTRY lpSE,DWORD dwCharSet) 14 | { 15 | if(dwCharSet==CS_UNICODE) 16 | return E_SUCCESS; 17 | if(memcmp(lpSE->lpStart,".message\t",strlen(".message\t"))) 18 | return E_LINEDENIED; 19 | 20 | DWORD i=0; 21 | char* p=(char*)lpSE->lpStart; 22 | 23 | i+=strlen(".message\t"); 24 | 25 | while(p[i++]!='\t' && inStringLen); 26 | 27 | while(p[i++]!='\t' && inStringLen); 28 | 29 | if(p[i]=='\t') 30 | i++; 31 | 32 | if(inStringLen) 33 | { 34 | lpSE->lpStart=&p[i]; 35 | lpSE->nStringLen-=i; 36 | } 37 | return E_SUCCESS; 38 | } -------------------------------------------------------------------------------- /lnMefs/Musica/Musica/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMefs/Musica/Musica/resource.h -------------------------------------------------------------------------------- /lnMefs/Musica/Musica/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMefs/Musica/Musica/rsrc.rc -------------------------------------------------------------------------------- /lnMels/BGI/bgi.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/BGI/bgi.asm -------------------------------------------------------------------------------- /lnMels/BGI/bgi.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | InitInfo 4 | ModifyLine 5 | Release 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/BGI/bgi.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\export.inc 27 | include \masm32\lneditor\rsrc.inc 28 | include \masm32\lneditor\plugin.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | INCLUDE rsrc.inc 33 | 34 | Release proto :dword 35 | 36 | .data? 37 | hInstance dd ? 38 | hWinMain dd ? 39 | hHeap dd ? 40 | dwTemp dd ? 41 | 42 | 43 | .const 44 | szMagic db 'BurikoCompiledScriptVer1.00' 45 | -------------------------------------------------------------------------------- /lnMels/BGI/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del bgi.obj 11 | if exist %1.dll del bgi.dll 12 | 13 | : ----------------------------------------- 14 | : assemble bgi.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff bgi.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:bgi.def /section:.bss,S /out:bgi.mel bgi.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\bgi.mel goto ohehe 27 | del \masm32\lneditor\mel\bgi.mel 28 | :ohehe 29 | copy bgi.mel \masm32\lneditor\mel 30 | dir bgi.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:bgi.def /section:.bss,S /out:bgi.mel bgi.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\bgi.mel goto ohehe2 40 | del \masm32\lneditor\mel\bgi.mel 41 | :ohehe2 42 | copy bgi.mel \masm32\lneditor\mel 43 | dir bgi.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this bgi. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this bgi. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/BGI/rsrc.inc: -------------------------------------------------------------------------------- 1 | IDR_VERSION1 equ 1 2 | -------------------------------------------------------------------------------- /lnMels/BGI/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,4,0,0 5 | PRODUCTVERSION 1,4,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.4.0.0\0" 14 | VALUE "ProductVersion", "1.4.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Buriko Compiled Script plugin for lnedit.\0" 17 | VALUE "InternalName", "bgi.mel\0" 18 | VALUE "OriginalFilename", "bgi.mel\0" 19 | VALUE "ProductName", "Buriko Compiled Script Editor\0" 20 | VALUE "Format", "None\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CatSystem2", "CatSystem2\CatSystem2.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2/CatSystem2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/CatSystem2/CatSystem2/CatSystem2.cpp -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2/CatSystem2.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | CatSystem2 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | DynamicLibrary 26 | false 27 | true 28 | Unicode 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | false 45 | .mel 46 | D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\crt;D:\WinDDK\7600.16385.1\inc\api\crt\stl60 47 | \masm32\lneditor;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 58 | 59 | 60 | Windows 61 | true 62 | exp.def 63 | 64 | 65 | 66 | 67 | Level3 68 | 69 | 70 | MaxSpeed 71 | true 72 | true 73 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 74 | false 75 | true 76 | Speed 77 | false 78 | false 79 | 80 | 81 | Windows 82 | true 83 | true 84 | true 85 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 86 | exp.def 87 | true 88 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2/cs.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | typedef struct _CS_ORIG_HDR{ 5 | char dwMagic[8]; 6 | DWORD comprLen; 7 | DWORD uncomprLen; 8 | } CS_ORIG_HDR,*LPCS_ORIG_HDR; 9 | 10 | typedef struct _CS_HDR{ 11 | DWORD sceneLen; 12 | DWORD instCnt; 13 | DWORD offTableOffset; 14 | DWORD rsrcOffset; 15 | } CS_HDR, *LPCS_HDR; 16 | -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2/exp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | PreProc 4 | Match 5 | GetText 6 | ModifyLine 7 | SaveText 8 | Release -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/CatSystem2/CatSystem2/resource.h -------------------------------------------------------------------------------- /lnMels/CatSystem2/CatSystem2/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/CatSystem2/CatSystem2/rsrc.rc -------------------------------------------------------------------------------- /lnMels/Circus/Circus.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Circus/Circus.asm -------------------------------------------------------------------------------- /lnMels/Circus/Circus.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/Circus/Circus.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | 34 | .data? 35 | hInstance dd ? 36 | hHeap dd ? 37 | 38 | dwTemp dd ? 39 | .const 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /lnMels/Circus/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del Circus.obj 11 | if exist %1.dll del Circus.dll 12 | 13 | : ----------------------------------------- 14 | : assemble Circus.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff Circus.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Circus.def /section:.bss,S /out:Circus.mel Circus.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\Circus.mel goto ohehe 27 | del \masm32\lneditor\mel\Circus.mel 28 | :ohehe 29 | copy Circus.mel \masm32\lneditor\mel 30 | dir Circus.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Circus.def /section:.bss,S /out:Circus.mel Circus.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\Circus.mel goto ohehe2 40 | del \masm32\lneditor\mel\Circus.mel 41 | :ohehe2 42 | copy Circus.mel \masm32\lneditor\mel 43 | dir Circus.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this Circus. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this Circus. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Circus/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,2,1,0 5 | PRODUCTVERSION 1,2,1,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.2.1.0\0" 14 | VALUE "ProductVersion", "1.2.1.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Circus Script Plugin.\0" 17 | VALUE "InternalName", "Circus.mel\0" 18 | VALUE "OriginalFilename", "Circus.mel\0" 19 | VALUE "ProductName", "Circus Script Editor\0" 20 | VALUE "Format", ".mes\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/Circus2/Circus2.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Circus2/Circus2.asm -------------------------------------------------------------------------------- /lnMels/Circus2/Circus2.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/Circus2/Circus2.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | 34 | .data? 35 | hInstance dd ? 36 | hHeap dd ? 37 | 38 | dwTemp dd ? 39 | .const 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /lnMels/Circus2/Circus2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Circus2/Circus2.lib -------------------------------------------------------------------------------- /lnMels/Circus2/Circus2.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Circus2/Circus2.mel -------------------------------------------------------------------------------- /lnMels/Circus2/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del Circus2.obj 11 | if exist %1.dll del Circus2.dll 12 | 13 | : ----------------------------------------- 14 | : assemble Circus2.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff Circus2.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Circus2.def /section:.bss,S /out:Circus2.mel Circus2.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\Circus2.mel goto ohehe 27 | del \masm32\lneditor\mel\Circus2.mel 28 | :ohehe 29 | copy Circus2.mel \masm32\lneditor\mel 30 | dir Circus2.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Circus2.def /section:.bss,S /out:Circus2.mel Circus2.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\Circus2.mel goto ohehe2 40 | del \masm32\lneditor\mel\Circus2.mel 41 | :ohehe2 42 | copy Circus2.mel \masm32\lneditor\mel 43 | dir Circus2.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this Circus2. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this Circus2. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Circus2/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Circus2/rsrc.rc -------------------------------------------------------------------------------- /lnMels/ExHIBIT/ExHIBIT.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/ExHIBIT/ExHIBIT.asm -------------------------------------------------------------------------------- /lnMels/ExHIBIT/ExHIBIT.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/ExHIBIT/ExHIBIT.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | 34 | .data? 35 | hInstance dd ? 36 | hHeap dd ? 37 | 38 | dwTemp dd ? 39 | .const 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /lnMels/ExHIBIT/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del ExHIBIT.obj 11 | if exist %1.dll del ExHIBIT.dll 12 | 13 | : ----------------------------------------- 14 | : assemble ExHIBIT.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff ExHIBIT.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:ExHIBIT.def /section:.bss,S /out:ExHIBIT.mel ExHIBIT.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\ExHIBIT.mel goto ohehe 27 | del \masm32\lneditor\mel\ExHIBIT.mel 28 | :ohehe 29 | copy ExHIBIT.mel \masm32\lneditor\mel 30 | dir ExHIBIT.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:ExHIBIT.def /section:.bss,S /out:ExHIBIT.mel ExHIBIT.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\ExHIBIT.mel goto ohehe2 40 | del \masm32\lneditor\mel\ExHIBIT.mel 41 | :ohehe2 42 | copy ExHIBIT.mel \masm32\lneditor\mel 43 | dir ExHIBIT.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this ExHIBIT. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this ExHIBIT. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/ExHIBIT/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/ExHIBIT/rsrc.rc -------------------------------------------------------------------------------- /lnMels/GsWin/GsWin.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GsWin", "GsWin\GsWin.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /lnMels/GsWin/GsWin/GsWin.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | GsWin 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | DynamicLibrary 26 | false 27 | true 28 | Unicode 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | false 45 | .mel 46 | D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\crt;D:\WinDDK\7600.16385.1\inc\api\crt 47 | \masm32\lneditor;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 58 | 59 | 60 | Windows 61 | true 62 | exp.def 63 | 64 | 65 | 66 | 67 | Level3 68 | 69 | 70 | MaxSpeed 71 | true 72 | true 73 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 74 | false 75 | true 76 | Speed 77 | false 78 | false 79 | 80 | 81 | Windows 82 | true 83 | true 84 | true 85 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 86 | exp.def 87 | true 88 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /lnMels/GsWin/GsWin/exp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | PreProc 4 | Match 5 | GetText 6 | ModifyLine 7 | SaveText 8 | Release 9 | GetStr -------------------------------------------------------------------------------- /lnMels/GsWin/GsWin/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/GsWin/GsWin/resource.h -------------------------------------------------------------------------------- /lnMels/GsWin/GsWin/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/GsWin/GsWin/rsrc.rc -------------------------------------------------------------------------------- /lnMels/ISM/ISM.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/ISM/ISM.asm -------------------------------------------------------------------------------- /lnMels/ISM/ISM.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | Release 8 | SaveText 9 | SetLine 10 | -------------------------------------------------------------------------------- /lnMels/ISM/ISM.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | IsmRelocTable struc 33 | lpOffsetTable dd ? 34 | nOffsets dd ? 35 | lpDistTable dd ? 36 | nDists dd ? 37 | IsmRelocTable ends 38 | 39 | .data? 40 | hInstance dd ? 41 | hHeap dd ? 42 | 43 | dwTemp dd ? 44 | .const 45 | szIsmMagic db 'ISM SCRIPT',0,0 46 | 47 | align 4 48 | ; 0 1 2 3 4 5 6 7 8 9 A B C D E F 49 | IsmInstTable db -1, -1, -1, -1, -1, 0, 0, -1, -1, -1, -1, 0, 0, 0, 0, -3 50 | db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 51 | db -2, -2, -1, 4, -2, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0 ;2 52 | db 4, 4, 8, -3, -1, 0, 0, 0, 4, 5, 4, 5, 4, 5, 4, 5 53 | db 0, 0, 0, 0, 0, -3, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1 54 | db 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ;5 55 | db 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 56 | db -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 57 | db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;8 58 | db 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 59 | db 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 60 | db 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ;b 61 | db 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 62 | db 0, -1, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 63 | db 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1 ;e 64 | db 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0 65 | 66 | -------------------------------------------------------------------------------- /lnMels/ISM/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del ism.obj 11 | if exist %1.dll del ism.dll 12 | 13 | : ----------------------------------------- 14 | : assemble ism.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff ism.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:ism.def /section:.bss,S /out:ism.mel ism.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\ism.mel goto ohehe 27 | del \masm32\lneditor\mel\ism.mel 28 | :ohehe 29 | copy ism.mel \masm32\lneditor\mel 30 | dir ism.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:ism.def /section:.bss,S /out:ism.mel ism.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\ism.mel goto ohehe2 40 | del \masm32\lneditor\mel\ism.mel 41 | :ohehe2 42 | copy ism.mel \masm32\lneditor\mel 43 | dir ism.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this ism. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this ism. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/ISM/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/ISM/rsrc.rc -------------------------------------------------------------------------------- /lnMels/InnocentGrey/InnocentGrey.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/InnocentGrey/InnocentGrey.asm -------------------------------------------------------------------------------- /lnMels/InnocentGrey/InnocentGrey.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | RetLine -------------------------------------------------------------------------------- /lnMels/InnocentGrey/InnocentGrey.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/InnocentGrey/InnocentGrey.inc -------------------------------------------------------------------------------- /lnMels/InnocentGrey/InnocentGrey.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/InnocentGrey/InnocentGrey.lib -------------------------------------------------------------------------------- /lnMels/InnocentGrey/InnocentGrey.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/InnocentGrey/InnocentGrey.mel -------------------------------------------------------------------------------- /lnMels/InnocentGrey/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del InnocentGrey.obj 11 | if exist %1.dll del InnocentGrey.dll 12 | 13 | : ----------------------------------------- 14 | : assemble InnocentGrey.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff InnocentGrey.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:InnocentGrey.def /section:.bss,S /out:InnocentGrey.mel InnocentGrey.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\InnocentGrey.mel goto ohehe 27 | del \masm32\lneditor\mel\InnocentGrey.mel 28 | :ohehe 29 | copy InnocentGrey.mel \masm32\lneditor\mel 30 | dir InnocentGrey.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:InnocentGrey.def /section:.bss,S /out:InnocentGrey.mel InnocentGrey.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\InnocentGrey.mel goto ohehe2 40 | del \masm32\lneditor\mel\InnocentGrey.mel 41 | :ohehe2 42 | copy InnocentGrey.mel \masm32\lneditor\mel 43 | dir InnocentGrey.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this InnocentGrey. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this InnocentGrey. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/InnocentGrey/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/InnocentGrey/rsrc.rc -------------------------------------------------------------------------------- /lnMels/J_List/j_list.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/J_List/j_list.asm -------------------------------------------------------------------------------- /lnMels/J_List/j_list.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | Release -------------------------------------------------------------------------------- /lnMels/J_List/j_list.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/J_List/j_list.inc -------------------------------------------------------------------------------- /lnMels/J_List/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | pushd .. 3 | call pvarsasm.bat 4 | popd 5 | echo %PATH_ERROR% 6 | if %PATH_ERROR%==1 goto errpath 7 | 8 | : ------------------------------- 9 | : if resources exist, build them 10 | : ------------------------------- 11 | if not exist rsrc.rc goto over1 12 | Rc.exe /v rsrc.rc 13 | Cvtres.exe /machine:ix86 rsrc.res 14 | :over1 15 | 16 | 17 | : ----------------------------------------- 18 | : assemble j_list.asm into an OBJ file 19 | : ----------------------------------------- 20 | Ml.exe /c /coff j_list.asm 21 | if errorlevel 1 goto errasm 22 | 23 | : -------------------------------------------------- 24 | : link the main OBJ file with the resource OBJ file 25 | : -------------------------------------------------- 26 | Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:j_list.def /section:.bss,S /out:j_list.mel j_list.obj rsrc.obj 27 | if errorlevel 1 goto errlink 28 | if not exist ..\..\mel\j_list.mel goto ohehe 29 | del ..\..\mel\j_list.mel 30 | :ohehe 31 | copy j_list.mel ..\..\mel 32 | dir j_list.* 33 | goto TheEnd 34 | 35 | :errlink 36 | : ---------------------------------------------------- 37 | : display message if there is an error during linking 38 | : ---------------------------------------------------- 39 | echo. 40 | echo There has been an error while linking this j_list. 41 | echo. 42 | goto TheEnd 43 | 44 | :errasm 45 | : ----------------------------------------------------- 46 | : display message if there is an error during assembly 47 | : ----------------------------------------------------- 48 | echo. 49 | echo There has been an error while assembling this j_list. 50 | echo. 51 | goto TheEnd 52 | 53 | :errpath 54 | echo. 55 | echo Path Error! 56 | echo. 57 | goto TheEnd 58 | 59 | :TheEnd 60 | 61 | 62 | pause 63 | -------------------------------------------------------------------------------- /lnMels/J_List/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/J_List/rsrc.rc -------------------------------------------------------------------------------- /lnMels/Lios/lios.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Lios/lios.asm -------------------------------------------------------------------------------- /lnMels/Lios/lios.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | GetText 4 | ModifyLine 5 | Release 6 | Match 7 | PreProc 8 | SaveText 9 | SetLine 10 | -------------------------------------------------------------------------------- /lnMels/Lios/lios.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Lios/lios.inc -------------------------------------------------------------------------------- /lnMels/Lios/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del lios.obj 11 | if exist %1.dll del lios.dll 12 | 13 | : ----------------------------------------- 14 | : assemble lios.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff lios.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:lios.def /section:.bss,S /out:lios.mel lios.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\lios.mel goto ohehe 27 | del \masm32\lneditor\mel\lios.mel 28 | :ohehe 29 | copy lios.mel \masm32\lneditor\mel 30 | dir lios.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:lios.def /section:.bss,S /out:lios.mel lios.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\lios.mel goto ohehe2 40 | del \masm32\lneditor\mel\lios.mel 41 | :ohehe2 42 | copy lios.mel \masm32\lneditor\mel 43 | dir lios.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this lios. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this lios. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Lios/rsrc.inc: -------------------------------------------------------------------------------- 1 | IDD_DLG1 equ 1000 2 | IDC_TEXTLONG equ 1001 3 | IDC_CHK1 equ 1002 4 | IDC_OK equ 1 5 | IDS_MORELINE equ 1 6 | IDR_VERSION1 equ 1 7 | -------------------------------------------------------------------------------- /lnMels/Lios/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Lios/rsrc.rc -------------------------------------------------------------------------------- /lnMels/Lucifen/Lucifen.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Lucifen/Lucifen.asm -------------------------------------------------------------------------------- /lnMels/Lucifen/Lucifen.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/Lucifen/Lucifen.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | 34 | .data? 35 | hInstance dd ? 36 | hHeap dd ? 37 | 38 | dwTemp dd ? 39 | .const 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /lnMels/Lucifen/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del lucifen.obj 11 | if exist %1.dll del lucifen.dll 12 | 13 | : ----------------------------------------- 14 | : assemble lucifen.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff lucifen.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:lucifen.def /section:.bss,S /out:lucifen.mel lucifen.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\lucifen.mel goto ohehe 27 | del \masm32\lneditor\mel\lucifen.mel 28 | :ohehe 29 | copy lucifen.mel \masm32\lneditor\mel 30 | dir lucifen.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:lucifen.def /section:.bss,S /out:lucifen.mel lucifen.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\lucifen.mel goto ohehe2 40 | del \masm32\lneditor\mel\lucifen.mel 41 | :ohehe2 42 | copy lucifen.mel \masm32\lneditor\mel 43 | dir lucifen.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this lucifen. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this lucifen. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Lucifen/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Lucifen/rsrc.rc -------------------------------------------------------------------------------- /lnMels/M2Psb/M2Psb.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "M2Psb", "M2Psb\M2Psb.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /lnMels/M2Psb/M2Psb/M2Psb.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | M2Psb 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | DynamicLibrary 26 | false 27 | true 28 | Unicode 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | false 45 | .mel 46 | D:\WinDDK\7600.16385.1\inc\api\crt\stl60;D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\crt 47 | \masm32\lneditor;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 58 | 59 | 60 | Windows 61 | true 62 | exp.def 63 | 64 | 65 | 66 | 67 | Level3 68 | 69 | 70 | MaxSpeed 71 | true 72 | true 73 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 74 | false 75 | true 76 | Speed 77 | false 78 | false 79 | 80 | 81 | Windows 82 | true 83 | true 84 | true 85 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 86 | exp.def 87 | true 88 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /lnMels/M2Psb/M2Psb/Psb.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define PSBVALTYPE_ARRAY 0x20 5 | #define PSBVALTYPE_DICT 0x21 6 | 7 | struct PsbHeader { 8 | DWORD dwMagic; 9 | DWORD nVersion; 10 | DWORD unk; 11 | DWORD nNameTree; 12 | DWORD nStrOffList; 13 | DWORD nStrRes; 14 | DWORD nDibOffList; 15 | DWORD nDibSizeList; 16 | DWORD nDibRes; 17 | DWORD nResIndexTree; 18 | }; 19 | 20 | struct TreeNode 21 | { 22 | int nBranch; 23 | std::vector pSub; 24 | }; 25 | 26 | struct PsbInfo 27 | { 28 | BOOL bIsCompressed; 29 | DWORD* lpStrOffList; 30 | int nStrs; 31 | char* lpStrRes; 32 | int nTotalStrLen; 33 | int nOriTotalStrLen; 34 | DWORD* lpTree; 35 | DWORD* lpVerifyTree; 36 | int nTreeSize; 37 | //char** lpNamesTable; 38 | int nNames; 39 | }; 40 | 41 | int compare1(char* arg1, char* arg2); 42 | int compare2(WORD* arg1, WORD* arg2); 43 | int compare3(char* arg1, char* arg2); 44 | int compare4(DWORD* arg1, DWORD* arg2); 45 | -------------------------------------------------------------------------------- /lnMels/M2Psb/M2Psb/exp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | PreProc 4 | Match 5 | GetText 6 | GetStr 7 | ModifyLine 8 | SaveText 9 | Release 10 | SetLine 11 | -------------------------------------------------------------------------------- /lnMels/M2Psb/M2Psb/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/M2Psb/M2Psb/resource.h -------------------------------------------------------------------------------- /lnMels/M2Psb/M2Psb/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/M2Psb/M2Psb/rsrc.rc -------------------------------------------------------------------------------- /lnMels/Majiro/MjDec.asm: -------------------------------------------------------------------------------- 1 | 2 | .code 3 | 4 | _InitHashTable proc uses edi esi ebx 5 | XOR EDI,EDI 6 | MOV ESI,lpTable1 7 | L002: 8 | MOV EDX,EDI 9 | MOV EBX,8 10 | L004: 11 | TEST DL,1 12 | JE L009 13 | SHR EDX,1 14 | XOR EDX,0EDB88320h 15 | JMP L010 16 | L009: 17 | SHR EDX,1 18 | L010: 19 | DEC EBX 20 | JNZ L004 21 | MOV DWORD PTR [ESI],EDX 22 | ADD ESI,4 23 | INC EDI 24 | cmp edi,256 25 | JL L002 26 | ret 27 | _InitHashTable endp 28 | 29 | _CalHash proc uses esi edi ebx _dSeed,_lpData,_nLen 30 | mov esi,_lpData 31 | mov eax,_dSeed 32 | XOR EDX,EDX 33 | mov ebx,lpTable1 34 | cmp _nLen,0 35 | JLE L014 36 | L003: 37 | XOR ECX,ECX 38 | MOV CL,BYTE PTR [EDX+ESI] 39 | MOV EDI,EAX 40 | AND EDI,0FFh 41 | SHR EAX,8 42 | XOR ECX,EDI 43 | MOV ECX,DWORD PTR [ECX*4+ebx] 44 | XOR EAX,ECX 45 | INC EDX 46 | CMP EDX,_nLen 47 | JL L003 48 | L014: 49 | NOT EAX 50 | ret 51 | _CalHash endp 52 | 53 | _XorBlock proc uses esi edi _lpBuff,_nSize 54 | xor ecx,ecx 55 | mov esi,_lpBuff 56 | mov edi,lpTable1 57 | .while ecx<_nSize 58 | mov edx,ecx 59 | and edx,256*4-1 60 | mov al,[edi+edx] 61 | xor [esi+ecx],al 62 | inc ecx 63 | .endw 64 | ret 65 | _XorBlock endp 66 | -------------------------------------------------------------------------------- /lnMels/Majiro/majiro.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Majiro/majiro.asm -------------------------------------------------------------------------------- /lnMels/Majiro/majiro.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | ModifyLine 4 | Release 5 | InitInfo 6 | Match 7 | PreProc 8 | SaveText 9 | SetLine 10 | GetStr -------------------------------------------------------------------------------- /lnMels/Majiro/majiro.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Majiro/majiro.inc -------------------------------------------------------------------------------- /lnMels/Majiro/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del majiro.obj 11 | if exist %1.dll del majiro.dll 12 | 13 | : ----------------------------------------- 14 | : assemble majiro.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff majiro.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:majiro.def /section:.bss,S /out:majiro.mel majiro.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\majiro.mel goto ohehe 27 | del \masm32\lneditor\mel\majiro.mel 28 | :ohehe 29 | copy majiro.mel \masm32\lneditor\mel 30 | dir majiro.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:majiro.def /section:.bss,S /out:majiro.mel majiro.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\majiro.mel goto ohehe2 40 | del \masm32\lneditor\mel\majiro.mel 41 | :ohehe2 42 | copy majiro.mel \masm32\lneditor\mel 43 | dir majiro.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this majiro. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this majiro. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Majiro/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,5,0,0 5 | PRODUCTVERSION 1,5,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.5.0.0\0" 14 | VALUE "ProductVersion", "1.5.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Majiro Script Plugin.\0" 17 | VALUE "InternalName", "majiro.mel\0" 18 | VALUE "OriginalFilename", "majiro.mel\0" 19 | VALUE "ProductName", "Majiro Script Editor\0" 20 | VALUE "Format", ".mjo\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/N2System/N2System.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Release 7 | Match 8 | SaveText 9 | SetLine 10 | -------------------------------------------------------------------------------- /lnMels/N2System/N2System.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | N2Index struct 33 | hMap dd ? 34 | lpMapStream dd ? 35 | nStreamSize dd ? 36 | lpIndex dd ? 37 | nIndex dd ? 38 | bWritable dd ? 39 | N2Index ends 40 | 41 | Release proto :dword 42 | N2DirFileNameW proto :dword 43 | 44 | .data? 45 | hInstance dd ? 46 | hHeap dd ? 47 | 48 | lpMapFile dd ? 49 | 50 | dwTemp dd ? 51 | .const 52 | TW "Can\-t open the Map file, please place ", szNoMapFile 53 | TW0 "the .map file to the same folder.\n" 54 | TW0 'N2System', szInnerName 55 | 56 | 57 | -------------------------------------------------------------------------------- /lnMels/N2System/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del N2System.obj 11 | if exist %1.dll del N2System.dll 12 | 13 | : ----------------------------------------- 14 | : assemble N2System.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff N2System.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:N2System.def /section:.bss,S /out:N2System.mel N2System.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\N2System.mel goto ohehe 27 | del \masm32\lneditor\mel\N2System.mel 28 | :ohehe 29 | copy N2System.mel \masm32\lneditor\mel 30 | dir N2System.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:N2System.def /section:.bss,S /out:N2System.mel N2System.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\N2System.mel goto ohehe2 40 | del \masm32\lneditor\mel\N2System.mel 41 | :ohehe2 42 | copy N2System.mel \masm32\lneditor\mel 43 | dir N2System.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this N2System. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this N2System. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/N2System/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,1,0,0 5 | PRODUCTVERSION 1,1,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.1.0.0\0" 14 | VALUE "ProductVersion", "1.1.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "N2System Script Plugin.\0" 17 | VALUE "InternalName", "N2System.mel\0" 18 | VALUE "OriginalFilename", "N2System.mel\0" 19 | VALUE "ProductName", "N2System Script Editor\0" 20 | VALUE "Format", ".nsb\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/Stuff/Stuff.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Stuff/Stuff.asm -------------------------------------------------------------------------------- /lnMels/Stuff/Stuff.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/Stuff/Stuff.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | ModifyLine proto :dword,:dword 34 | 35 | .data? 36 | hInstance dd ? 37 | hHeap dd ? 38 | 39 | dwTemp dd ? 40 | .const 41 | 42 | ddTable\ ;00 43 | dd 0bh,11h,5,5,0,6,0,1,0ffh,0,1,0,0,0,0,0 44 | dd 5,5,0,0,0,0,1,5,0,0,0,0,0,0bh,0,0 45 | dd 0ch,15 dup (0) 46 | dd 0,0,0,5,5,0,1,0bh,8 dup (0) 47 | ;01 48 | dd 0feh,0ff01h,5,0fffefeh,0ff01h,0ah,0ah,0ah,23h,01fefefeh,0ah,0fe0ah,6,0fefe05h,15h,5 49 | dd 10h,5,23h,19h,5,0ff01h,0,0ffffh,0feh,0,2,6,0bh,0bh,0ffffh,0 50 | dd 16 dup (0) 51 | dd 16 dup (0) 52 | ;02 53 | dd 0ff05h,0fh,6,19h,0ah,0fh,0ah,0ah,14h,1eh,0fh,14h,15h,0ah,0ah,0ah 54 | dd 0fh,0fh,0fe19h,0ah,10ff05h,14h,14ff05h,6,8 dup (0) 55 | dd 16 dup (0) 56 | dd 16 dup (0) 57 | ;03 58 | dd 06ff05h,0bh,5,01ffh,12 dup (0) 59 | dd 16 dup (0) 60 | dd 16 dup (0) 61 | dd 16 dup (0) 62 | ;04 63 | dd 0bh,6,6,0ah,0ah,11 dup (0) 64 | dd 16 dup (0) 65 | dd 16 dup (0) 66 | dd 16 dup (0) 67 | ;05 68 | dd 0fe05h,28h,23h,0ah,0ah,1,0,2,8 dup (0) 69 | dd 16 dup (0) 70 | dd 16 dup (0) 71 | dd 16 dup (0) 72 | ;06 73 | dd 06ffh,5,0ffh,0,0ff05h,6,5,0,5,5,0ffh,0bh,14h,0,0,0 74 | dd 16 dup (0) 75 | dd 16 dup (0) 76 | dd 16 dup (0) 77 | 78 | 79 | -------------------------------------------------------------------------------- /lnMels/Stuff/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del Stuff.obj 11 | if exist %1.dll del Stuff.dll 12 | 13 | : ----------------------------------------- 14 | : assemble Stuff.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff Stuff.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Stuff.def /section:.bss,S /out:Stuff.mel Stuff.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\Stuff.mel goto ohehe 27 | del \masm32\lneditor\mel\Stuff.mel 28 | :ohehe 29 | copy Stuff.mel \masm32\lneditor\mel 30 | dir Stuff.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Stuff.def /section:.bss,S /out:Stuff.mel Stuff.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\Stuff.mel goto ohehe2 40 | del \masm32\lneditor\mel\Stuff.mel 41 | :ohehe2 42 | copy Stuff.mel \masm32\lneditor\mel 43 | dir Stuff.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this Stuff. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this Stuff. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Stuff/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,3,0,0 5 | PRODUCTVERSION 1,3,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.3.0.0\0" 14 | VALUE "ProductVersion", "1.3.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Stuff Script Plugin.\0" 17 | VALUE "InternalName", "Stuff.mel\0" 18 | VALUE "OriginalFilename", "Stuff.mel\0" 19 | VALUE "ProductName", "Stuff Script Editor\0" 20 | VALUE "Format", ".msc\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/System4/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del system4.obj 11 | if exist %1.dll del system4.dll 12 | 13 | : ----------------------------------------- 14 | : assemble system4.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff system4.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:system4.def /section:.bss,S /out:system4.mel system4.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\system4.mel goto ohehe 27 | del \masm32\lneditor\mel\system4.mel 28 | :ohehe 29 | copy system4.mel \masm32\lneditor\mel 30 | dir system4.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:system4.def /section:.bss,S /out:system4.mel system4.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\system4.mel goto ohehe2 40 | del \masm32\lneditor\mel\system4.mel 41 | :ohehe2 42 | copy system4.mel \masm32\lneditor\mel 43 | dir system4.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this system4. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this system4. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/System4/prescan.asm: -------------------------------------------------------------------------------- 1 | .code 2 | 3 | _PreScan proc uses esi edi ebx _lpFile,_nSize,_lpAinSegs 4 | LOCAL @pEnd 5 | LOCAL @nNums 6 | mov esi,_lpFile 7 | mov ebx,_lpAinSegs 8 | assume ebx:ptr _AinSegs 9 | mov eax,esi 10 | add eax,_nSize 11 | mov @pEnd,eax 12 | .while esi<@pEnd 13 | lodsd 14 | .if eax=='SREV' 15 | mov [ebx].Version.lpAddr,esi 16 | mov [ebx].Version.nSize,4 17 | add esi,4 18 | .elseif eax=='EDOC' 19 | lodsd 20 | mov [ebx].Code.lpAddr,esi 21 | mov [ebx].Code.nSize,eax 22 | add esi,eax 23 | .elseif eax=='CNUF' 24 | mov [ebx].Function.lpAddr,esi 25 | lodsd 26 | push ebx 27 | mov ebx,eax 28 | xor al,al 29 | or ecx,-1 30 | mov edi,esi 31 | .while ebx 32 | add edi,4 33 | repne scasb 34 | add edi,24 35 | mov edx,[edi-8] 36 | .while edx 37 | repne scasb 38 | add edi,12 39 | dec edx 40 | .endw 41 | dec ebx 42 | .endw 43 | pop ebx 44 | mov ecx,edi 45 | sub ecx,esi 46 | mov esi,edi 47 | add ecx,4 48 | mov [ebx].Function.nSize,ecx 49 | .ELSEIF EAX=='BOLG' 50 | mov [ebx].GlobalVar.lpAddr,esi 51 | lodsd 52 | push ebx 53 | mov ebx,eax 54 | mov edi,esi 55 | xor al,al 56 | or ecx,-1 57 | .while ebx 58 | repne scasb 59 | add edi,12 60 | dec ebx 61 | .endw 62 | pop ebx 63 | mov ecx,edi 64 | sub ecx,esi 65 | add ecx,4 66 | mov [ebx].GlobalVar.nSize,ecx 67 | mov esi,edi 68 | .ELSEIF EAX=='TESG' 69 | mov [ebx].GlobalSet.lpAddr,esi 70 | lodsd 71 | shl eax,2 72 | lea eax,[eax+eax*2] 73 | add esi,eax 74 | add eax,4 75 | mov [ebx].GlobalSet.nSize,eax 76 | .ELSEIF EAX=='TRTS' 77 | mov [ebx].Structs.lpAddr,esi 78 | lodsd 79 | push ebx 80 | mov ebx,eax 81 | mov edi,esi 82 | or ecx,-1 83 | xor eax,eax 84 | .while ebx 85 | repne scasb 86 | add edi,12 87 | mov edx,[edi-4] 88 | .while edx 89 | dec edx 90 | repne scasb 91 | add edi,12 92 | .endw 93 | dec ebx 94 | .endw 95 | pop ebx 96 | mov ecx,edi 97 | sub ecx,esi 98 | mov esi,edi 99 | add ecx,4 100 | mov [ebx].Structs.nSize,ecx 101 | .ELSEIF EAX=='0GSM' 102 | lodsd 103 | mov [ebx].Message0.lpAddr,esi 104 | mov [ebx].Message0.nSize,eax 105 | add esi,eax 106 | .ELSEIF EAX=='NIAM' 107 | mov [ebx].Main.lpAddr,esi 108 | mov [ebx].Main.nSize,4 109 | add esi,4 110 | .ELSEIF EAX=='FGSM' 111 | mov [ebx].MessageFunc,esi 112 | mov [ebx].MessageFunc,4 113 | add esi,4 114 | .ELSEIF EAX=='0LLH' 115 | mov [ebx].HLL,esi 116 | lodsd 117 | push ebx 118 | mov ebx,eax 119 | mov edi,esi 120 | xor eax,eax 121 | .while ebx 122 | repne scasb 123 | mov edx,[edi] 124 | add edi,4 125 | .while edx 126 | repne scasb 127 | add edi,8 128 | push edx 129 | mov edx,[edi-4] 130 | .while edx 131 | repne scasb 132 | add edi,4 133 | dec edx 134 | .endw 135 | pop edx 136 | dec edx 137 | .endw 138 | dec ebx 139 | .endw 140 | pop ebx 141 | mov ecx,edi 142 | sub ecx,esi 143 | mov esi,edi 144 | add ecx,4 145 | mov [ebx].HLL.nSize,ecx 146 | .ELSEIF EAX=='0IWS' 147 | mov [ebx].SwitchData.lpAddr,esi 148 | lodsd 149 | mov edi,eax 150 | .while edi 151 | add esi,12 152 | mov edx,[esi-4] 153 | shl edx,3 154 | add esi,edx 155 | dec edi 156 | .endw 157 | mov ecx,esi 158 | sub ecx,[ebx].SwitchData.lpAddr 159 | mov [ebx].SwitchData.nSize,ecx 160 | .ELSEIF EAX=='REVG' 161 | mov [ebx].GameVersion.lpAddr,esi 162 | mov [ebx].GameVersion.nSize,4 163 | add esi,4 164 | .ELSEIF EAX=='LBLS' 165 | mov [ebx].SLBL.lpAddr,esi 166 | lodsd 167 | mov edx,eax 168 | xor eax,eax 169 | or ecx,-1 170 | mov edi,esi 171 | .while edx 172 | repne scasb 173 | add edi,4 174 | dec edx 175 | .endw 176 | mov ecx,edi 177 | sub ecx,esi 178 | add ecx,4 179 | mov [ebx].SLBL.nSize,ecx 180 | mov esi,edi 181 | .ELSEIF EAX=='0RTS' 182 | mov [ebx].Strings.lpAddr,esi 183 | lodsd 184 | mov edx,eax 185 | mov edi,esi 186 | xor eax,eax 187 | or ecx,-1 188 | .while edx 189 | repne scasb 190 | dec edx 191 | .endw 192 | lea ecx,[edi+4] 193 | sub ecx,esi 194 | mov [ebx].Strings.nSize,ecx 195 | mov esi,edi 196 | .ELSEIF EAX=='MANF' 197 | mov [ebx].FileName.lpAddr,esi 198 | lodsd 199 | mov edx,eax 200 | mov edi,esi 201 | xor eax,eax 202 | or ecx,-1 203 | .while edx 204 | repne scasb 205 | dec edx 206 | .endw 207 | lea ecx,[edi+4] 208 | sub ecx,esi 209 | mov [ebx].FileName.nSize,ecx 210 | mov esi,edi 211 | .ELSEIF EAX=='PMJO' 212 | mov [ebx].Onjump.lpAddr,esi 213 | mov [ebx].Onjump.nSize,4 214 | add esi,4 215 | .ELSEIF EAX=='TCNF' 216 | lodsd 217 | mov [ebx].FuctionType.lpAddr,esi 218 | mov [ebx].FuctionType.nSize,eax 219 | add esi,eax 220 | .ELSEIF EAX=='CYEK' 221 | mov [ebx].KeyC.lpAddr,esi 222 | mov [ebx].KeyC.nSize,4 223 | add esi,4 224 | .else 225 | mov eax,1 226 | ret 227 | .endif 228 | .endw 229 | assume edi:nothing 230 | xor eax,eax 231 | ret 232 | _PreScan endp -------------------------------------------------------------------------------- /lnMels/System4/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,0,0,0 5 | PRODUCTVERSION 1,0,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.0.0.0\0" 14 | VALUE "ProductVersion", "1.0.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "System4 Script Plugin.\0" 17 | VALUE "InternalName", "system4.mel\0" 18 | VALUE "OriginalFilename", "system4.mel\0" 19 | VALUE "ProductName", "System4 Script Editor\0" 20 | VALUE "Format", ".ain\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/System4/system4.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/System4/system4.asm -------------------------------------------------------------------------------- /lnMels/System4/system4.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | ModifyLine 4 | Release 5 | Match 6 | PreProc 7 | SaveText 8 | SetLine 9 | GetStr -------------------------------------------------------------------------------- /lnMels/System4/system4.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\export.inc 27 | include \masm32\lneditor\rsrc.inc 28 | include \masm32\lneditor\plugin.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | 33 | ModifyLine proto :dword,:dword 34 | SaveText proto :dword 35 | Release proto :dword 36 | _memcpy2 proto :dword,:dword,:dword 37 | 38 | _Segment struct 39 | lpAddr dd ? 40 | nSize dd ? 41 | _Segment ends 42 | 43 | _AinSegs struct 44 | Version _Segment <> 45 | Code _Segment <> 46 | Function _Segment <> 47 | GlobalVar _Segment <> 48 | GlobalSet _Segment <> 49 | Structs _Segment <> 50 | Message0 _Segment <> 51 | Main _Segment <> 52 | MessageFunc _Segment <> 53 | HLL _Segment <> 54 | SwitchData _Segment <> 55 | GameVersion _Segment <> 56 | SLBL _Segment <> 57 | Strings _Segment <> 58 | FileName _Segment <> 59 | Onjump _Segment <> 60 | FuctionType _Segment <> 61 | KeyC _Segment <> 62 | _AinSegs ends 63 | 64 | .data? 65 | hInstance dd ? 66 | hHeap dd ? 67 | 68 | dwTemp dd ? 69 | 70 | .const 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /lnMels/Xuse/Xuse.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Xuse/Xuse.asm -------------------------------------------------------------------------------- /lnMels/Xuse/Xuse.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/Xuse/Xuse.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | XuseHeader struct 33 | sMagic db 4 dup (?) 34 | nVer dd ? 35 | nFunc1 dd ? 36 | nFunc1Len dd ? 37 | nFunc2 dd ? 38 | nFunc2Len dd ? 39 | nFunc3 dd ? 40 | nFunc3Len dd ? 41 | nCodeLen dd ? 42 | nStringLen dd ? 43 | XuseHeader ends 44 | 45 | .data? 46 | hInstance dd ? 47 | hHeap dd ? 48 | 49 | dwTemp dd ? 50 | .const 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /lnMels/Xuse/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del Xuse.obj 11 | if exist %1.dll del Xuse.dll 12 | 13 | : ----------------------------------------- 14 | : assemble Xuse.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff Xuse.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Xuse.def /section:.bss,S /out:Xuse.mel Xuse.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\Xuse.mel goto ohehe 27 | del \masm32\lneditor\mel\Xuse.mel 28 | :ohehe 29 | copy Xuse.mel \masm32\lneditor\mel 30 | dir Xuse.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:Xuse.def /section:.bss,S /out:Xuse.mel Xuse.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\Xuse.mel goto ohehe2 40 | del \masm32\lneditor\mel\Xuse.mel 41 | :ohehe2 42 | copy Xuse.mel \masm32\lneditor\mel 43 | dir Xuse.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this Xuse. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this Xuse. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Xuse/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Xuse/rsrc.rc -------------------------------------------------------------------------------- /lnMels/Yuris/Yuris.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Yuris/Yuris.asm -------------------------------------------------------------------------------- /lnMels/Yuris/Yuris.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | PreProc 4 | ModifyLine 5 | InitInfo 6 | Match 7 | SaveText 8 | SetLine 9 | -------------------------------------------------------------------------------- /lnMels/Yuris/Yuris.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\plugin.inc 27 | include \masm32\lneditor\export.inc 28 | include \masm32\lneditor\rsrc.inc 29 | include \masm32\lneditor\config.inc 30 | includelib \masm32\lneditor\lnedit.lib 31 | 32 | SegInfo1 struct 33 | nCount dd ? 34 | nCodeSize dd ? 35 | nArgSize dd ? 36 | nResSize dd ? 37 | nOffSize dd ? 38 | dwResvd dd ? 39 | SegInfo1 ends 40 | SegInfo2 struct 41 | nInstSize dd ? 42 | nResSize dd ? 43 | nResOff dd ? 44 | dwResvd dd 3 dup(?) 45 | SegInfo2 ends 46 | SegInfo union 47 | s1 SegInfo1 <> 48 | s2 SegInfo2 <> 49 | SegInfo ends 50 | 51 | YurisHdr struct 52 | sMagic dd ? 53 | nVersion dd ? 54 | segInfo SegInfo <> 55 | YurisHdr ends 56 | 57 | YurisHdr2 struct 58 | sMagic dd ? 59 | nVersion dd ? 60 | nInstSize dd ? 61 | nResSize dd ? 62 | nResOff dd ? 63 | dwResvd dd 3 dup(?) 64 | YurisHdr2 ends 65 | 66 | YurisArg struct 67 | value dw ? 68 | type1 dw ? 69 | len1 dd ? 70 | offset1 dd ? 71 | YurisArg ends 72 | 73 | YurisVerInfo struct 74 | nVerMin dd ? 75 | nVerMax dd ? 76 | opMsg dw ? 77 | opCall dw ? 78 | YurisVerInfo ends 79 | 80 | FUNC_SEL EQU 1 81 | FUNC_MARKSET EQU 2 82 | FUNC_CHARNAME EQU 3 83 | FUNC_INPUTSTR EQU 4 84 | FUNC_TIPS EQU 5 85 | FUNC_TIPSTX EQU 6 86 | 87 | .data? 88 | hInstance dd ? 89 | hHeap dd ? 90 | 91 | dwTemp dd ? 92 | .const 93 | dbFSel db '"es.sel.set"' 94 | align 4 95 | dbFMarkSet db '"es.char.name.mark.set"' 96 | align 4 97 | dbFCharName db '"es.char.name"' 98 | align 4 99 | dbFInputStr db '"es.input.str.set"' 100 | align 4 101 | dbFTipsStr db '"es.tips.def.set"' 102 | align 4 103 | dbFTipsTxStr db '"es.tips.tx.def.set"' 104 | 105 | 106 | VerTable\ 107 | YurisVerInfo <124h,124h,0154h,19h> 108 | YurisVerInfo <12ch,19ch,015ah,1dh> 109 | YurisVerInfo <1f4h,1f4h,015ah,1dh> 110 | YurisVerInfo <1c2h,1d8h,015bh,1dh> 111 | YurisVerInfo <1d9h,1d9h,015ah,1dh> 112 | YurisVerInfo <226h,226h,015ch,1eh> 113 | YurisVerInfo <227h,227h,015ah,1dh> 114 | nVerInfos dd (offset nVerInfos-offset VerTable)/sizeof(YurisVerInfo) 115 | -------------------------------------------------------------------------------- /lnMels/Yuris/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del yuris.obj 11 | if exist %1.dll del yuris.dll 12 | 13 | : ----------------------------------------- 14 | : assemble yuris.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff yuris.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:yuris.def /section:.bss,S /out:yuris.mel yuris.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\yuris.mel goto ohehe 27 | del \masm32\lneditor\mel\yuris.mel 28 | :ohehe 29 | copy yuris.mel \masm32\lneditor\mel 30 | dir yuris.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:yuris.def /section:.bss,S /out:yuris.mel yuris.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\yuris.mel goto ohehe2 40 | del \masm32\lneditor\mel\yuris.mel 41 | :ohehe2 42 | copy yuris.mel \masm32\lneditor\mel 43 | dir yuris.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this yuris. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this yuris. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/Yuris/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Yuris/rsrc.rc -------------------------------------------------------------------------------- /lnMels/Yuris/yuris.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Yuris/yuris.lib -------------------------------------------------------------------------------- /lnMels/Yuris/yuris.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/Yuris/yuris.mel -------------------------------------------------------------------------------- /lnMels/advwin32/Advwin32.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "advwin32", "advwin32\advwin32.vcxproj", "{BF2A5037-B630-4875-9427-0C7F30C4F488}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Release|Win32 = Release|Win32 9 | EndGlobalSection 10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 11 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.ActiveCfg = Release|Win32 12 | {BF2A5037-B630-4875-9427-0C7F30C4F488}.Release|Win32.Build.0 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(SolutionProperties) = preSolution 15 | HideSolutionNode = FALSE 16 | EndGlobalSection 17 | EndGlobal 18 | -------------------------------------------------------------------------------- /lnMels/advwin32/advwin32/advwin32.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {BF2A5037-B630-4875-9427-0C7F30C4F488} 15 | Win32Proj 16 | Advwin32 17 | 18 | 19 | 20 | DynamicLibrary 21 | true 22 | Unicode 23 | 24 | 25 | DynamicLibrary 26 | false 27 | true 28 | Unicode 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | false 45 | .mel 46 | D:\WinDDK\7600.16385.1\inc\api\crt\stl60;D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\crt 47 | \masm32\lneditor;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Mfc\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Level3 56 | Disabled 57 | WIN32;_DEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 58 | 59 | 60 | Windows 61 | true 62 | exp.def 63 | 64 | 65 | 66 | 67 | Level3 68 | 69 | 70 | MaxSpeed 71 | true 72 | true 73 | WIN32;NDEBUG;_WINDOWS;_USRDLL;CPPTEMPLATE_EXPORTS;%(PreprocessorDefinitions) 74 | false 75 | true 76 | Speed 77 | false 78 | false 79 | 80 | 81 | Windows 82 | true 83 | true 84 | true 85 | lnedit.lib;msvcrt.lib;%(AdditionalDependencies) 86 | exp.def 87 | true 88 | \masm32\lneditor\mel\$(TargetName)$(TargetExt) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /lnMels/advwin32/advwin32/exp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | InitInfo 3 | PreProc 4 | Match 5 | GetText 6 | GetStr 7 | ModifyLine 8 | SaveText 9 | Release 10 | SetLine 11 | -------------------------------------------------------------------------------- /lnMels/advwin32/advwin32/mes.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct MesHeader 6 | { 7 | char scrName[0x10]; 8 | DWORD unk1; 9 | ULONG fileSize; 10 | ULONG hdrSize; 11 | DWORD unk2; 12 | }; 13 | 14 | struct JmpEntry 15 | { 16 | LPBYTE addr; 17 | LPBYTE addrPtr; 18 | }; -------------------------------------------------------------------------------- /lnMels/advwin32/advwin32/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/advwin32/advwin32/resource.h -------------------------------------------------------------------------------- /lnMels/advwin32/advwin32/rsrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/advwin32/advwin32/rsrc.rc -------------------------------------------------------------------------------- /lnMels/pvarsasm.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem Set env vars of plugins. 3 | 4 | cd .. 5 | call varsasm.bat 6 | if %PATH_ERROR%==1 goto ErrPath 7 | 8 | set "INCLUDE=%LNEDITDIR%;%INCLUDE%" 9 | set "LIB=%LNEDITDIR%;%LIB%" 10 | set "LIBPATH=%LNEDITDIR%;%LIBPATH%" 11 | 12 | goto :eof 13 | 14 | :ErrPath 15 | set PATH_ERROR=1 16 | goto :eof -------------------------------------------------------------------------------- /lnMels/yuka_script/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del yuka.obj 11 | if exist %1.dll del yuka.dll 12 | 13 | : ----------------------------------------- 14 | : assemble yuka.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff yuka.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:yuka.def /section:.bss,S /out:yuka.mel yuka.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\yuka.mel goto ohehe 27 | del \masm32\lneditor\mel\yuka.mel 28 | :ohehe 29 | copy yuka.mel \masm32\lneditor\mel 30 | dir yuka.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:yuka.def /section:.bss,S /out:yuka.mel yuka.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\yuka.mel goto ohehe2 40 | del \masm32\lneditor\mel\yuka.mel 41 | :ohehe2 42 | copy yuka.mel \masm32\lneditor\mel 43 | dir yuka.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this yuka. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this yuka. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/yuka_script/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,1,0,0 5 | PRODUCTVERSION 1,1,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.1.0.0\0" 14 | VALUE "ProductVersion", "1.1.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Yuka Script plugin for lnedit. replace SimpFunc.\0" 17 | VALUE "InternalName", "yuka.mel\0" 18 | VALUE "OriginalFilename", "yuka.mel\0" 19 | VALUE "ProductName", "YukaScript Editor\0" 20 | VALUE "Format", ".yks\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/yuka_script/yuka.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/yuka_script/yuka.asm -------------------------------------------------------------------------------- /lnMels/yuka_script/yuka.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | ModifyLine 4 | Release 5 | Match 6 | PreProc 7 | SaveText 8 | SetLine 9 | InitInfo -------------------------------------------------------------------------------- /lnMels/yuka_script/yuka.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\export.inc 27 | include \masm32\lneditor\rsrc.inc 28 | include \masm32\lneditor\plugin.inc 29 | include \masm32\lneditor\config.inc 30 | 31 | includelib \masm32\lneditor\lnedit.lib 32 | 33 | ModifyLine proto :dword,:dword 34 | SaveText proto :dword 35 | Release proto :dword 36 | _memcpy proto 37 | _IsEncode proto :dword 38 | _Encode proto :dword,:dword 39 | _CmpStrOut proto :dword 40 | 41 | YukaStruct struct 42 | lpPrg dd ? 43 | nPrgLen dd ? 44 | lpCmd dd ? 45 | nCmdLen dd ? 46 | lpRes dd ? 47 | nResLen dd ? 48 | bIsCrypted dd ? 49 | YukaStruct ends 50 | 51 | .data? 52 | hInstance dd ? 53 | hGlobalHeap dd ? 54 | 55 | .data 56 | szStrOut db 'StrOut',0 57 | szStrOutNWC db 'StrOutNWC',0 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /lnMels/yuka_script_psp/makeit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | : ------------------------------- 3 | : if resources exist, build them 4 | : ------------------------------- 5 | if not exist rsrc.rc goto over1 6 | \MASM32\BIN\Rc.exe /v rsrc.rc 7 | \MASM32\BIN\Cvtres.exe /machine:ix86 rsrc.res 8 | :over1 9 | 10 | if exist %1.obj del yukapsp.obj 11 | if exist %1.dll del yukapsp.dll 12 | 13 | : ----------------------------------------- 14 | : assemble yukapsp.asm into an OBJ file 15 | : ----------------------------------------- 16 | \MASM32\BIN\Ml.exe /c /coff yukapsp.asm 17 | if errorlevel 1 goto errasm 18 | 19 | if not exist rsrc.obj goto nores 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:yukapsp.def /section:.bss,S /out:yukapsp.mel yukapsp.obj rsrc.obj 25 | if errorlevel 1 goto errlink 26 | if not exist \masm32\lneditor\mel\yukapsp.mel goto ohehe 27 | del \masm32\lneditor\mel\yukapsp.mel 28 | :ohehe 29 | copy yukapsp.mel \masm32\lneditor\mel 30 | dir yukapsp.* 31 | goto TheEnd 32 | 33 | :nores 34 | : ----------------------- 35 | : link the main OBJ file 36 | : ----------------------- 37 | \MASM32\BIN\Link.exe /SUBSYSTEM:WINDOWS /Dll /Def:yukapsp.def /section:.bss,S /out:yukapsp.mel yukapsp.obj 38 | if errorlevel 1 goto errlink 39 | if not exist \masm32\lneditor\mel\yukapsp.mel goto ohehe2 40 | del \masm32\lneditor\mel\yukapsp.mel 41 | :ohehe2 42 | copy yukapsp.mel \masm32\lneditor\mel 43 | dir yukapsp.* 44 | goto TheEnd 45 | 46 | :errlink 47 | : ---------------------------------------------------- 48 | : display message if there is an error during linking 49 | : ---------------------------------------------------- 50 | echo. 51 | echo There has been an error while linking this yukapsp. 52 | echo. 53 | goto TheEnd 54 | 55 | :errasm 56 | : ----------------------------------------------------- 57 | : display message if there is an error during assembly 58 | : ----------------------------------------------------- 59 | echo. 60 | echo There has been an error while assembling this yukapsp. 61 | echo. 62 | goto TheEnd 63 | 64 | :TheEnd 65 | 66 | pause 67 | -------------------------------------------------------------------------------- /lnMels/yuka_script_psp/rsrc.rc: -------------------------------------------------------------------------------- 1 | #define IDR_VERSION1 1 2 | 3 | IDR_VERSION1 VERSIONINFO 4 | FILEVERSION 1,0,0,0 5 | PRODUCTVERSION 1,0,0,0 6 | FILEOS 0x00000004 7 | FILETYPE 0x00000002 8 | BEGIN 9 | BLOCK "StringFileInfo" 10 | BEGIN 11 | BLOCK "080404B0" 12 | BEGIN 13 | VALUE "FileVersion", "1.0.0.0\0" 14 | VALUE "ProductVersion", "1.0.0.0\0" 15 | VALUE "CompanyName", "AmaF\0" 16 | VALUE "FileDescription", "Yuka Script portable version plugin for lnedit.\0" 17 | VALUE "InternalName", "yukapsp\0" 18 | VALUE "OriginalFilename", "yukapsp.mel\0" 19 | VALUE "ProductName", "YukaScript PSP verion Editor\0" 20 | VALUE "Format", ".yks\0" 21 | END 22 | END 23 | BLOCK "VarFileInfo" 24 | BEGIN 25 | VALUE "Translation", 0x0804, 0x04B0 26 | END 27 | END 28 | 29 | -------------------------------------------------------------------------------- /lnMels/yuka_script_psp/yukapsp.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnMels/yuka_script_psp/yukapsp.asm -------------------------------------------------------------------------------- /lnMels/yuka_script_psp/yukapsp.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetText 3 | ModifyLine 4 | Release 5 | Match 6 | PreProc 7 | SaveText 8 | SetLine 9 | InitInfo -------------------------------------------------------------------------------- /lnMels/yuka_script_psp/yukapsp.inc: -------------------------------------------------------------------------------- 1 | include \masm32\include\windows.inc 2 | include \masm32\include\masm32.inc 3 | include \masm32\include\gdi32.inc 4 | include \masm32\include\user32.inc 5 | include \masm32\include\kernel32.inc 6 | include \masm32\include\Comctl32.inc 7 | include \masm32\include\comdlg32.inc 8 | include \masm32\include\shell32.inc 9 | include \masm32\include\oleaut32.inc 10 | include \masm32\include\msvcrt.inc 11 | include \masm32\include\shlwapi.inc 12 | include \masm32\macros\macros.asm 13 | include \masm32\macros\strings.mac 14 | 15 | includelib \masm32\lib\masm32.lib 16 | includelib \masm32\lib\gdi32.lib 17 | includelib \masm32\lib\user32.lib 18 | includelib \masm32\lib\kernel32.lib 19 | includelib \masm32\lib\Comctl32.lib 20 | includelib \masm32\lib\comdlg32.lib 21 | includelib \masm32\lib\shell32.lib 22 | includelib \masm32\lib\oleaut32.lib 23 | includelib \masm32\lib\shlwapi.lib 24 | includelib \masm32\lib\msvcrt.lib 25 | 26 | include \masm32\lneditor\export.inc 27 | include \masm32\lneditor\rsrc.inc 28 | include \masm32\lneditor\plugin.inc 29 | include \masm32\lneditor\config.inc 30 | 31 | includelib \masm32\lneditor\lnedit.lib 32 | 33 | ModifyLine proto :dword,:dword 34 | SaveText proto :dword 35 | Release proto :dword 36 | _memcpy proto 37 | _IsEncode proto :dword 38 | _Encode proto :dword,:dword 39 | _CmpStrOut proto :dword 40 | 41 | YukaStruct struct 42 | lpRes dd ? 43 | nResLen dd ? 44 | lpPrg dd ? 45 | nPrgLen dd ? 46 | lpCmd dd ? 47 | nCmdLen dd ? 48 | lpUnk dd ? 49 | nUnkLen dd ? 50 | nUnkVals dd 3 dup (?) 51 | YukaStruct ends 52 | 53 | YukaHeader struct 54 | Magic db 8 dup (?) 55 | Version dd ? 56 | HeaderLen dd ? 57 | Resv dd ? 58 | ResOff dd ? 59 | ResSize dd ? 60 | PrgOff dd ? 61 | PrgCount dd ? 62 | CmdOff dd ? 63 | CmdCount dd ? 64 | UnkOff dd ? 65 | UnkCount dd ? 66 | UnkVals dd 3 dup (?) 67 | YukaHeader ends 68 | 69 | .data? 70 | hInstance dd ? 71 | hGlobalHeap dd ? 72 | 73 | .data 74 | szStrOut db 'StrOut',0 75 | szStrOutNWC db 'StrOutNW',0 76 | 77 | szHeader db 'yks',0,'1.0',0,1,0,0,0,40h,0,0,0,0,0,0,0 78 | 79 | 80 | -------------------------------------------------------------------------------- /lnedit.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnedit.asm -------------------------------------------------------------------------------- /lnedit.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnedit.inc -------------------------------------------------------------------------------- /lnedit.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnedit.ini -------------------------------------------------------------------------------- /lnrc.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnrc.aps -------------------------------------------------------------------------------- /lnrc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/lnrc.rc -------------------------------------------------------------------------------- /log.asm: -------------------------------------------------------------------------------- 1 | 2 | .data 3 | TW0 'log.txt', szLogFileName 4 | dbUBOM db 0ffh,0feh 5 | TW0 '[%s] %s', szWltMB 6 | TW0 "[%s]\t%d/%d/%d %02d:%02d:%02d\t", szWltTime 7 | TW0 'Unknown error.', szWltUnkError 8 | 9 | TW0 'Can\-t load %s. %s\n', szWltLoadMelErr 10 | TW0 'This is not an available MEL.',szWltEMel1 11 | TW0 'Version too low.',szWltEMel2 12 | 13 | TW0 'Update: %s %s\n', szWltUpdateErr 14 | TW0 'Can\-t download the list file.', szWltEUpdate1 15 | TW0 'Can\-t download the file:', szWltEUpdate2 16 | TW0 'File check failed:', szWltEUpdate3 17 | TW0 'Can\-t access orignal file:', szWltEUpdate4 18 | TW0 'File updated:', szWltEUpdateSuccess 19 | 20 | TW0 'An error has occurred while importing %s. %s\n', szWltBImpErr 21 | TW0 'Line %d can\-t be committed to the plugin.', szWltBImpErr2 22 | TW 'File do not match the plugin ', szWltEImp1 23 | TW0 'or errors occurred when match.', __fagaef 24 | TW0 'Can\-t make the new Mark Table cuz nomem.', szWltEImp2 25 | 26 | TW0 'Can\-t load the file.', szWltEFileLoad 27 | TW0 'Can\-t get text in the file.', szWltEGetText 28 | TW0 'Can\-t save the file.', szWltESaveText 29 | TW0 'Can\-t make the string list from the stream.', szWltEMakeList 30 | 31 | 32 | TW0 'Not enough memory.',szWltEMem1 33 | TW0 'Mem access error.', szWltEMem2 34 | TW0 'There is not enough buff.', szWltEMem3 35 | TW0 'File access error.', szWltEFileAccess 36 | TW0 'Fatal Error.', szWltEFatal 37 | TW0 'Wrong format.', szWltEFormat 38 | TW0 'Can\-t create/open file.', szWltEFileCreate 39 | TW0 'Can\-t read file.', szWltEFileRead 40 | TW0 'Can\-t write file.', szWltEFileWrite 41 | 42 | TW0 'Invalid parameter.', szWltEPara 43 | TW0 'An error has occurred in the plugin.', szWltEPlugin 44 | TW0 'Failed to analysis the script.', szWltEAnaFailed 45 | 46 | TW0 'The line is not exist.', szWltELineExist 47 | TW0 'The line is too long', szWltELineLong 48 | TW0 'The Code Page operation failed', szWltECode 49 | TW0 'Lines in left and right is not match.', szWltELineMatch 50 | TW0 'The line is denied by plugin.', szWltELineDenied 51 | 52 | 53 | .data 54 | align 4 55 | pWltError1 dd 0,offset szWltEMem1,offset szWltEMem2,offset szWltEMem3,offset szWltEFileAccess,offset szWltEFatal,offset szWltEFormat 56 | dd offset szWltEFileCreate,offset szWltEFileRead,offset szWltEFileWrite,offset szWltEPara,offset szWltEPlugin,offset szWltEAnaFailed 57 | pWltError2 dd offset szWltELineExist,offset szWltELineLong,offset szWltECode,offset szWltELineMatch,offset szWltELineDenied 58 | 59 | .code 60 | 61 | _OpenLog proc 62 | invoke CreateFileW,offset szLogFileName,GENERIC_WRITE,FILE_SHARE_READ or FILE_SHARE_WRITE,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0 63 | mov hLogFile,eax 64 | .if eax==-1 65 | invoke CreateFileW,offset szLogFileName,GENERIC_WRITE,FILE_SHARE_READ or FILE_SHARE_WRITE,0,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0 66 | .if eax==-1 && !(nUIStatus&UIS_CONSOLE) 67 | mov eax,IDS_LOGFILEOPENNOT 68 | invoke _GetConstString 69 | invoke MessageBoxW,0,eax,0,MB_OK or MB_ICONERROR 70 | ret 71 | .endif 72 | mov hLogFile,eax 73 | invoke WriteFile,eax,offset dbUBOM,2,offset dwTemp,0 74 | .endif 75 | invoke SetFilePointer,hLogFile,0,0,FILE_END 76 | ret 77 | _OpenLog endp 78 | 79 | _GetGeneralErrorString proc _nType 80 | mov ecx,_nType 81 | .if ecx==-1 82 | mov eax,offset szWltUnkError 83 | ret 84 | .endif 85 | .if ecx<100h 86 | lea edx,pWltError1 87 | mov eax,[edx+ecx*4] 88 | .else 89 | lea edx,pWltError2 90 | sub ecx,100h 91 | mov eax,[edx+ecx*4] 92 | .endif 93 | ret 94 | _GetGeneralErrorString endp 95 | 96 | _GetLogString proc uses ebx _nType,_lpszName,para1,para2 97 | LOCAL @nowtime:SYSTEMTIME 98 | LOCAL @lpszLog 99 | invoke HeapAlloc,hGlobalHeap,0,MAX_STRINGLEN 100 | test eax,eax 101 | jz _ExGLS 102 | mov @lpszLog,eax 103 | .if hLogFile!=-1 && hLogFile 104 | invoke GetLocalTime,addr @nowtime 105 | xor eax,eax 106 | xor ecx,ecx 107 | mov cx,@nowtime.wSecond 108 | push ecx 109 | mov ax,@nowtime.wMinute 110 | push eax 111 | mov cx,@nowtime.wHour 112 | push ecx 113 | mov ax,@nowtime.wYear 114 | push eax 115 | mov cx,@nowtime.wDay 116 | push ecx 117 | mov ax,@nowtime.wMonth 118 | push eax 119 | push _lpszName 120 | push offset szWltTime 121 | push @lpszLog 122 | call wsprintfW 123 | add esp,36 124 | mov ecx,@lpszLog 125 | lea ebx,[ecx+eax*2] 126 | mov eax,_nType 127 | .if eax<10000h 128 | invoke _GetGeneralErrorString,_nType 129 | mov para1,eax 130 | invoke lstrcpyW,ebx,eax 131 | invoke lstrcatW,ebx,offset szCRSymbol 132 | invoke lstrlenW,para1 133 | .elseif eax==WLT_CUSTOM 134 | invoke lstrcpyW,ebx,para1 135 | .elseif eax==WLT_BATCHIMPERR 136 | invoke wsprintfW,ebx,offset szWltBImpErr,para1,para2 137 | .elseif EAX==WLT_LOADMELERR 138 | invoke wsprintfW,ebx,offset szWltLoadMelErr,para1,para2 139 | .elseif eax==WLT_UPDATEERR 140 | invoke wsprintfW,ebx,offset szWltUpdateErr,para1,para2 141 | .endif 142 | .endif 143 | mov eax,@lpszLog 144 | _ExGLS: 145 | ret 146 | _GetLogString endp 147 | 148 | _OutputMessage proc _nType,_lpszName,para1,para2 149 | LOCAL @szStr[MAX_STRINGLEN]:byte 150 | .if nUIStatus & UIS_CONSOLE 151 | .if _nType<10000h 152 | invoke _GetGeneralErrorString,_nType 153 | invoke lstrcpyW,addr @szStr,eax 154 | invoke lstrcatW,addr @szStr,offset szCRSymbol 155 | invoke lstrlenW,addr @szStr 156 | invoke WriteConsoleW,hStdOutput,addr @szStr,eax,offset dwTemp,0 157 | .endif 158 | .else ;UIS_WINDOW 159 | .if nUIStatus & UIS_BUSY 160 | invoke _WriteLog,_nType,_lpszName,para1,para2 161 | .else ;UIS_IDLE 162 | mov eax,_nType 163 | .if eax<10000h 164 | invoke _GetGeneralErrorString,_nType 165 | invoke lstrcpyW,addr @szStr,eax 166 | .elseif eax==WLT_CUSTOM 167 | invoke lstrcpyW,addr @szStr,para1 168 | .elseif eax==WLT_LOADMELERR 169 | invoke wsprintfW,addr @szStr,offset szWltLoadMelErr,para1,para2 170 | .elseif eax==WLT_BATCHIMPERR 171 | invoke wsprintfW,addr @szStr,offset szWltBImpErr,para1,para2 172 | .elseif eax==WLT_UPDATEERR 173 | invoke wsprintfW,addr @szStr,offset szWltUpdateErr,para1,para2 174 | .endif 175 | invoke MessageBoxW,hWinMain,addr @szStr,_lpszName,MB_OK or MB_ICONINFORMATION 176 | .endif 177 | .endif 178 | ret 179 | _OutputMessage endp 180 | 181 | _WriteLog proc uses ebx _nType,_lpszName,para1,para2 182 | invoke _GetLogString,_nType,_lpszName,para1,para2 183 | mov ebx,eax 184 | .if ebx 185 | invoke lstrlenW,ebx 186 | shl eax,1 187 | invoke WriteFile,hLogFile,ebx,eax,offset dwTemp,0 188 | invoke HeapFree,hGlobalHeap,0,ebx 189 | .endif 190 | ret 191 | _WriteLog endp -------------------------------------------------------------------------------- /macros.inc: -------------------------------------------------------------------------------- 1 | ;_debug equ 1 2 | 3 | ABREAK macro 4 | ifdef _debug 5 | int 3 6 | endif 7 | endm 8 | 9 | TIMER macro 10 | rdtsc 11 | mov dbTimesTemp,eax 12 | mov dword ptr [dbTimesTemp+4],edx 13 | endm 14 | 15 | TIMERE macro 16 | rdtsc 17 | sub eax,dbTimesTemp 18 | sbb edx,dword ptr [dbTimesTemp+4] 19 | endm 20 | 21 | .data? 22 | dbTimesTemp dd 2 dup(?) 23 | dbTimes dd 64 dup(?) 24 | 25 | szTimes db 32 dup(?) 26 | 27 | 28 | ; TIMERE 29 | ; invoke wsprintfW,offset szTimes,$CTW0("%d %d"),edx,eax 30 | ; invoke MessageBoxW,hWinMain,offset szTimes,0,0 31 | -------------------------------------------------------------------------------- /makedbg.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | call varsasm.bat 3 | if %PATH_ERROR%==1 goto errpath 4 | 5 | rc.exe /v lnrc.rc 6 | if errorlevel 1 goto errres 7 | cvtres.exe /machine:ix86 lnrc.res 8 | if errorlevel 1 goto errres 9 | 10 | if exist lnedit.obj del lnedit.obj 11 | 12 | if exist lnedit.pdb del lnedit.pdb 13 | if exist lnedit.ilk del lnedit.ilk 14 | 15 | : ----------------------------------------- 16 | : assemble lnrc.asm into an OBJ file 17 | : ----------------------------------------- 18 | 19 | Ml.exe /c /coff /Cp /Zi /D "_LN_DEBUG" lnedit.asm 20 | if errorlevel 1 goto errasm 21 | 22 | : -------------------------------------------------- 23 | : link the main OBJ file with the resource OBJ file 24 | : -------------------------------------------------- 25 | 26 | Link.exe /ltcg /SUBSYSTEM:WINDOWS /DEBUG /DEBUGTYPE:CV /DEF:export.def uuid.lib msvcrt.lib msvcprt.lib oldnames.lib lnedit.obj lnrc.obj lnedit2.lib 27 | if errorlevel 1 goto errlink 28 | dir lnedit.* 29 | incver.exe 30 | goto TheEnd 31 | 32 | :errpath 33 | echo. 34 | echo Please set the correct path in varsasm.bat! 35 | echo. 36 | goto TheEnd 37 | 38 | :errlink 39 | : ---------------------------------------------------- 40 | : display message if there is an error during linking 41 | : ---------------------------------------------------- 42 | echo. 43 | echo There has been an error while linking this lnedit. 44 | echo. 45 | goto TheEnd 46 | 47 | :errasm 48 | : ----------------------------------------------------- 49 | : display message if there is an error during assembly 50 | : ----------------------------------------------------- 51 | echo. 52 | echo There has been an error while assembling this lnedit. 53 | echo. 54 | goto TheEnd 55 | 56 | :errres 57 | echo. 58 | echo There has been an error while compiling the resource. 59 | echo. 60 | goto TheEnd 61 | 62 | :TheEnd 63 | 64 | pause 65 | -------------------------------------------------------------------------------- /makerel.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | call varsasm.bat 3 | if %PATH_ERROR%==1 goto errpath 4 | 5 | rc.exe /v lnrc.rc 6 | if errorlevel 1 goto errres 7 | cvtres.exe /machine:ix86 lnrc.res 8 | if errorlevel 1 goto errres 9 | 10 | if exist lnedit.obj del lnedit.obj 11 | if exist lnedit.exe del lnedit.exe 12 | if exist lnedit.pdb del lnedit.pdb 13 | if exist lnedit.ilk del lnedit.ilk 14 | 15 | : ----------------------------------------- 16 | : assemble lnedit.asm into an OBJ file 17 | : ----------------------------------------- 18 | Ml.exe /c /coff lnedit.asm 19 | if errorlevel 1 goto errasm 20 | 21 | : -------------------------------------------------- 22 | : link the main OBJ file with the resource OBJ file 23 | : -------------------------------------------------- 24 | Link.exe /ltcg /SUBSYSTEM:WINDOWS /DEF:export.def uuid.lib msvcrt.lib msvcprt.lib oldnames.lib lnedit.obj lnrc.obj lnedit2.lib 25 | if errorlevel 1 goto errlink 26 | dir lnedit.* 27 | copy lnedit.exe bin\lnedit.exe 28 | goto TheEnd 29 | 30 | :errpath 31 | echo. 32 | echo Please set the correct path in varsasm.bat! 33 | echo. 34 | goto TheEnd 35 | 36 | :errlink 37 | : ---------------------------------------------------- 38 | : display message if there is an error during linking 39 | : ---------------------------------------------------- 40 | echo. 41 | echo There has been an error while linking. 42 | echo. 43 | goto TheEnd 44 | 45 | 46 | :errasm 47 | : ----------------------------------------------------- 48 | : display message if there is an error during assembly 49 | : ----------------------------------------------------- 50 | echo. 51 | echo There has been an error while assembling. 52 | echo. 53 | goto TheEnd 54 | 55 | :errres 56 | echo. 57 | echo There has been an error while compiling the resource. 58 | echo. 59 | goto TheEnd 60 | 61 | :TheEnd 62 | 63 | pause 64 | -------------------------------------------------------------------------------- /mel/CatSystem2.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/CatSystem2.mel -------------------------------------------------------------------------------- /mel/Circus.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/Circus.mel -------------------------------------------------------------------------------- /mel/Circus2.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/Circus2.mel -------------------------------------------------------------------------------- /mel/ExHIBIT.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/ExHIBIT.mel -------------------------------------------------------------------------------- /mel/GsWin.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/GsWin.mel -------------------------------------------------------------------------------- /mel/InnocentGrey.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/InnocentGrey.mel -------------------------------------------------------------------------------- /mel/M2Psb.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/M2Psb.mel -------------------------------------------------------------------------------- /mel/Musica.mef: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/Musica.mef -------------------------------------------------------------------------------- /mel/N2System.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/N2System.mel -------------------------------------------------------------------------------- /mel/Stuff.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/Stuff.mel -------------------------------------------------------------------------------- /mel/Xuse.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/Xuse.mel -------------------------------------------------------------------------------- /mel/advwin32.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/advwin32.mel -------------------------------------------------------------------------------- /mel/bgi.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/bgi.mel -------------------------------------------------------------------------------- /mel/ism.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/ism.mel -------------------------------------------------------------------------------- /mel/j_list.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/j_list.mel -------------------------------------------------------------------------------- /mel/lios.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/lios.mel -------------------------------------------------------------------------------- /mel/lucifen.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/lucifen.mel -------------------------------------------------------------------------------- /mel/majiro.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/majiro.mel -------------------------------------------------------------------------------- /mel/yuka.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/yuka.mel -------------------------------------------------------------------------------- /mel/yukapsp.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/yukapsp.mel -------------------------------------------------------------------------------- /mel/yuris.mel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/mel/yuris.mel -------------------------------------------------------------------------------- /menuedit.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/menuedit.asm -------------------------------------------------------------------------------- /menuview.asm: -------------------------------------------------------------------------------- 1 | .code 2 | 3 | ; 4 | _SetFont proc 5 | invoke DialogBoxParamW,hInstance,IDD_FONT,hWinMain,offset _WndFontProc,0 6 | ret 7 | _SetFont endp 8 | 9 | ; 10 | _WndFontProc proc uses ebx edi esi,hwnd,uMsg,wParam,lParam 11 | LOCAL @cf:CHOOSEFONT 12 | LOCAL @cc:CHOOSECOLOR 13 | LOCAL @custcolor[16]:COLORREF 14 | mov eax,uMsg 15 | .if eax==WM_COMMAND 16 | mov eax,wParam 17 | .if eax==IDC_FONT_LISTF 18 | lea esi,dbConf+_Configs.listFont 19 | lea ebx,hFontList 20 | @@: 21 | lea edi,@cf 22 | mov ecx,sizeof @cf 23 | xor eax,eax 24 | rep stosb 25 | mov @cf.lStructSize,sizeof @cf 26 | mov @cf.lpLogFont,esi 27 | mov @cf.Flags,CF_TTONLY or CF_INITTOLOGFONTSTRUCT or CF_NOVERTFONTS or CF_SCREENFONTS 28 | invoke ChooseFontW,addr @cf 29 | .if eax 30 | invoke CreateFontIndirectW,esi 31 | .if eax 32 | mov [ebx],eax 33 | .if ebx==offset hFontEdit 34 | mov ebx,eax 35 | invoke SendMessageW,hEdit1,WM_SETFONT,ebx,FALSE 36 | invoke SendMessageW,hEdit2,WM_SETFONT,ebx,FALSE 37 | .endif 38 | jmp _RefreshWFP 39 | .endif 40 | .endif 41 | .elseif eax==IDC_FONT_EDITF 42 | lea esi,dbConf+_Configs.editFont 43 | lea ebx,hFontEdit 44 | jmp @B 45 | .elseif eax==IDC_FONT_LISTCD 46 | lea esi,dbConf+_Configs.TextColorDefault 47 | @@: 48 | lea edi,@cc 49 | mov ecx,sizeof @cc 50 | xor eax,eax 51 | rep stosb 52 | lea edi,@custcolor 53 | mov ecx,16 54 | mov eax,0ffffffh 55 | rep stosd 56 | mov eax,[esi] 57 | mov @cc.rgbResult,eax 58 | mov @cc.lStructSize,sizeof @cc 59 | mov eax,hwnd 60 | mov @cc.hwndOwner,eax 61 | lea eax,@custcolor 62 | mov @cc.lpCustColors,eax 63 | mov @cc.Flags,CC_FULLOPEN or CC_RGBINIT 64 | invoke ChooseColorW,addr @cc 65 | .if eax 66 | mov eax,@cc.rgbResult 67 | mov [esi],eax 68 | _RefreshWFP: 69 | invoke SendMessageW,hList1,WM_SETREDRAW,FALSE,0 70 | invoke SendMessageW,hList2,WM_SETREDRAW,FALSE,0 71 | mov ebx,FileInfo1.nLine 72 | .while ebx 73 | invoke _CalHeight,ebx 74 | push eax 75 | invoke SendMessageW,hList1,LB_SETITEMHEIGHT,ebx,eax 76 | push ebx 77 | push LB_SETITEMHEIGHT 78 | push hList2 79 | call SendMessageW 80 | dec ebx 81 | .endw 82 | invoke SendMessageW,hList1,WM_SETREDRAW,TRUE,0 83 | invoke SendMessageW,hList2,WM_SETREDRAW,TRUE,0 84 | invoke InvalidateRect,hList1,0,TRUE 85 | invoke InvalidateRect,hList2,0,TRUE 86 | invoke InvalidateRect,hEdit1,0,TRUE 87 | invoke InvalidateRect,hEdit2,0,TRUE 88 | .endif 89 | .elseif eax==IDC_FONT_LISTCS 90 | lea esi,dbConf+_Configs.TextColorSelected 91 | jmp @B 92 | .elseif eax==IDC_FONT_EDITC 93 | lea esi,dbConf+_Configs.TextColorEdit 94 | jmp @B 95 | .elseif eax==IDCANCEL 96 | invoke EndDialog,hwnd,0 97 | .endif 98 | .elseif eax==WM_CLOSE 99 | invoke EndDialog,hwnd,0 100 | .endif 101 | xor eax,eax 102 | ret 103 | _WndFontProc endp 104 | 105 | ; 106 | _SetBackground proc 107 | LOCAL @lpStr 108 | mov eax,IDS_SELECTBKGND 109 | invoke _GetConstString 110 | invoke _OpenFileDlg,offset szImageFilter,addr @lpStr,offset szNULL,eax,0 111 | or eax,eax 112 | je _ExSBG 113 | invoke lstrcpyW,dbConf+_Configs.lpBackName,@lpStr 114 | invoke HeapFree,hGlobalHeap,0,@lpStr 115 | invoke DeleteDC,hBackDC 116 | invoke DeleteObject,hBackBmp 117 | mov hBackDC,0 118 | invoke RedrawWindow,hWinMain,0,0,RDW_ERASE or RDW_INVALIDATE 119 | _ExSBG: 120 | ret 121 | _SetBackground endp 122 | 123 | ; 124 | _CustomUI proc 125 | invoke _Dev 126 | ret 127 | _CustomUI endp 128 | 129 | ; 130 | _RecoverUI proc 131 | invoke _Dev 132 | ret 133 | _RecoverUI endp 134 | -------------------------------------------------------------------------------- /misc.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/misc.asm -------------------------------------------------------------------------------- /newUI.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/newUI.asm -------------------------------------------------------------------------------- /plugin.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/plugin.inc -------------------------------------------------------------------------------- /progbar.asm: -------------------------------------------------------------------------------- 1 | .data? 2 | bProgBarStopping1 dd ? 3 | bProgBarStopping2 dd ? 4 | nProgBarLine dd ? 5 | hProgBarWindow dd ? 6 | 7 | .code 8 | 9 | _TimerThreadPB proc _lparam 10 | .while !bProgBarStopping2 && hProgBarWindow 11 | invoke Sleep,200 12 | invoke SendDlgItemMessageW,hProgBarWindow,IDC_PRBAR_BAR,PBM_SETPOS,nProgBarLine,0 13 | .endw 14 | ret 15 | _TimerThreadPB endp 16 | 17 | _WndProgBarProc proc uses edi esi ebx hwnd,uMsg,wParam,lParam 18 | mov eax,uMsg 19 | .if eax==WM_COMMAND 20 | .if wParam==IDC_PRBAR_STOP 21 | mov bProgBarStopping1,1 22 | mov bProgBarStopping2,1 23 | invoke EndDialog,hwnd,0 24 | .endif 25 | .elseif eax==WM_INITDIALOG 26 | mov eax,hwnd 27 | mov hProgBarWindow,eax 28 | mov esi,lParam 29 | .if esi 30 | .if !_ProgBarInfo.bNoStop[esi] 31 | invoke SendDlgItemMessageW,hwnd,IDC_PRBAR_STOP,WM_ENABLE,FALSE,0 32 | .endif 33 | .if _ProgBarInfo.lpszTitle[esi] 34 | invoke SetWindowTextW,hwnd,_ProgBarInfo.lpszTitle[esi] 35 | .endif 36 | .endif 37 | .if bProgBarStopping1 38 | invoke EndDialog,hwnd,0 39 | .endif 40 | invoke CreateThread,0,0,offset _TimerThreadPB,0,0,0 41 | .elseif eax==WM_DESTROY 42 | mov hProgBarWindow,0 43 | .endif 44 | xor eax,eax 45 | ret 46 | _WndProgBarProc endp -------------------------------------------------------------------------------- /record.asm: -------------------------------------------------------------------------------- 1 | RECORD_VER EQU 1 2 | 3 | .code 4 | 5 | _ReadRec proc uses ebx edi _lpszName,_nType,_nLine 6 | LOCAL @str[MAX_STRINGLEN]:byte 7 | LOCAL @hFile 8 | LOCAL @dbHdr[sizeof _FileRec]:byte 9 | ; mov dword ptr [@dbHdr+_FileRec.nCharSet1],0 10 | ; mov dword ptr [@dbHdr+_FileRec.nCharSet2],0 11 | lea ebx,@str 12 | invoke lstrcpyW,ebx,lpszConfigFile 13 | invoke _DirBackW,ebx 14 | invoke _DirCatW,ebx,offset szRecDir 15 | invoke SetCurrentDirectoryW,ebx 16 | or eax,eax 17 | je _Err2 18 | invoke lstrcpyW,ebx,_lpszName 19 | invoke lstrcatW,ebx,offset szRecExt 20 | invoke _DirFileNameW,ebx 21 | or eax,eax 22 | je _Err2 23 | invoke CreateFileW,eax,GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0 24 | cmp eax,-1 25 | je _Err2 26 | mov @hFile,eax 27 | lea edi,@dbHdr 28 | invoke ReadFile,@hFile,edi,sizeof _FileRec,offset dwTemp,0 29 | assume edi:ptr _FileRec 30 | 31 | cmp [edi].szMagic,'CERM' 32 | jne _Err2 33 | cmp [edi].nVer,RECORD_VER 34 | jB _Err2 35 | 36 | .if _nType==REC_MARKTABLE 37 | mov eax,[edi].nLenMT 38 | .if lpMarkTable && eax==_nLine 39 | invoke SetFilePointer,@hFile,[edi].nOffsetMT,0,FILE_BEGIN 40 | invoke ReadFile,@hFile,lpMarkTable,[edi].nLenMT,offset dwTemp,0 41 | .endif 42 | invoke CloseHandle,@hFile 43 | .elseif _nType==REC_CHARSET 44 | invoke CloseHandle,@hFile 45 | mov eax,[edi].nCharSet1 46 | mov ecx,[edi].nCharSet2 47 | .elseif _nType==REC_LINEPOS 48 | invoke CloseHandle,@hFile 49 | mov eax,[edi].nPos 50 | .endif 51 | assume edi:ptr _nothing 52 | _ErrRR: 53 | ret 54 | _Err2: 55 | xor eax,eax 56 | xor ecx,ecx 57 | ret 58 | _ReadRec endp 59 | 60 | _WriteRec proc uses ebx edi 61 | LOCAL @str[MAX_STRINGLEN]:byte 62 | LOCAL @hFile 63 | LOCAL @dbHdr[sizeof _FileRec]:byte 64 | lea ebx,@str 65 | invoke lstrcpyW,ebx,lpszConfigFile 66 | invoke _DirBackW,ebx 67 | invoke SetCurrentDirectoryW,ebx 68 | or eax,eax 69 | je _ErrWR 70 | invoke _DirCatW,ebx,offset szRecDir 71 | invoke SetCurrentDirectoryW,ebx 72 | .if !eax 73 | invoke CreateDirectoryW,offset szRecDir,0 74 | invoke SetCurrentDirectoryW,ebx 75 | or eax,eax 76 | je _ErrWR 77 | .endif 78 | invoke lstrcpyW,ebx,FileInfo1.lpszName 79 | invoke lstrcatW,ebx,offset szRecExt 80 | invoke _DirFileNameW,ebx 81 | or eax,eax 82 | je _ErrWR 83 | invoke CreateFileW,eax,GENERIC_WRITE,FILE_SHARE_READ,0,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0 84 | cmp eax,-1 85 | je _ErrWR 86 | mov @hFile,eax 87 | lea edi,@dbHdr 88 | mov ecx,sizeof _FileRec/4 89 | xor eax,eax 90 | rep stosd 91 | lea edi,@dbHdr 92 | assume edi:ptr _FileRec 93 | mov [edi].nPos,0 94 | invoke SendMessageW,hList1,LB_GETCURSEL,0,1 95 | .if eax!=-1 96 | mov [edi].nPos,eax 97 | .endif 98 | mov [edi].szMagic,'CERM' 99 | mov [edi].nVer,RECORD_VER 100 | .if lpMarkTable 101 | mov [edi].nOffsetMT,sizeof _FileRec 102 | .else 103 | mov [edi].nOffsetMT,0 104 | .endif 105 | mov eax,FileInfo1.nLine 106 | mov ecx,FileInfo1.nCharSet 107 | mov [edi].nLenMT,eax 108 | mov [edi].nCharSet1,ecx 109 | mov eax,FileInfo2.nCharSet 110 | mov [edi].nCharSet2,eax 111 | invoke WriteFile,@hFile,edi,sizeof _FileRec,offset dwTemp,0 112 | .if lpMarkTable 113 | invoke WriteFile,@hFile,lpMarkTable,FileInfo1.nLine,offset dwTemp,0 114 | invoke SetEndOfFile,@hFile 115 | .endif 116 | invoke CloseHandle,@hFile 117 | mov eax,1 118 | ret 119 | _ErrWR: 120 | xor eax,eax 121 | ret 122 | _WriteRec endp 123 | -------------------------------------------------------------------------------- /update.asm: -------------------------------------------------------------------------------- 1 | UPDATE_LIST_VERSION equ 1 2 | 3 | .data 4 | bIsUpdatingProgram dd ? 5 | TW 'http://lneditor.googlecode.com/', szGoogleCode 6 | TW0 'svn/trunk/ lneditor/', 7 | TW0 'bin/update.lst', szUpdateListFile 8 | 9 | .code 10 | 11 | _UpdateThd proc uses esi edi ebx _lparam 12 | LOCAL @szUrl[1024]:word 13 | LOCAL @szFileName[1024]:word 14 | LOCAL @ppos 15 | LOCAL @lpList,@nListSize,@nListFile,@lpTempName,@lpNewFileName 16 | LOCAL @FInfo:_UpdateFileInfo 17 | LOCAL @ft:FILETIME 18 | LOCAL @st:SYSTEMTIME,@st2:SYSTEMTIME 19 | 20 | invoke GetFileTime,hLogFile,0,0,addr @ft 21 | invoke FileTimeToSystemTime,addr @ft,addr @st 22 | invoke GetSystemTime,addr @st2 23 | mov ax,@st2.wDay 24 | cmp ax,@st.wDay 25 | je _ExUT 26 | mov bIsUpdatingProgram,1 27 | 28 | lea ebx,@szUrl 29 | invoke lstrcpyW,ebx,offset szGoogleCode 30 | invoke lstrcatW,ebx,offset szUpdateListFile 31 | invoke URLDownloadToCacheFileW,0,ebx,addr @szFileName,1024,0,0 32 | .if eax!=S_OK 33 | invoke _WriteLog,WLT_UPDATEERR,offset szInnerName,offset szWltEUpdate1,offset szNULL 34 | jmp _ExUT 35 | .endif 36 | 37 | invoke CreateFileW,addr @szFileName,GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0 38 | cmp eax,-1 39 | je _ExUT 40 | mov ebx,eax 41 | invoke GetFileSize,ebx,0 42 | mov @nListSize,eax 43 | invoke HeapAlloc,hGlobalHeap,0,eax 44 | .if !eax 45 | invoke CloseHandle,ebx 46 | jmp _ExUT 47 | .endif 48 | mov @lpList,eax 49 | invoke ReadFile,ebx,@lpList,@nListSize,offset dwTemp,0 50 | xchg eax,ebx 51 | invoke CloseHandle,eax 52 | invoke DeleteFileW,addr @szFileName 53 | test ebx,ebx 54 | jz _Ex2UT 55 | 56 | mov esi,@lpList 57 | .if dword ptr [esi]!=UPDATE_LIST_VERSION 58 | mov eax,IDS_LISTFILEVERSIONTOOLOW 59 | invoke _GetConstString 60 | invoke _OutputMessage,WLT_UPDATEERR,offset szInnerName,eax,offset szNULL 61 | jmp _Ex2UT 62 | .endif 63 | mov eax,[esi+4] 64 | add esi,8 65 | mov @nListFile,eax 66 | 67 | mov eax,lpArgTbl 68 | mov ebx,[eax] 69 | invoke lstrlenW,ebx 70 | lea edi,[ebx+eax*2] 71 | .while word ptr [edi]!='\' 72 | .break .if edi<=ebx 73 | sub edi,2 74 | .endw 75 | add edi,2 76 | sub edi,ebx 77 | mov @ppos,edi 78 | 79 | invoke HeapAlloc,hGlobalHeap,0,1024*2 80 | test eax,eax 81 | jz _Ex2UT 82 | mov @lpTempName,eax 83 | invoke HeapAlloc,hGlobalHeap,0,1024*2 84 | test eax,eax 85 | jz _Ex3UT 86 | mov @lpNewFileName,eax 87 | .while @nListFile 88 | mov @FInfo.lpszName,esi 89 | invoke lstrlenW,esi 90 | lea esi,[esi+eax*2+2] 91 | lea edi,@FInfo.lpszName+4 92 | mov ecx,sizeof _UpdateFileInfo-4 93 | rep movsb 94 | 95 | mov ecx,lpArgTbl 96 | lea ebx,@szFileName 97 | invoke lstrcpyW,ebx,[ecx] 98 | mov eax,@ppos 99 | add eax,ebx 100 | invoke lstrcpyW,eax,@FInfo.lpszName 101 | invoke CreateFileW,ebx,GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0 102 | .if eax==-1 103 | invoke GetLastError 104 | cmp eax,ERROR_FILE_NOT_FOUND 105 | je _DownFileUT 106 | jmp _MakePathUT 107 | .endif 108 | push eax 109 | lea ecx,@ft 110 | invoke GetFileTime,eax,0,0,ecx 111 | call CloseHandle 112 | mov eax,@FInfo.ftMTime.dwLowDateTime 113 | mov ecx,@FInfo.ftMTime.dwHighDateTime 114 | cmp ecx,@ft.dwHighDateTime 115 | jb _NextFileUT 116 | ja _DownFileUT 117 | cmp eax,@ft.dwLowDateTime 118 | jbe _NextFileUT 119 | ja _DownFileUT 120 | _MakePathUT: 121 | invoke _MakePath,addr @szFileName 122 | .if eax 123 | invoke CloseHandle,eax 124 | .endif 125 | _DownFileUT: 126 | lea edi,@szUrl 127 | invoke lstrcpyW,edi,offset szGoogleCode 128 | invoke lstrcatW,edi,@FInfo.lpszName 129 | invoke URLDownloadToCacheFileW,0,edi,@lpNewFileName,1024,0,0 130 | .if eax!=S_OK 131 | invoke lstrcpyW,edi,offset szGoogleCode 132 | invoke lstrcatW,edi,$CTW0('bin/') 133 | invoke lstrcatW,edi,@FInfo.lpszName 134 | invoke URLDownloadToCacheFileW,0,edi,@lpNewFileName,1024,0,0 135 | .if eax!=S_OK 136 | invoke _WriteLog,WLT_UPDATEERR,offset szInnerName,offset szWltEUpdate2,@FInfo.lpszName 137 | jmp _NextFileUT 138 | .endif 139 | .endif 140 | invoke _CheckFile,@lpNewFileName,addr @FInfo 141 | .if !eax 142 | invoke _WriteLog,WLT_UPDATEERR,offset szInnerName,offset szWltEUpdate3,@FInfo.lpszName 143 | invoke DeleteFileW,@lpNewFileName 144 | jmp _NextFileUT 145 | .else 146 | lea ebx,@szFileName 147 | invoke lstrcpyW,@lpTempName,ebx 148 | invoke lstrcatW,@lpTempName,$CTW0('.bak') 149 | invoke GetFileAttributesW,ebx 150 | .if eax!=-1 151 | invoke MoveFileExW,ebx,@lpTempName,MOVEFILE_REPLACE_EXISTING 152 | .if !eax 153 | _lbl2: 154 | invoke DeleteFileW,@lpNewFileName 155 | invoke _WriteLog,WLT_UPDATEERR,offset szInnerName,offset szWltEUpdate4,@FInfo.lpszName 156 | jmp _NextFileUT 157 | .endif 158 | .endif 159 | invoke MoveFileExW,@lpNewFileName,ebx,MOVEFILE_REPLACE_EXISTING or MOVEFILE_COPY_ALLOWED 160 | .if !eax 161 | invoke MoveFileExW,@lpTempName,ebx,MOVEFILE_REPLACE_EXISTING 162 | jmp _lbl2 163 | .endif 164 | invoke DeleteFileW,@lpTempName 165 | invoke DeleteFileW,@lpNewFileName 166 | invoke _WriteLog,WLT_UPDATEERR,offset szInnerName,offset szWltEUpdateSuccess,@FInfo.lpszName 167 | .endif 168 | _NextFileUT: 169 | dec @nListFile 170 | .endw 171 | _Ex4UT: 172 | invoke HeapFree,hGlobalHeap,0,@lpNewFileName 173 | _Ex3UT: 174 | invoke HeapFree,hGlobalHeap,0,@lpTempName 175 | _Ex2UT: 176 | invoke HeapFree,hGlobalHeap,0,@lpList 177 | _ExUT: 178 | invoke GetSystemTime,addr @st 179 | invoke SystemTimeToFileTime,addr @st,addr @ft 180 | invoke SetFileTime,hLogFile,0,0,addr @ft 181 | mov bIsUpdatingProgram,0 182 | ret 183 | _UpdateThd endp 184 | 185 | _CheckFile proc uses ebx _lpszName,_lpFInfo 186 | LOCAL @hFile,@lpFile 187 | LOCAL @nFileSize:LARGE_INTEGER 188 | invoke CreateFileW,_lpszName,GENERIC_READ,FILE_SHARE_READ or FILE_SHARE_WRITE,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0 189 | cmp eax,-1 190 | je _ErrCF 191 | mov @hFile,eax 192 | invoke GetFileSizeEx,@hFile,addr @nFileSize 193 | invoke HeapAlloc,hGlobalHeap,0,dword ptr @nFileSize 194 | .if !eax 195 | _lbl1: 196 | invoke CloseHandle,@hFile 197 | jmp _ErrCF 198 | .endif 199 | mov @lpFile,eax 200 | invoke ReadFile,@hFile,@lpFile,dword ptr @nFileSize,offset dwTemp,0 201 | mov ebx,eax 202 | invoke CloseHandle,@hFile 203 | .if !ebx 204 | invoke HeapFree,hGlobalHeap,0,@lpFile 205 | jmp _ErrCF 206 | .endif 207 | invoke _CalcCheckSum,@lpFile,dword ptr @nFileSize 208 | mov ebx,eax 209 | invoke HeapFree,hGlobalHeap,0,@lpFile 210 | mov ecx,_lpFInfo 211 | xor eax,eax 212 | cmp ebx,_UpdateFileInfo.nCheckSum[ecx] 213 | sete al 214 | ret 215 | _ErrCF: 216 | xor eax,eax 217 | ret 218 | _CheckFile endp 219 | -------------------------------------------------------------------------------- /varsasm.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem Set asm env vars. 3 | set "WINDDKDIR=D:\WinDDK\7600.16385.1" 4 | set "WINXPDDKDIR=F:\Software\VC6\2600" 5 | set "MASMPATH=\masm32" 6 | set "COMPILERPATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" rem Need ml.exe and link.exe in VC++10 7 | set "ADDITIONALDLLPATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE" rem Need mspdb100.dll and so on 8 | set "WINSDKPATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin" rem Need rc.exe 9 | 10 | set "LNEDITDIR=%CD%" 11 | 12 | if not exist "%WINDDKDIR%" goto ErrPath 13 | if not exist "%MASMPATH%" goto ErrPath 14 | if not exist "%COMPILERPATH%" goto ErrPath 15 | if not exist "%WINSDKPATH%" goto ErrPath 16 | 17 | set "LIB=%WINDDKDIR%\lib\wxp\i386;%WINDDKDIR%\lib\crt\i386;%MASMPATH%\lib" 18 | 19 | if exist "%WINXPDDKDIR%" set "LIB=%WINXPDDKDIR%\lib\wxp\i386;%LIB%" 20 | 21 | set "LIBPATH=%LIB%" 22 | 23 | set "INCLUDE=%MASMPATH%\include;%MASMPATH%\macros" 24 | 25 | set "PATH=%COMPILERPATH%;%ADDITIONALDLLPATH%;%WINSDKPATH%;%PATH%" 26 | 27 | set PATH_ERROR=0 28 | goto :eof 29 | 30 | :ErrPath 31 | set PATH_ERROR=1 32 | goto :eof -------------------------------------------------------------------------------- /ver.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/ver.txt -------------------------------------------------------------------------------- /wildchar.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regomne/lneditor/925356f553f7befb73d10437b54cbfd644af60b7/wildchar.asm -------------------------------------------------------------------------------- /xpmanifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 20 | 21 | 22 | --------------------------------------------------------------------------------