shithub: zelda3

Download patch

ref: 7c2244c512ad90f2592291d331a4708689a258f1
parent: 80de835a081d9312b5cc2f557037f82d84cc7c9b
author: Snesrev <snesrev@protonmail.com>
date: Wed Sep 7 20:33:35 EDT 2022

Windows icon (#63)

Co-authored-by: Nutzzz <enussbaum@hotmail.com>
Co-authored-by: Kombatologist <kombatologist@users.noreply.github.com>

--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,8 @@
 /.vscode/
 .DS_Store
 *.dSYM
+/*.vcxproj.user
+*.aps
 /Debug
 /Release
 /x64
--- a/Zelda3.sln
+++ b/Zelda3.sln
@@ -25,6 +25,10 @@
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
+	GlobalSection(NestedProjects) = preSolution
+		{EEFFA9B7-67F6-49EF-9FFE-88B0AC6983C3} = {F140B55D-AB87-442A-BA26-8CBB59C574BE}
+		{DB1FCD75-2215-46F9-8F60-B200B2747834} = {EEFFA9B7-67F6-49EF-9FFE-88B0AC6983C3}
+	EndGlobalSection
 	GlobalSection(ExtensibilityGlobals) = postSolution
 		SolutionGuid = {E47623E3-1B23-4ED7-8FC1-3E1F0AD82DD0}
 	EndGlobalSection
--- /dev/null
+++ b/platform/win32/resource.h
@@ -1,0 +1,16 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by zelda3.rc
+//
+#define IDI_ICON1                       101
+
+// Next default values for new objects
+// 
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE        102
+#define _APS_NEXT_COMMAND_VALUE         40001
+#define _APS_NEXT_CONTROL_VALUE         1001
+#define _APS_NEXT_SYMED_VALUE           101
+#endif
+#endif
binary files /dev/null b/platform/win32/triforce.ico differ
--- /dev/null
+++ b/platform/win32/zelda3.rc
@@ -1,0 +1,71 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "winres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE 
+BEGIN
+    "platform\\win32\\resource.h\0"
+END
+
+2 TEXTINCLUDE 
+BEGIN
+    "#include ""winres.h""\r\n"
+    "\0"
+END
+
+3 TEXTINCLUDE 
+BEGIN
+    "\r\n"
+    "\0"
+END
+
+#endif    // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_ICON1               ICON                    "platform\\win32\\triforce.ico"
+
+#endif    // English (United States) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif    // not APSTUDIO_INVOKED
+
--- a/zelda3.vcxproj
+++ b/zelda3.vcxproj
@@ -229,6 +229,7 @@
     <ClInclude Include="player.h" />
     <ClInclude Include="player_oam.h" />
     <ClInclude Include="poly.h" />
+    <ClInclude Include="platform\win32\resource.h" />
     <ClInclude Include="select_file.h" />
     <ClInclude Include="snes\apu.h" />
     <ClInclude Include="snes\cart.h" />
@@ -255,6 +256,12 @@
   </ItemGroup>
   <ItemGroup>
     <None Include="packages.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="platform\win32\zelda3.rc" />
+  </ItemGroup>
+  <ItemGroup>
+    <Image Include="platform\win32\triforce.ico" />
   </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
--- a/zelda3.vcxproj.filters
+++ b/zelda3.vcxproj.filters
@@ -8,6 +8,9 @@
       <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
       <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
     </Filter>
+    <Filter Include="Resource Files">
+      <UniqueIdentifier>{8dbd24e3-4805-4844-bbc0-f229cb086e62}</UniqueIdentifier>
+    </Filter>
     <Filter Include="Platform">
       <UniqueIdentifier>{be379862-b248-4de9-8553-bb51e2e72141}</UniqueIdentifier>
     </Filter>
@@ -231,6 +234,9 @@
     <ClInclude Include="snes\dsp_regs.h">
       <Filter>Snes</Filter>
     </ClInclude>
+    <ClInclude Include="platform\win32\resource.h">
+      <Filter>Resource Files</Filter>
+    </ClInclude>
     <ClInclude Include="config.h">
       <Filter>Zelda</Filter>
     </ClInclude>
@@ -244,4 +250,14 @@
   <ItemGroup>
     <None Include="packages.config" />
   </ItemGroup>
-</Project>
\ No newline at end of file
+  <ItemGroup>
+    <Image Include="platform\win32\triforce.ico">
+      <Filter>Resource Files</Filter>
+    </Image>
+  </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="platform\win32\zelda3.rc">
+      <Filter>Resource Files</Filter>
+    </ResourceCompile>
+  </ItemGroup>
+</Project>