Skip to content

Commit

Permalink
clang-format: apply to all files.
Browse files Browse the repository at this point in the history
Excluding upstream.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
  • Loading branch information
audetto committed Jan 20, 2025
1 parent 38004a1 commit d1885a0
Show file tree
Hide file tree
Showing 181 changed files with 10,221 additions and 10,227 deletions.
673 changes: 336 additions & 337 deletions source/frontends/common2/argparser.cpp

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions source/frontends/common2/argparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

namespace common2
{
struct EmulatorOptions;
struct EmulatorOptions;

enum class OptionsType { none, applen, sa2 };
enum class OptionsType
{
none,
applen,
sa2
};

bool getEmulatorOptions(int argc, char *const argv[], OptionsType type, const std::string & edition, EmulatorOptions & options);
}
bool getEmulatorOptions(
int argc, char *const argv[], OptionsType type, const std::string &edition, EmulatorOptions &options);
} // namespace common2
33 changes: 15 additions & 18 deletions source/frontends/common2/commoncontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@
namespace common2
{

CommonInitialisation::CommonInitialisation(
const std::shared_ptr<LinuxFrame> & frame,
const std::shared_ptr<Paddle> & paddle,
const EmulatorOptions & options)
: Initialisation(frame, paddle)
{
applyOptions(options);
myFrame->Begin();
setSnapshotFilename(options.snapshotFilename);
if (options.loadSnapshot)
CommonInitialisation::CommonInitialisation(
const std::shared_ptr<LinuxFrame> &frame, const std::shared_ptr<Paddle> &paddle, const EmulatorOptions &options)
: Initialisation(frame, paddle)
{
myFrame->LoadSnapshot();
applyOptions(options);
myFrame->Begin();
setSnapshotFilename(options.snapshotFilename);
if (options.loadSnapshot)
{
myFrame->LoadSnapshot();
}
}
CommonInitialisation::~CommonInitialisation()
{
myFrame->End();
}

}
CommonInitialisation::~CommonInitialisation()
{
myFrame->End();
}

}
} // namespace common2
22 changes: 10 additions & 12 deletions source/frontends/common2/commoncontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

namespace common2
{
struct EmulatorOptions;
struct EmulatorOptions;

class CommonInitialisation : public Initialisation
{
public:
CommonInitialisation(
const std::shared_ptr<LinuxFrame> & frame,
const std::shared_ptr<Paddle> & paddle,
const EmulatorOptions & options
);
~CommonInitialisation();
};
}
class CommonInitialisation : public Initialisation
{
public:
CommonInitialisation(
const std::shared_ptr<LinuxFrame> &frame, const std::shared_ptr<Paddle> &paddle,
const EmulatorOptions &options);
~CommonInitialisation();
};
} // namespace common2
Loading

0 comments on commit d1885a0

Please sign in to comment.