-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
229 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "../common.h" | ||
|
||
#if !_WIN64 | ||
extern "C" | ||
{ | ||
DllExport bool FOSEPlugin_Query(const MasterInterface* se, PluginInfo* info) | ||
{ | ||
info->name = ModName; | ||
info->infoVersion = PluginInfo::kInfoVersion; | ||
info->version = ModVersion; | ||
return true; | ||
} | ||
|
||
DllExport bool FOSEPlugin_Load(const MasterInterface* se) | ||
{ | ||
return true; | ||
} | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "../common.h" | ||
|
||
#if _WIN64 | ||
extern "C" | ||
{ | ||
DllExport bool F4SEPlugin_Query(const MasterInterface* se, PluginInfo* info) | ||
{ | ||
info->name = ModName; | ||
info->infoVersion = PluginInfo::kInfoVersion; | ||
info->version = ModVersion; | ||
return true; | ||
} | ||
|
||
DllExport bool F4SEPlugin_Load(const MasterInterface* se) | ||
{ | ||
return true; | ||
} | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "../common.h" | ||
|
||
#if !_WIN64 | ||
extern "C" | ||
{ | ||
DllExport bool NVSEPlugin_Query(const MasterInterface* se, PluginInfo* info) | ||
{ | ||
info->name = ModName; | ||
info->infoVersion = PluginInfo::kInfoVersion; | ||
info->version = ModVersion; | ||
return true; | ||
} | ||
|
||
DllExport bool NVSEPlugin_Load(const MasterInterface* se) | ||
{ | ||
return true; | ||
} | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "../common.h" | ||
|
||
#if !_WIN64 | ||
extern "C" | ||
{ | ||
DllExport bool OBSEPlugin_Query(const MasterInterface* se, PluginInfo* info) | ||
{ | ||
info->name = ModName; | ||
info->infoVersion = PluginInfo::kInfoVersion; | ||
info->version = ModVersion; | ||
return true; | ||
} | ||
|
||
DllExport bool OBSEPlugin_Load(const MasterInterface* se) | ||
{ | ||
return true; | ||
} | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "../common.h" | ||
|
||
#if !_WIN64 | ||
extern "C" | ||
{ | ||
DllExport bool SKSEPlugin_Query(const MasterInterface* skse, PluginInfo* info) | ||
{ | ||
info->name = ModName; | ||
info->infoVersion = PluginInfo::kInfoVersion;; | ||
info->version = ModVersion; | ||
return true; | ||
} | ||
|
||
DllExport bool SKSEPlugin_Load(const MasterInterface* skse) | ||
{ | ||
return true; | ||
} | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "../common.h" | ||
|
||
#if _WIN64 | ||
extern "C" | ||
{ | ||
DllExport bool SKSEPlugin_Query(const MasterInterface* se, PluginInfo* info) | ||
{ | ||
info->name = ModName; | ||
info->infoVersion = PluginInfo::kInfoVersion; | ||
info->version = ModVersion; | ||
return true; | ||
} | ||
|
||
DllExport bool SKSEPlugin_Load(const MasterInterface* se) | ||
{ | ||
return true; | ||
} | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#pragma once | ||
|
||
#define DllExport __declspec( dllexport ) | ||
|
||
#define ModName "FallrimPriority"; | ||
#define ModVersion 3; | ||
|
||
typedef unsigned char UInt8; //!< An unsigned 8-bit integer value | ||
typedef unsigned short UInt16; //!< An unsigned 16-bit integer value | ||
typedef unsigned long UInt32; //!< An unsigned 32-bit integer value | ||
typedef unsigned long long UInt64; //!< An unsigned 64-bit integer value | ||
typedef signed char SInt8; //!< A signed 8-bit integer value | ||
typedef signed short SInt16; //!< A signed 16-bit integer value | ||
typedef signed long SInt32; //!< A signed 32-bit integer value | ||
typedef signed long long SInt64; //!< A signed 64-bit integer value | ||
typedef float Float32; //!< A 32-bit floating point value | ||
typedef double Float64; //!< A 64-bit floating point value | ||
|
||
typedef UInt32 PluginHandle; // treat this as an opaque type | ||
|
||
struct PluginInfo | ||
{ | ||
enum | ||
{ | ||
kInfoVersion = 1 | ||
}; | ||
|
||
UInt32 infoVersion; | ||
const char* name; | ||
UInt32 version; | ||
}; | ||
|
||
struct MasterInterface | ||
{ | ||
UInt32 obseVersion; | ||
UInt32 oblivionVersion; | ||
UInt32 editorVersion; | ||
UInt32 isEditor; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@ REM Check DotNet installed | ||
@ WHERE dotnet >nul 2>nul | ||
@ IF %ERRORLEVEL% NEQ 0 goto DotNetNotFound | ||
|
||
@ REM Check DotNet-Script available in Path | ||
@ WHERE dotnet-script >nul 2>nul | ||
@ IF %ERRORLEVEL% NEQ 0 goto DotNetScriptNotFound | ||
|
||
@ REM Build the solution | ||
@ call build.bat | ||
|
||
@ REM Pack | ||
@ dotnet-script pack.csx | ||
|
||
@ exit /b | ||
|
||
@ REM ======================== | ||
@ REM DotNet is not Available | ||
@ REM Throw an exception | ||
:DotNetNotFound | ||
@ echo DotNet is not found. 1>&2 | ||
@ echo Make sure DotNet is installed 1>&2 | ||
@ exit /b 1 | ||
|
||
@ REM ======================== | ||
@ REM DotNet-Script is not Available | ||
@ REM Throw an exception | ||
:DotNetScriptNotFound | ||
@ echo DotNet-Script is not found. 1>&2 | ||
@ echo Install by 'dotnet tool uninstall dotnet-script -g' 1>&2 | ||
@ exit /b 1 |