Skip to content

Commit

Permalink
Updated copyright notices for the new Flash AS 3.0 code
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBeckebans committed Feb 27, 2024
1 parent 2f575d0 commit 96a2083
Show file tree
Hide file tree
Showing 23 changed files with 132 additions and 14 deletions.
1 change: 1 addition & 0 deletions neo/swf/SWF.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2013 Robert Beckebans
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
23 changes: 21 additions & 2 deletions neo/swf/SWF_Abc.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@

/*
===========================================================================
Copyright (C) 2022 HvanGinneken
Doom 3 BFG Edition GPL Source Code
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below.
If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
===========================================================================
*/
Expand Down
27 changes: 27 additions & 0 deletions neo/swf/SWF_Abc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below.
If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
===========================================================================
*/
#pragma once

#include "SWF_Enums.h"
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_Bitstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_Bitstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_Dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_Enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
23 changes: 21 additions & 2 deletions neo/swf/SWF_EventDispatcher.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@

/*
===========================================================================
Copyright (C) 2022 HvanGinneken
Doom 3 BFG Edition GPL Source Code
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below.
If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
===========================================================================
*/
Expand Down
2 changes: 1 addition & 1 deletion neo/swf/SWF_EventDispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
5 changes: 1 addition & 4 deletions neo/swf/SWF_Events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2016-2017 Dustin Land
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down Expand Up @@ -161,10 +162,6 @@ idSWFScriptObject* idSWF::HitTest( idSWFSpriteInstance* spriteInstance, const sw
else if( entry->type == SWF_DICT_MORPH )
{
// FIXME: this should be roughly the same as SWF_DICT_SHAPE

//} else if( entry->type == SWF_DICT_TEXT )
//{
// FIXME: this should be roughly the same as SWF_DICT_SHAPE
}
else if( entry->type == SWF_DICT_EDITTEXT || entry->type == SWF_DICT_TEXT )
{
Expand Down
27 changes: 27 additions & 0 deletions neo/swf/SWF_Interpreter.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below.
If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
===========================================================================
*/
#include "precompiled.h"
#pragma hdrstop

Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_Load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2013-2015 Robert Beckebans
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
7 changes: 7 additions & 0 deletions neo/swf/SWF_PlaceObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ void idSWFSpriteInstance::PlaceObject3( idSWFBitStream& bitstream )
uint64 flags2 = bitstream.ReadU8();
uint16 depth = bitstream.ReadU16();

/* RB: TODO REVIEW - it has been removed compared to BFG edition
if( ( flags2 & PlaceFlagHasClassName ) != 0 || ( ( ( flags2 & PlaceFlagHasImage ) != 0 ) && ( ( flags1 & PlaceFlagHasCharacter ) != 0 ) ) )
{
bitstream.ReadString(); // ignored
}
*/

int characterID = -1;
if( ( flags1 & PlaceFlagHasCharacter ) != 0 )
{
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_ScriptFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2015 Robert Beckebans
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_ScriptVar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_ScriptVar.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
4 changes: 3 additions & 1 deletion neo/swf/SWF_ShapeParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down Expand Up @@ -31,9 +32,9 @@ If you have questions concerning this license or the applicable additional terms

#pragma warning( disable: 4189 ) // local variable is initialized but not referenced

// HarrievG begin
void idSWFShapeParser::MakeCap( idSWFShapeParser::swfSPDrawLine_t& spld, idSWFShapeDrawLine& ld, swfSPMorphEdge_t& edge, bool end )
{

//figure out what the orientation of the cap is.

idVec2 up = ( verts[edge.start.v0] - verts[edge.start.v1] );
Expand Down Expand Up @@ -246,6 +247,7 @@ void idSWFShapeParser::Parse( idSWFBitStream& bitstream, idSWFShape& shape, int
}
}
}
// HarrievG end

/*
========================
Expand Down
3 changes: 2 additions & 1 deletion neo/swf/SWF_ShapeParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down Expand Up @@ -89,7 +90,7 @@ class idSWFShapeParser
void TriangulateSoup( idSWFFontGlyph& shape );
int FindEarVert( const swfSPLineLoop_t& loop );
void AddUniqueVert( idSWFShapeDrawFill& drawFill, const idVec2& start, const idVec2& end );
void MakeCap( swfSPDrawLine_t& spld, idSWFShapeDrawLine& ld , swfSPMorphEdge_t& edge, bool end );
void MakeCap( swfSPDrawLine_t& spld, idSWFShapeDrawLine& ld , swfSPMorphEdge_t& edge, bool end ); // HarrievG
};

#endif // !__SWF_SHAPEPARSER_H__
6 changes: 4 additions & 2 deletions neo/swf/SWF_SpriteInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down Expand Up @@ -133,11 +134,11 @@ void idSWFSpriteInstance::FreeDisplayList()
{
for( int i = 0; i < displayList.Num(); i++ )
{

if( displayList[i].spriteInstance )
{
sprite->swf->spriteInstanceAllocator.Free( displayList[i].spriteInstance );
}

if( displayList[i].textInstance )
{
sprite->swf->textInstanceAllocator.Free( displayList[i].textInstance );
Expand Down Expand Up @@ -1670,7 +1671,8 @@ SWF_SPRITE_NATIVE_VAR_DEFINE_GET( _name )
SWF_SPRITE_PTHIS_GET( "_name" );
return pThis->name.c_str();
}
//Im not sure how much of the 'legacy' underscore prefixed functions need to be changed for as3.0.

// HarrievG: I'm not sure how much of the 'legacy' underscore prefixed functions need to be changed for as3.0.
//if more is needed, we should change the macro to work for both legacy AS and 3.0
SWF_SPRITE_NATIVE_VAR_DEFINE_GET( name )
{
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_SpriteInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
4 changes: 3 additions & 1 deletion neo/swf/SWF_TextInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down Expand Up @@ -68,6 +69,7 @@ idSWFTextInstance::~idSWFTextInstance()
subtitleTimingInfo.Clear();
}

// HarrievG begin
void idSWFTextInstance::Init( idSWFText* _text, idSWF* _swf )
{
editText = nullptr;
Expand Down Expand Up @@ -139,8 +141,8 @@ void idSWFTextInstance::Init( idSWFText* _text, idSWF* _swf )
scriptObject.SetPrototype( &textInstanceScriptObjectPrototype );
scriptObject.SetText( this );
scriptObject.SetNoAutoDelete( true );

}
// HarrievG end

/*
========================
Expand Down
1 change: 1 addition & 0 deletions neo/swf/SWF_TextInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down
4 changes: 4 additions & 0 deletions neo/swf/SWF_Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
Copyright (C) 2013-2015 Robert Beckebans
Copyright (C) 2023 Harrie van Ginneken
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Expand Down Expand Up @@ -162,9 +163,12 @@ struct swfLineStyle_t
uint16 endWidth;
swfColorRGBA_t startColor;
swfColorRGBA_t endColor;

// HarrievG begin
uint8 startCapStyle;
uint8 endCapStyle;
enum capStyle { round = 0, none, square };
// HarrievG end
};
struct swfGradientRecord_t
{
Expand Down

0 comments on commit 96a2083

Please sign in to comment.