diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-04-19 16:09:09 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-04-19 16:09:09 +0000 |
commit | c692c8a5e082bd02bd7dc7feb6e3f0056ea75f0b (patch) | |
tree | 7d781641cf88a9aed4c1cca0f29afa1e34a076cd /res | |
parent | 7bf53987b4699ef418476dd9de8ee37bba53cba9 (diff) | |
download | usdx-c692c8a5e082bd02bd7dc7feb6e3f0056ea75f0b.tar.gz usdx-c692c8a5e082bd02bd7dc7feb6e3f0056ea75f0b.tar.xz usdx-c692c8a5e082bd02bd7dc7feb6e3f0056ea75f0b.zip |
- added manifest file to make ultrastardx UAC aware
- this leverages usdx from a legacy app to a vista/win7 compatible app
- disables the virtual-store and other dirty UAC legacy app stuff
- checking for read-only files should work now
- the manifest is embedded in the exe via the RC file (which previously only contained the icon)
- alternatively the file ultrastardx.exe.manifest can be put in the game directory along with the .exe file. Vista/Win7 will autodetect this file.
- to check if this works:
- open the task-manager
- right click on ultrastardx
- if "UAC-Virtualization" is checked, the app is still executed in legacy mode which should not happen.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2249 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'res')
-rw-r--r-- | res/rccompile-delphi.bat | 2 | ||||
-rw-r--r-- | res/rccompile-fpc.bat | 4 | ||||
-rw-r--r-- | res/ultrastardx.exe.manifest | 12 | ||||
-rw-r--r-- | res/ultrastardx.rc | 4 | ||||
-rw-r--r-- | res/ultrastardx.res | bin | 0 -> 23352 bytes |
5 files changed, 22 insertions, 0 deletions
diff --git a/res/rccompile-delphi.bat b/res/rccompile-delphi.bat new file mode 100644 index 00000000..cb429f86 --- /dev/null +++ b/res/rccompile-delphi.bat @@ -0,0 +1,2 @@ +@set RES_NAME=ultrastardx
+BRC32 -r -fo%RES_NAME%.res %RES_NAME%.rc
diff --git a/res/rccompile-fpc.bat b/res/rccompile-fpc.bat new file mode 100644 index 00000000..fc31fd4d --- /dev/null +++ b/res/rccompile-fpc.bat @@ -0,0 +1,4 @@ +@set PATH=C:\Programme\lazarus\fpc\2.2.4\bin\i386-win32\;%PATH%
+@set RES_NAME=ultrastardx
+windres.exe -i %RES_NAME%.rc -o %RES_NAME%.res
+
diff --git a/res/ultrastardx.exe.manifest b/res/ultrastardx.exe.manifest new file mode 100644 index 00000000..20b58fb4 --- /dev/null +++ b/res/ultrastardx.exe.manifest @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="ultrastardx" type="win32"></assemblyIdentity>
+<description>UltraStar Deluxe</description>
+<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
+ </requestedPrivileges>
+ </security>
+</trustInfo>
+</assembly>
\ No newline at end of file diff --git a/res/ultrastardx.rc b/res/ultrastardx.rc new file mode 100644 index 00000000..7c3dea60 --- /dev/null +++ b/res/ultrastardx.rc @@ -0,0 +1,4 @@ +#define MANIFEST_RESOURCE_ID 1
+#define RT_MANIFEST 24
+MANIFEST_RESOURCE_ID RT_MANIFEST "..\\res\\ultrastardx.exe.manifest"
+MAINICON ICON "..\\icons\\ultrastardx.ico"
diff --git a/res/ultrastardx.res b/res/ultrastardx.res Binary files differnew file mode 100644 index 00000000..813282ba --- /dev/null +++ b/res/ultrastardx.res |